/* =====================================================================
   LPA Global Network — Design System v2
   Stripe-inspired: vibrant spectral accents, kinetic micro-interactions,
   expressive typography, layered depth. Joyful yet restrained.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Surfaces ─────────────────────────────────────────────────────── */
  --bg-0:    #ffffff;
  --bg-1:    #f9fafb;
  --bg-2:    #f3f5fa;
  --bg-3:    #eaedf6;
  --bg-elev: #ffffff;

  /* ── Lines ────────────────────────────────────────────────────────── */
  --border:        #e4e8f1;
  --border-strong: #cdd3e2;
  --border-hover:  #9fabcc;

  /* ── Text ─────────────────────────────────────────────────────────── */
  --text-1: #050c1f;
  --text-2: #3d4766;
  --text-3: #6b7491;
  --text-4: #9aa0ba;

  /* ── Brand — deeper, more saturated indigo ────────────────────────── */
  --brand:        #5046e5;
  --brand-2:      #6a62f5;
  --brand-3:      #4237c9;
  --brand-dim:    rgba(80, 70, 229, 0.09);
  --brand-soft:   rgba(80, 70, 229, 0.18);
  --brand-glow:   rgba(80, 70, 229, 0.35);

  /* ── Spectrum — richer, more saturated palette ────────────────────── */
  --s-red:    #f5365c;
  --s-orange: #fb6340;
  --s-amber:  #fbbf24;
  --s-yellow: #f9e000;
  --s-green:  #0ecb81;
  --s-teal:   #06b6d4;
  --s-blue:   #2563eb;
  --s-violet: #7c3aed;
  --s-pink:   #ec4899;

  /* ── Radius ───────────────────────────────────────────────────────── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-2xl:36px;

  /* ── Shadows ─────────────────────────────────────────────────────── */
  --shadow-xs:    0 1px 2px rgba(5, 12, 31, 0.05);
  --shadow-sm:    0 2px 6px rgba(5, 12, 31, 0.06), 0 1px 2px rgba(5, 12, 31, 0.04);
  --shadow:       0 6px 18px rgba(5, 12, 31, 0.07), 0 2px 4px rgba(5, 12, 31, 0.04);
  --shadow-md:    0 14px 36px rgba(5, 12, 31, 0.09), 0 4px 10px rgba(5, 12, 31, 0.05);
  --shadow-lg:    0 32px 72px rgba(5, 12, 31, 0.12), 0 12px 24px rgba(5, 12, 31, 0.06);
  --shadow-brand: 0 8px 28px rgba(80, 70, 229, 0.38), 0 2px 6px rgba(80, 70, 229, 0.18);
  --shadow-card:  0 2px 8px rgba(5, 12, 31, 0.06), 0 0 0 1px rgba(5, 12, 31, 0.04);

  /* ── Easing ───────────────────────────────────────────────────────── */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);

  /* ── Misc ─────────────────────────────────────────────────────────── */
  --maxw: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01", "cv02", "cv03";
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.013em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--brand-soft); color: var(--text-1); }

/* ── Ambient mesh — richer spectral gradient behind all content ───── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(44% 44% at 8%  -6%,  rgba(80,  70, 229, 0.16) 0%, transparent 68%),
    radial-gradient(38% 42% at 94%   0%,  rgba(124, 58, 237, 0.13) 0%, transparent 66%),
    radial-gradient(50% 48% at 80%  90%,  rgba(37,  99, 235, 0.11) 0%, transparent 68%),
    radial-gradient(34% 30% at 10%  80%,  rgba(6,  182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(28% 32% at 56%  10%,  rgba(236, 72, 153, 0.06) 0%, transparent 54%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════════════════ */
.wrap        { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.section     { padding: 104px 0; }
.section-sm  { padding: 72px 0; }
.grid-12     { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* ═══════════════════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-3);
}
.eyebrow::before {
  content: "";
  width: 20px; height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--s-violet), var(--s-pink));
  flex-shrink: 0;
}

.h-display {
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 22px;
  color: var(--text-1);
}

.h-section {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text-1);
}

.lead {
  font-size: clamp(16.5px, 1.5vw, 20px);
  line-height: 1.70;
  color: var(--text-2);
  max-width: 58ch;
  margin: 0;
}

.muted   { color: var(--text-2); }
.muted-2 { color: var(--text-3); }

/* Multi-color gradient text — Stripe-style spectral highlight */
.grad-text {
  background: linear-gradient(110deg,
    var(--s-violet) 0%,
    var(--brand)    35%,
    var(--s-teal)   70%,
    var(--s-blue)   100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* Warm gradient variant for section CTAs */
.grad-warm {
  background: linear-gradient(110deg,
    var(--s-pink)   0%,
    var(--s-orange) 45%,
    var(--s-amber)  100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* ═══════════════════════════════════════════════════════════════════════
   Logo
   ═══════════════════════════════════════════════════════════════════════ */
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-img  {
  width: auto; height: 38px; flex-shrink: 0; display: block;
  border-radius: 8px; object-fit: contain;
}
/* The "LPA Global Network" wordmark stays visible next to the logo */

/* ═══════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    background   0.18s var(--ease),
    color        0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow   0.22s var(--ease),
    transform    0.18s var(--ease-bounce);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on primary/brand buttons */
.btn-primary::after,
.btn-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.btn-primary:hover::after,
.btn-brand:hover::after { transform: translateX(100%); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--text-1);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
  border-color: rgba(255,255,255,0.12);
}
.btn-brand:hover {
  background: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(80, 70, 229, 0.50), 0 4px 10px rgba(80, 70, 229, 0.22);
}
.btn-brand:active { transform: translateY(0); }

.btn-ghost {
  background: var(--bg-0);
  color: var(--text-1);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:active { transform: translateY(0); }

/* Spectrum ghost — subtle colored border tint on hover */
.btn-ghost-brand {
  background: var(--bg-0);
  color: var(--brand-3);
  border-color: rgba(80, 70, 229, 0.30);
  box-shadow: var(--shadow-xs);
}
.btn-ghost-brand:hover {
  border-color: var(--brand);
  background: var(--brand-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto; padding: 0;
  color: var(--brand-3);
  font-weight: 600;
  font-size: 14px;
}
.btn-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-bounce); }
.btn-link:hover svg { transform: translateX(4px); }

.btn-lg  { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: var(--radius-lg); }
.btn-sm  { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-pill{ border-radius: 99px; }

/* ═══════════════════════════════════════════════════════════════════════
   Header / Nav
   ═══════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: saturate(200%) blur(20px);
  -webkit-backdrop-filter: saturate(200%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--text-1);
}
.brand-name span { color: var(--text-3); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-links a:hover  { color: var(--text-1); background: var(--bg-2); }
.nav-links a.active { color: var(--brand-3); }

/* Active indicator dot */
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.menu-btn:hover { background: var(--bg-3); border-color: var(--border-strong); }
.menu-btn svg { width: 18px; height: 18px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 49;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; animation: dropIn 0.28s var(--ease); }
.mobile-nav a {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--brand-3); background: var(--bg-2); }
.mobile-nav .btn { margin-top: 14px; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.22s var(--ease),
    transform    0.22s var(--ease-bounce),
    box-shadow   0.22s var(--ease),
    background   0.22s;
}
.card-hover:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--bg-elev);
}

/* Colored top accent bar on card hover */
.card-hover {
  position: relative;
  overflow: hidden;
}
.card-hover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--s-violet), var(--s-pink));
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-hover:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--brand-dim);
  border: 1px solid rgba(80, 70, 229, 0.20);
  color: var(--brand-3);
  transition: background 0.22s, transform 0.22s var(--ease-bounce);
}
.card-icon svg { width: 22px; height: 22px; }
.card-hover:hover .card-icon {
  background: var(--brand-soft);
  transform: scale(1.08) rotate(-3deg);
}

.card h3 { font-size: 17px; font-weight: 700; margin: 0 0 9px; letter-spacing: -0.020em; }
.card p  { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.65; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* Colored card variants */
.card-violet { --card-accent: var(--s-violet); border-top: 3px solid var(--s-violet); }
.card-blue   { --card-accent: var(--s-blue);   border-top: 3px solid var(--s-blue);   }
.card-teal   { --card-accent: var(--s-teal);   border-top: 3px solid var(--s-teal);   }
.card-pink   { --card-accent: var(--s-pink);   border-top: 3px solid var(--s-pink);   }
.card-amber  { --card-accent: var(--s-amber);  border-top: 3px solid var(--s-amber);  }
.card-green  { --card-accent: var(--s-green);  border-top: 3px solid var(--s-green);  }

/* ═══════════════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════════════ */
.hero { padding: 100px 0 72px; }

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 30px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-eyebrow-pill:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.hero-eyebrow-pill .tag {
  background: linear-gradient(135deg, var(--brand), var(--s-violet));
  color: #fff;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.prism-visual { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; }
.prism-visual svg { width: 100%; height: 100%; overflow: visible; }

.prism-showcase {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(80% 80% at 20% 0%,   rgba(80, 70, 229, 0.10), transparent 60%),
    radial-gradient(70% 80% at 100% 100%, rgba(37,  99, 235, 0.10), transparent 60%),
    var(--bg-1);
}

/* ═══════════════════════════════════════════════════════════════════════
   Stats band
   ═══════════════════════════════════════════════════════════════════════ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 44px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--bg-1); }

/* Bottom accent line on stat hover */
.stat::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--s-violet));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.stat:hover::after { opacity: 1; }

.stat-num {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 800;
  letter-spacing: -0.040em;
  line-height: 1;
  color: var(--text-1);
}
.stat-num .pre { color: var(--brand-3); }
.stat-label { margin-top: 14px; font-size: 13.5px; color: var(--text-3); letter-spacing: 0.01em; }

/* ═══════════════════════════════════════════════════════════════════════
   Bento
   ═══════════════════════════════════════════════════════════════════════ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .b-wide   { grid-column: span 4; }
.bento .b-narrow { grid-column: span 2; }
.bento .b-half   { grid-column: span 3; }

.bento-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease-bounce);
}
.bento-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Colourful glow bleed in corner — joy factor */
.bento-card::after {
  content: "";
  position: absolute;
  bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bento-glow, rgba(80,70,229,0.12)), transparent 70%);
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.bento-card:hover::after { opacity: 1; transform: scale(1.15); }

.bento-tag {
  font-size: 11.5px;
  color: var(--brand-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 13px;
}
.bento-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.024em; margin: 0 0 11px; }
.bento-card p  { color: var(--text-2); font-size: 14.5px; margin: 0; max-width: 44ch; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════
   CTA block
   ═══════════════════════════════════════════════════════════════════════ */
.cta-block {
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 56px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-block::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 100% at 50%  -10%, rgba(80, 70, 229, 0.14), transparent 60%),
    radial-gradient(40%  50% at  0%  100%, rgba(124,58,237,0.08),   transparent 60%),
    radial-gradient(40%  50% at 100% 100%, rgba(37, 99, 235, 0.08), transparent 60%);
  pointer-events: none;
}
.cta-block > * { position: relative; }

/* Spectrum border — one-line rainbow ring */
.cta-ring {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--s-violet), var(--brand), var(--s-teal), var(--s-green));
  padding: 1.5px;
}
.cta-ring > .cta-block {
  border: none;
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 80px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 60px;
}

.footer-brand { max-width: 330px; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin: 18px 0 22px; line-height: 1.7; }

.footer-col h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-col ul   { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-col a    { color: var(--text-3); font-size: 14px; transition: color 0.15s, padding-left 0.15s; display: inline-block; }
.footer-col a:hover { color: var(--brand-3); padding-left: 4px; }

.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-0);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: color 0.18s var(--ease), border-color 0.18s, transform 0.18s var(--ease-bounce), box-shadow 0.18s;
}
.social-row a:hover {
  color: var(--brand-3);
  border-color: rgba(80, 70, 229, 0.40);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(80, 70, 229, 0.18);
}
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-4);
  flex-wrap: wrap; gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.field label .req { color: var(--s-red); }

.input, .textarea, .select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-1);
  padding: 12px 15px;
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover,    .textarea:hover    { border-color: var(--border-hover); }
.input:focus,    .textarea:focus,   .select:focus {
  border-color: var(--brand);
  background: var(--bg-0);
  box-shadow: 0 0 0 4px var(--brand-dim);
}

.textarea { resize: vertical; min-height: 150px; }
.select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7491' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 40px;
}
.form-hint { font-size: 12.5px; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════════════
   Badges & Labels
   ═══════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--brand-dim);
  border: 1px solid rgba(80, 70, 229, 0.24);
  color: var(--brand-3);
  font-size: 12.5px;
  font-weight: 600;
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--s-green);
  box-shadow: 0 0 0 3px rgba(14, 203, 129, 0.22);
  animation: pulse-dot 2.4s ease infinite;
}

/* Spectrum badge variants */
.badge-green  { background: rgba(14,203,129,0.10); border-color: rgba(14,203,129,0.28); color: #059669; }
.badge-amber  { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.30); color: #b45309; }
.badge-red    { background: rgba(245,54,92,0.10);  border-color: rgba(245,54,92,0.26);  color: #c8102e; }
.badge-teal   { background: rgba(6,182,212,0.10);  border-color: rgba(6,182,212,0.26);  color: #0e7490; }
.badge-violet { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.26); color: #6d28d9; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(14, 203, 129, 0.22); }
  50%       { box-shadow: 0 0 0 5px rgba(14, 203, 129, 0.12); }
}

.badge-num { color: var(--text-3); font-weight: 700; }

/* Chip — small inline label */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px; font-weight: 600;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════
   Quote card / Testimonials
   ═══════════════════════════════════════════════════════════════════════ */
.quote-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 60px 52px;
  text-align: center;
}

.avatar-grad {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s-violet), var(--brand), var(--s-teal));
  box-shadow: var(--shadow-sm);
}

/* Marquee */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

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

.tcard {
  flex: 0 0 360px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s var(--ease-bounce);
}
.tcard:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tcard .t-head { display: flex; align-items: center; gap: 13px; }
.tcard .t-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
  border: 1.5px solid var(--border);
}
.tcard .t-av.ph { background: linear-gradient(135deg, var(--s-violet), var(--brand), var(--s-teal)); border: none; }
.tcard .t-name { font-weight: 700; font-size: 14.5px; color: var(--text-1); }
.tcard .t-role { font-size: 12.5px; color: var(--text-3); }
.tcard p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }

/* Star rating */
.t-stars { display: flex; gap: 3px; color: var(--s-amber); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════════
   Photo / image slots
   ═══════════════════════════════════════════════════════════════════════ */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg,
    rgba(80, 70, 229, 0.09),
    rgba(124,58,237,0.09) 50%,
    rgba(37, 99, 235, 0.09));
  box-shadow: var(--shadow-md);
}
.photo.is-img { background: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  color: var(--brand-3);
  font-size: 12.5px; font-weight: 600;
  text-align: center; padding: 16px;
  letter-spacing: 0.01em;
}
.photo .ph-hint svg { width: 28px; height: 28px; opacity: 0.8; }
.photo-hero { min-height: 440px; }

/* Section background photos */
[data-bg].bg-active { position: relative; background: none !important; isolation: isolate; }
[data-bg].bg-active::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--bg-img);
  background-size: cover; background-position: center;
}
[data-bg].bg-active::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.82));
  backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════════════════════════════
   Misc helpers
   ═══════════════════════════════════════════════════════════════════════ */
.divider-y > * + * { border-left: 1px solid var(--border); }

/* Tag strip (tech/topic pills row) */
.tag-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-strip .tag {
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12.5px; font-weight: 500;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag-strip .tag:hover { background: var(--brand-dim); color: var(--brand-3); border-color: rgba(80,70,229,0.28); }

/* Progress bar */
.progress { height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--s-violet));
  transition: width 0.6s var(--ease);
}

/* Kbd shortcut */
kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px; font-family: inherit;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  box-shadow: 0 1px 0 var(--border-strong);
}

/* Horizontal rule */
hr.divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Scroll reveal
   ═══════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.28s; }
.reveal[data-delay="4"] { transition-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Gallery — Generations Timeline
   Latest generation (Bac 2026) at the TOP, oldest (Bac 1990) at the
   BOTTOM. A vertical rail runs down the centre; each generation is a
   node, with its photo card alternating left / right. Cards animate in
   from the side as they scroll into view.
   ═══════════════════════════════════════════════════════════════════════ */
.gallery-intro { max-width: 680px; margin-bottom: 56px; }

.tl { position: relative; padding: 8px 0; }
.tl::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg,
    var(--brand) 0%, var(--s-violet) 35%, var(--s-blue) 70%, var(--border) 100%);
  opacity: 0.55;
}
.tl::after {
  /* travelling glow that chases the scroll progress */
  content: ""; position: absolute; left: 50%; top: 0; height: 120px; width: 4px;
  transform: translateX(-50%); border-radius: 4px;
  background: linear-gradient(180deg, transparent, var(--brand-2), transparent);
  opacity: 0.5; filter: blur(2px);
  top: var(--tl-glow, 0%); pointer-events: none;
  transition: top 0.1s linear;
}

.tl-item {
  position: relative; display: grid;
  grid-template-columns: 1fr 64px 1fr; align-items: center;
  margin-bottom: 64px;
}

/* the node on the rail */
.tl-node {
  grid-column: 2; justify-self: center; position: relative; z-index: 2;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-0); border: 3px solid var(--brand);
  box-shadow: 0 0 0 5px rgba(99,91,255,0.14);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s, border-color 0.3s;
}
.tl-item.is-in .tl-node {
  background: var(--brand); transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(99,91,255,0.20), 0 0 22px var(--brand-glow);
}

/* the card lives on the left or right column */
.tl-card {
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s var(--ease-bounce);
}
.tl-item:hover .tl-card { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-3px); }

.tl-card-left  { grid-column: 1; margin-right: 28px; }
.tl-card-right { grid-column: 3; margin-left: 28px; }

/* scroll-in animation — cards slide in from their side */
.tl-card { opacity: 0; }
.tl-card-left  { transform: translateX(-44px); }
.tl-card-right { transform: translateX(44px); }
.tl-item.is-in .tl-card { opacity: 1; transform: translateX(0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.2s, box-shadow 0.3s; }

.tl-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-2); }
.tl-photo {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  background-color: var(--bg-3); position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.tl-photo::after {
  /* shimmer skeleton while the image has not loaded */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.tl-photo.loaded::after { display: none; }
.tl-photo.loaded:hover img { transform: scale(1.06); }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); position: relative; z-index: 1; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.tl-meta { padding: 20px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tl-year { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); }
.tl-year .bac { color: var(--text-3); font-weight: 500; font-size: 14px; margin-right: 6px; }
.tl-count { font-size: 12.5px; color: var(--text-3); }

.gallery-foot {
  text-align: center; margin-top: 16px; color: var(--text-3); font-size: 14px;
}
.gallery-foot a { color: var(--brand-3); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links,
  .nav-cta .btn:not(.menu-toggle) { display: none; }
  .menu-btn { display: inline-flex; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-wide,
  .bento .b-narrow,
  .bento .b-half { grid-column: span 2; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 80px 0; }
  .cta-block { padding: 64px 40px; }
  /* Gallery timeline: collapse the centre rail to a left rail */
  .tl::before { left: 20px; }
  .tl::after { left: 20px; }
  .tl-item { grid-template-columns: 44px 1fr; margin-bottom: 44px; }
  .tl-node { grid-column: 1; }
  .tl-card-left, .tl-card-right {
    grid-column: 2; margin-left: 16px; margin-right: 0;
    transform: translateX(44px);
  }
  .tl-item.is-in .tl-card-left,
  .tl-item.is-in .tl-card-right { transform: translateX(0); }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-wide,
  .bento .b-narrow,
  .bento .b-half { grid-column: span 1; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding: 60px 0 44px; }
  .cta-block { padding: 52px 24px; }
  .quote-card { padding: 44px 24px; }
  .tcard { flex: 0 0 300px; }
}