/* ==========================================================================
   Pythonwise — design system
   Adapted from the NexaCore template language: floating pill navbar, dark
   aurora heroes, dark blur service cards that unfold on hover, soft-shadow
   point rows, gradient chips and a four-step delivery staircase.
   ========================================================================== */

:root {
  --navy: #1a0b54;
  --lav: #a997ce;
  --lav-2: #bdaee7;
  --lav-3: #83799e;
  --muted: #645a88;
  --accent: #c86fff;
  --blue: #1c4eff;
  --orange: #fe881b;
  --chip: #f9f9f9;
  --border: #e8e4f3;
  --ink: #000201;
  --ink-2: #0a0514;
  --card-dark: rgba(10, 5, 20, 0.88);
  --badge: #291f39;

  --grad-a: linear-gradient(90deg, #1c4eff, #ac24ff 50%, #fe881b);
  --grad-b: linear-gradient(90deg, #2ba7ff, #ca45ff 50%, #fe881b);
  --grad-line: linear-gradient(#1c4eff, #ac24ff 25%, #f79fff 50%, #ffd600 66%, #fe881b 84%, rgba(254, 136, 27, 0) 102%);

  --shadow-soft: 0 3px 9.1px rgba(63, 74, 126, 0.05), 0 1px 29px rgba(63, 74, 126, 0.1);
  --shadow-lg: 0 10px 30px -10px rgba(26, 11, 84, 0.18), 0 4px 10px -6px rgba(26, 11, 84, 0.1);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --edge-radius: clamp(28px, 4vw, 56px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 110px; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { position: relative; padding: clamp(72px, 8vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--chip { background: var(--chip); }

.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 20px; max-width: 860px; margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head--left { align-items: flex-start; text-align: left; margin-left: 0; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.08; }
.h2 { font-size: clamp(32px, 4vw, 56px); }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.lead { font-size: clamp(16px, 1.25vw, 20px); color: var(--muted); line-height: 1.6; }
.text-muted { color: var(--muted); }
.eyebrow { font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; letter-spacing: 0; }

.grad-text {
  background-image: var(--grad-b);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.grad-a-bg { background-image: var(--grad-a); }
.grad-line-bg { background-image: var(--grad-line); }

/* ---------- Brand marks ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; color: var(--navy); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 200deg, #1c4eff, #ac24ff, #fe881b, #1c4eff);
  -webkit-mask: radial-gradient(circle, #000 0 3.6px, transparent 4.1px 9.6px, #000 10.1px 12.6px, transparent 13.1px);
          mask: radial-gradient(circle, #000 0 3.6px, transparent 4.1px 9.6px, #000 10.1px 12.6px, transparent 13.1px);
}
.mark {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-a);
  -webkit-mask: radial-gradient(circle, #000 0 2.2px, transparent 2.7px 5.6px, #000 6.1px 7.5px, transparent 8px);
          mask: radial-gradient(circle, #000 0 2.2px, transparent 2.7px 5.6px, #000 6.1px 7.5px, transparent 8px);
}

/* ---------- Chips & tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 10px 18px; border-radius: 999px;
  background: var(--chip); color: var(--navy);
  font-size: clamp(14px, 1.05vw, 16px); font-weight: 500; line-height: 1.2;
}
.chip--white { background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6)); box-shadow: var(--shadow-soft); }
.chip--dark { background: rgba(255, 255, 255, 0.07); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.chip--badge { background: var(--badge); color: #fff; padding: 8px 14px; font-size: 13px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--navy);
  font-size: 14px; line-height: 1.3;
}
.tag--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: var(--lav-2); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 16px; font-weight: 500; line-height: 1.2; cursor: pointer;
  border: 0; background: none; white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn > span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* Gradient-bordered pill: solid blue face fades out on hover to reveal the gradient */
.btn--primary { padding: 1px; background-image: var(--grad-a); color: #fff; }
.btn--primary > span { padding: 13px 26px; border-radius: 11px; background: var(--blue); transition: background-color 0.3s; }
.btn--primary:hover > span { background-color: transparent; }

.btn--light { padding: 14px 26px; background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn--light:hover { border-color: var(--lav-2); background: var(--chip); }

.btn--ghost { padding: 14px 26px; background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); }

.btn--grad { padding: 14px 26px; background-image: var(--grad-a); color: #fff; }
.btn--grad:hover { filter: brightness(1.08); }
.btn--block { width: 100%; }
.btn--sm > span, .btn--sm { font-size: 15px; }
.btn--sm.btn--primary > span { padding: 11px 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--blue); }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }

/* ---------- Navbar ---------- */
.nav-wrap { position: fixed; inset: 16px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.nav {
  pointer-events: auto; width: 100%; max-width: 1180px; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow-lg);
  transition: max-width 0.5s ease-in-out;
}
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 8px 6px 20px; transition: padding 0.5s ease-in-out; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 14px; border-radius: 12px; font-size: 14px; color: var(--navy);
  transition: padding 0.5s ease-in-out, background-color 0.2s;
}
.nav__links a:hover { background: rgba(26, 11, 84, 0.05); }
.nav__links a[aria-current="page"] { background: var(--chip); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: none;
  align-items: center; justify-content: center; cursor: pointer; color: var(--navy); font-size: 22px;
}
.nav__toggle:hover { background: rgba(26, 11, 84, 0.05); }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }
.nav__panel { display: none; }

.is-scrolled .nav { max-width: 1000px; }
.is-scrolled .nav__bar { padding-left: 16px; }
.is-scrolled .nav__links a { padding: 7px 10px; }

@media (max-width: 1020px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__panel {
    display: flex; flex-direction: column; gap: 2px;
    border-top: 1px solid var(--border); padding: 8px 12px 14px;
  }
  .nav__panel a:not(.btn) { padding: 11px 12px; border-radius: 12px; text-align: center; font-size: 15px; }
  .nav__panel a:not(.btn):hover, .nav__panel a[aria-current="page"] { background: var(--chip); }
  .nav__panel .btn { margin-top: 6px; }
}

/* ---------- Dark hero with aurora backdrop ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100svh; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate;
  padding: 150px 0 120px;
}
.hero--page { min-height: 0; padding: clamp(170px, 18vw, 230px) 0 clamp(120px, 12vw, 170px); }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; max-width: 900px; }
.hero__inner .lead { color: var(--lav-2); max-width: 720px; }
.hero__note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; color: var(--lav); }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note .icon { color: var(--accent); font-size: 16px; }

.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora::before {
  content: ""; position: absolute; inset: -25%;
  background:
    radial-gradient(38% 32% at 22% 38%, rgba(28, 78, 255, 0.55), transparent 70%),
    radial-gradient(34% 30% at 72% 30%, rgba(172, 36, 255, 0.5), transparent 70%),
    radial-gradient(36% 30% at 58% 78%, rgba(254, 136, 27, 0.32), transparent 70%),
    radial-gradient(30% 26% at 38% 70%, rgba(247, 159, 255, 0.18), transparent 70%);
  filter: blur(30px);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}
.aurora::after {
  /* faint engineering grid, masked to the centre */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(ellipse 70% 50% at 50% 40%, #000 20%, transparent 72%);
          mask: radial-gradient(ellipse 70% 50% at 50% 40%, #000 20%, transparent 72%);
}
.aurora__rings {
  position: absolute; left: 50%; top: 50%; width: min(1100px, 160vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); opacity: 0.35;
  animation: spin 80s linear infinite;
}
.aurora__rings span {
  position: absolute; inset: 0; border-radius: 50%; padding: 1px;
  background: conic-gradient(from 0deg, rgba(28, 78, 255, 0.9), rgba(172, 36, 255, 0.2), rgba(254, 136, 27, 0.9), rgba(28, 78, 255, 0.1), rgba(28, 78, 255, 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.aurora__rings span:nth-child(2) { inset: 14%; opacity: 0.8; transform: rotate(120deg); }
.aurora__rings span:nth-child(3) { inset: 28%; opacity: 0.6; transform: rotate(240deg); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 -2px; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ink) calc(100% - 4px));
}
/* hero that hands over to a white section: crisp rounded edge, no fade */
.hero--fade-white { border-radius: 0 0 var(--edge-radius) var(--edge-radius); }
.hero--fade-white::after { display: none; }

@keyframes aurora-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.02); }
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* trust bar inside the home hero */
.trustbar { position: relative; z-index: 2; margin-top: clamp(64px, 8vw, 110px); width: 100%; text-align: center; }
.trustbar p { color: var(--lav); font-size: 15px; margin-bottom: 22px; }
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-ph {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.45); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
}
.logo-ph .mark { opacity: 0.6; width: 14px; height: 14px; }

/* ---------- Dark section (service cards) ---------- */
.section--dark { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 15% 20%, rgba(28, 78, 255, 0.35), transparent 70%),
    radial-gradient(45% 40% at 85% 35%, rgba(172, 36, 255, 0.35), transparent 70%),
    radial-gradient(50% 35% at 50% 95%, rgba(254, 136, 27, 0.22), transparent 70%);
}
.section--dark .lead { color: var(--lav-2); }
/* a dark section that continues straight on from a dark hero: fade its glows in */
.hero + .section--dark { margin-top: -2px; }
.hero:not(.hero--fade-white) + .section--dark::before {
  -webkit-mask-image: linear-gradient(transparent, #000 240px); mask-image: linear-gradient(transparent, #000 240px);
}
/* dark section edges meeting white: rounded, never faded (fades mix the
   glows with white and turn muddy). fade-white = rounded bottom,
   fade-top = inset panel with rounded top. */
.section--fade-white { border-bottom-left-radius: var(--edge-radius); border-bottom-right-radius: var(--edge-radius); }
.section--fade-top { margin-inline: clamp(8px, 1.2vw, 16px); border-top-left-radius: var(--edge-radius); border-top-right-radius: var(--edge-radius); }

.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.svc-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  min-height: clamp(300px, 27vw, 400px); border-radius: 36px;
  background: var(--card-dark); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(36px); -webkit-backdrop-filter: blur(36px);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 55%; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(200, 111, 255, 0.45), transparent 70%), linear-gradient(160deg, rgba(28, 78, 255, 0.35), rgba(10, 5, 20, 0) 60%);
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
  opacity: 0.7; transform: translateY(-30%); transition: transform 0.5s var(--ease), opacity 0.5s;
}
.svc-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 60%; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 5, 20, 0.95) 60%, transparent);
  opacity: 0; transform: translateY(100%); transition: transform 0.5s var(--ease), opacity 0.5s;
}
.svc-card:hover::before, .svc-card:focus-within::before { transform: translateY(0); opacity: 1; }
.svc-card:hover::after, .svc-card:focus-within::after { transform: translateY(0); opacity: 1; }
.svc-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; flex: 1; padding: clamp(20px, 2vw, 32px) clamp(20px, 2.2vw, 34px); }
.svc-card__spacer { flex: 1; min-height: 32px; }
.svc-card h3 { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; transition: transform 0.5s var(--ease); }
.svc-card:hover h3 { transform: translateY(-6px); }
.svc-card p { margin-top: 12px; color: var(--lav-2); font-size: clamp(14px, 1vw, 15.5px); line-height: 1.55; }
.svc-card__meta { margin-top: 4px; font-size: 14px; color: var(--lav); }
.svc-card .bullets { margin-top: 16px; }
.svc-card__reveal { max-height: 0; opacity: 0; transform: translateY(20px); overflow: hidden; transition: all 0.5s var(--ease); }
.svc-card:hover .svc-card__reveal, .svc-card:focus-within .svc-card__reveal { max-height: 90px; opacity: 1; transform: none; }
.svc-card__reveal .btn { margin-top: 18px; width: 100%; }
.svc-card--tall { min-height: clamp(380px, 34vw, 520px); }
.svc-card--auto { min-height: 0; }
@media (hover: none) {
  .svc-card__reveal { max-height: none; opacity: 1; transform: none; }
  .svc-card::before { transform: none; opacity: 1; }
}

.bullets { display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; align-items: flex-start; gap: 10px; color: var(--lav-2); font-size: 15px; line-height: 1.5; }
.bullets li::before {
  content: ""; width: 14px; height: 14px; margin-top: 4px; flex-shrink: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 2.6px, transparent 3px 5.4px, var(--accent) 5.6px 6.8px, transparent 7.1px);
}
.bullets--light li { color: var(--navy); }

/* ---------- Soft point rows (light) ---------- */
.point {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-soft); color: var(--navy);
}
.point__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 10px; background: rgba(28, 78, 255, 0.08); color: var(--blue); font-size: 16px;
}
.point__icon--x { background: rgba(131, 121, 158, 0.1); color: var(--lav-3); }
.point strong { font-weight: 600; }
.point p { font-size: 16px; line-height: 1.55; }
.point-list { display: flex; flex-direction: column; gap: 12px; }
.point-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.point--lg { padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; flex-direction: column; gap: 14px; }
.point--lg h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; }
.point--lg p { color: var(--muted); }

/* ---------- Two-paths split (Freedom layout) ---------- */
.split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 3vw, 40px); }
.path-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%;
  padding: clamp(28px, 3vw, 44px); border-radius: 32px; background: #fff; box-shadow: var(--shadow-soft);
}
.path-card h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; }
.path-card p { color: var(--muted); font-size: 17px; }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card--grad { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-a) border-box; }

.orb {
  position: relative; width: clamp(180px, 20vw, 300px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #0a0514; box-shadow: 0 30px 80px -20px rgba(172, 36, 255, 0.45);
}
.orb::before {
  content: ""; position: absolute; inset: -30%;
  background: conic-gradient(from 0deg, #1c4eff, #ac24ff, #f79fff, #ffd600, #fe881b, #1c4eff);
  filter: blur(28px); animation: spin-orb 14s linear infinite;
}
.orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 35%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(10, 5, 20, 0.35));
}
.orb__label { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); text-shadow: 0 2px 12px rgba(10, 5, 20, 0.4); }
@keyframes spin-orb { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(24px, 2.6vw, 36px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); text-align: left; }
.stat__num { display: block; font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.stat__label { display: block; margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.section--dark .stat { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: none; }
.section--dark .stat__label { color: var(--lav-2); }

/* ---------- Staircase (four steps) ---------- */
.section--glow {
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(201, 189, 255, 0.45), transparent 70%),
    radial-gradient(50% 50% at 95% 100%, rgba(255, 196, 150, 0.45), transparent 70%),
    radial-gradient(40% 40% at 60% 50%, rgba(247, 159, 255, 0.18), transparent 70%),
    #fbfaff;
}
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); align-items: start; }
.stair { display: flex; flex-direction: column; align-items: flex-start; }
.stair:nth-child(1) { margin-top: 210px; }
.stair:nth-child(2) { margin-top: 140px; }
.stair:nth-child(3) { margin-top: 70px; }
.stair__chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 20px; background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.65)); box-shadow: var(--shadow-soft); font-weight: 600; font-size: clamp(15px, 1.2vw, 18px); }
.stair__num { font-size: 13px; font-weight: 600; color: var(--lav-3); letter-spacing: 0.04em; }
.stair__line { display: flex; gap: clamp(14px, 1.6vw, 24px); margin: 10px 0 0 22px; }
.stair__line::before { content: ""; width: 1px; min-height: 200px; flex-shrink: 0; background-image: var(--grad-line); }
.stair__line p { padding-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--navy); max-width: 240px; }

/* ---------- Quotes ---------- */
.quote-card {
  display: flex; flex-direction: column; gap: 22px; height: 100%;
  padding: clamp(26px, 2.6vw, 38px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft);
}
.quote-card__mark { font-size: 64px; line-height: 0.6; height: 28px; font-weight: 600; font-family: Georgia, serif; }
.quote-card blockquote { margin: 0; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.6; color: var(--navy); }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.quote-card figcaption strong { display: block; color: var(--navy); font-weight: 600; font-size: 15.5px; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%; color: var(--navy); font-weight: 600; font-size: 15px;
  border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-a) border-box;
}
.avatar--lg { width: 72px; height: 72px; font-size: 22px; }

.feature-quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature-quote blockquote { margin: 0; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }
.feature-quote figcaption { margin-top: 24px; color: var(--muted); }
.feature-quote figcaption strong { color: var(--navy); font-weight: 600; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 40px; background: var(--ink); color: #fff;
  padding: clamp(56px, 7vw, 100px) clamp(24px, 5vw, 80px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.cta-panel .aurora::after { display: none; }
.cta-panel > *:not(.aurora) { position: relative; z-index: 1; }
.cta-panel .lead { color: var(--lav-2); max-width: 640px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 600; font-size: clamp(16px, 1.2vw, 18px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 20px; color: var(--accent); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 3.4vw, 48px); border-radius: 32px; background: #fff; box-shadow: var(--shadow-soft); }
.form-card__head { margin-bottom: 28px; }
.form-card__head h2, .form-card__head h3 { font-size: clamp(26px, 2.6vw, 36px); }
.form-card__head p { margin-top: 10px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--navy); padding: 0; }
.field .req { color: #b4237a; margin-left: 2px; }
.field .opt { font-weight: 400; color: var(--lav-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--chip); color: var(--navy); font-size: 15.5px; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0b54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--lav-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(28, 78, 255, 0.12); }
.field input[type="file"] { padding: 10px; background: #fff; border-style: dashed; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 500; cursor: pointer;
}
.field .hint { font-size: 13px; color: var(--lav-3); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--chip); font-size: 15px; cursor: pointer; transition: all 0.2s;
}
.check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--lav); background: #fff; transition: all 0.2s; }
.check input:checked + span { border-color: var(--blue); background: rgba(28, 78, 255, 0.06); }
.check input:checked + span::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(28, 78, 255, 0.15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .field.is-invalid .check span { border-color: #d0306f; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 26px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.form-status { display: none; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 14px; font-size: 15px; }
.form-status.is-visible { display: flex; }
.form-status--ok { background: rgba(28, 78, 255, 0.07); color: var(--navy); }
.form-status--ok .icon { color: var(--blue); }
.form-status--err { background: rgba(208, 48, 111, 0.08); color: #8c1d4a; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-2); color: var(--lav-2); padding: clamp(64px, 7vw, 96px) 0 32px; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 0% 0%, rgba(28, 78, 255, 0.18), transparent 70%), radial-gradient(40% 60% at 100% 100%, rgba(172, 36, 255, 0.18), transparent 70%);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .logo { color: #fff; }
.footer__about p { margin-top: 18px; max-width: 320px; font-size: 15px; color: var(--lav); }
.footer h4 { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 15px; color: var(--lav-2); transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; color: var(--lav);
}
.footer__line { height: 1px; background-image: var(--grad-a); opacity: 0.6; }

/* ---------- Generic page pieces ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.two-col--top { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 12px; }
.prose p + p { margin-top: 18px; }
.prose p { font-size: clamp(16px, 1.2vw, 18.5px); line-height: 1.7; color: var(--muted); }

.panel-dark {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; background: var(--ink); color: #fff;
  padding: clamp(26px, 3vw, 44px);
}
.panel-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 0% 0%, rgba(28, 78, 255, 0.4), transparent 70%), radial-gradient(70% 60% at 100% 100%, rgba(172, 36, 255, 0.4), transparent 70%);
}
.panel-dark h4 { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lav); margin-bottom: 14px; }
.panel-dark h4:not(:first-child) { margin-top: 28px; }

/* subnav pills (expertise, careers) */
.subnav { position: sticky; top: 92px; z-index: 20; display: flex; justify-content: center; padding: 0 var(--gutter); margin-top: -28px; }
.subnav__inner {
  display: flex; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-soft);
  overflow-x: auto; max-width: 100%; scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 9px 14px; border-radius: 11px; font-size: 14px; white-space: nowrap; transition: background-color 0.2s; }
.subnav a:hover, .subnav a.is-active { background: var(--chip); }
.subnav a.is-active { font-weight: 600; }

/* industry pills */
.pill-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill-cloud .chip { background: #fff; box-shadow: var(--shadow-soft); padding: 14px 22px; font-size: clamp(15px, 1.15vw, 17px); }

/* case studies */
.case { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: clamp(26px, 2.6vw, 36px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.case__metric { font-size: clamp(44px, 4.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.case__metric-label { font-size: 14px; color: var(--lav-3); font-weight: 500; }
.case h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; margin-top: 8px; }
.case p { color: var(--muted); }

/* engagement table on hire page (cards) */
.model-best { margin-top: 10px; font-size: 14px; color: var(--lav); }
.model-best strong { color: #fff; font-weight: 600; }

/* role groups */
.role-group { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.role-group h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }

/* people */
.person { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.4vw, 32px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); height: 100%; }
.person h3 { font-size: 20px; }
.person__role { font-size: 14.5px; font-weight: 500; color: var(--blue); margin-top: 4px; }
.person p { color: var(--muted); font-size: 15.5px; }

/* jobs */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.filters .field { flex: 1 1 200px; }
.filters__count { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.jobs { display: flex; flex-direction: column; gap: 12px; }
.job { border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); transition: box-shadow 0.3s; }
.job[open] { box-shadow: 0 0 0 1px var(--border), var(--shadow-soft); }
.job summary {
  display: grid; grid-template-columns: 2.2fr 1.6fr 1.1fr 1fr 0.8fr 28px; gap: 16px; align-items: center;
  padding: 20px 24px; cursor: pointer; list-style: none;
}
.job summary::-webkit-details-marker { display: none; }
.job__title { font-weight: 600; font-size: 17px; line-height: 1.35; }
.job__cell { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.job__cell--pay { color: var(--navy); font-weight: 600; }
.job__label { display: none; }
.job summary .icon { font-size: 20px; color: var(--accent); transition: transform 0.3s var(--ease); justify-self: end; }
.job[open] summary .icon { transform: rotate(45deg); }
.job__head { display: grid; grid-template-columns: 2.2fr 1.6fr 1.1fr 1fr 0.8fr 28px; gap: 16px; padding: 0 24px 10px; font-size: 13px; font-weight: 600; color: var(--lav-3); text-transform: uppercase; letter-spacing: 0.05em; }
.job__body { padding: 4px 24px 28px; border-top: 1px solid var(--border); margin: 0 24px; padding-left: 0; padding-right: 0; }
.job__meta { margin: 20px 0 14px; font-size: 14.5px; font-weight: 500; color: var(--blue); }
.job__body > p { color: var(--muted); max-width: 820px; }
.job__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 24px 0; }
.job__cols h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.job__nice { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.job__nice strong { color: var(--navy); }
.jobs__empty { display: none; padding: 28px; text-align: center; border-radius: 22px; background: var(--chip); color: var(--muted); }

/* programs */
.program { min-height: 0; }
.program .svc-card__body { gap: 0; }
.program__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.program h3 { margin-top: 22px; font-size: clamp(24px, 2.2vw, 32px); }
.program__cohort { margin-top: 8px; font-size: 15px; color: var(--lav); }
.program__cohort strong { color: #fff; font-weight: 600; }
.program__sub { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lav); }
.program__for { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; color: var(--lav-2); }
.program__for strong { color: #fff; font-weight: 600; }

/* practice areas */
.practice { padding: clamp(56px, 6vw, 88px) 0; border-top: 1px solid var(--border); }
.practice:first-of-type { border-top: 0; }
.practice__num { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: var(--lav-3); }
.practice .two-col { align-items: start; }
.practice--flip .two-col > :first-child { order: 2; }

/* contact */
.contact-card .svc-card__body { gap: 0; }
.contact-card a.contact-email { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.contact-card a.contact-email:hover { text-decoration: underline; text-underline-offset: 3px; }
.office { display: flex; flex-direction: column; gap: 22px; }
.office__row { display: flex; gap: 14px; align-items: flex-start; }
.office__row .point__icon { margin-top: 2px; }
.office__row strong { display: block; font-weight: 600; }
.office__row span, .office__row a { color: var(--muted); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }

.eeo { margin-top: 28px; font-size: 13.5px; color: var(--lav-3); text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .job summary, .job__head { grid-template-columns: 2fr 1.5fr 1.1fr 1fr 28px; }
  .job__cell--posted, .job__head .job__cell--posted { display: none; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .orb { order: -1; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .practice--flip .two-col > :first-child { order: 0; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .feature-quote { grid-template-columns: 1fr; justify-items: start; }
  .stairs { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stair:nth-child(n) { margin-top: 0; }
  .stair:nth-child(even) { margin-top: 60px; }
  .stair__line::before { min-height: 150px; }
  .job__head { display: none; }
  .job summary { grid-template-columns: 1fr 28px; gap: 6px 12px; }
  .job__title { grid-column: 1; }
  .job summary .icon { grid-row: 1; grid-column: 2; }
  .job__cell { grid-column: 1; }
  .job__cell--posted { display: block !important; }
  .job__label { display: inline; color: var(--lav-3); }
  .job__cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .stats, .stats--3 { grid-template-columns: 1fr 1fr; }
  .point-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stairs { grid-template-columns: 1fr; }
  .stair:nth-child(even) { margin-top: 0; align-items: flex-end; }
  .stair:nth-child(even) .stair__line { flex-direction: row-reverse; margin: 10px 22px 0 0; text-align: right; }
  .stair__line::before { min-height: 110px; }
  .footer__grid { grid-template-columns: 1fr; }
  .svc-card { border-radius: 28px; min-height: 260px; }
  .cta-panel { border-radius: 28px; }
  .btn-row .btn { flex: 1 1 auto; }
  .subnav { top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
