/* ════════════════════════════════════════════════════════════════════
   XPERION  ·  v3  Shared Design System
   Amber → Teal dominant gradient · Premium maximalist edition
   ════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.cdnfonts.com/css/coliner');

:root {
  /* CORE PALETTE */
  --obsidian:        #080B18;
  --obsidian-2:      #0D1120;
  --obsidian-3:      #111827;
  --ink:             #0E1225;
  --ink-2:           #2A2D45;
  --body-dark:       #3C3F5A;
  --mid:             #9A96AA;
  --mid-soft:        rgba(255,255,255,0.62);
  --line-dark:       rgba(255,255,255,0.08);
  --line-light:      rgba(8,11,24,0.10);

  --white:           #FFFFFF;
  --sand:            #FFF4E6;
  --sand-2:          #F5E8D0;

  /* BRAND - Teal anchor restored; Amber returns to accent role */
  --teal:            #00C9A7;     /* Xperion Teal - primary brand anchor */
  --teal-2:          #3DDC97;     /* Signal Green - gradient partner */
  --violet:          #7C3AED;     /* Electric Violet - AI accent */
  --violet-2:        #A78BFA;

  --amber:           #F59E0B;     /* Amber Gold - Consulting & accent */
  --amber-2:         #FCD34D;     /* Amber Light */
  --amber-deep:      #c47d00;     /* Amber Deep - on-sand text */
  --amber-soft:      #FBBF24;     /* Amber Soft - gradient bridge */

  /* Xperion Green family (kept defined for utility, less prominent in v3.1) */
  --green:           #3DDC97;     /* Signal Green */
  --green-emerald:   #34D399;
  --green-deep:      #1a9e66;
  --green-soft:      rgba(61,220,151,0.18);

  /* DOMINANT GRADIENT - v3.5, OKLCH-interpolated Teal → Amber.
     Perceptually uniform: the bridge passes through clean limelight tones
     instead of muddy olive that RGB interpolation produces.
     RGB fallback for browsers without `in oklch` support (Safari <16.4, FF <113). */
  --grad-hero:       linear-gradient(135deg in oklch, #00C9A7 0%, #34D399 42%, #F59E0B 100%);
  --grad-hero-rev:   linear-gradient(135deg in oklch, #F59E0B 0%, #34D399 58%, #00C9A7 100%);
  --grad-warm:       linear-gradient(135deg in oklch, #00C9A7 0%, #34D399 42%, #F59E0B 100%);
  --grad-warm-soft:  linear-gradient(135deg in oklch, rgba(0,201,167,0.22) 0%, rgba(52,211,153,0.18) 42%, rgba(245,158,11,0.16) 100%);
  --grad-deep:       linear-gradient(135deg in oklch, #00C9A7 0%, #7C3AED 55%, #F59E0B 100%);
  --grad-mark:       linear-gradient(135deg in oklch, #00C9A7 0%, #34D399 50%, #F59E0B 100%);
  --grad-band:       linear-gradient(90deg in oklch, #00C9A7 0%, #34D399 30%, #FBBF24 60%, #F59E0B 80%, #7C3AED 100%);
  --grad-green:      linear-gradient(135deg in oklch, #00C9A7 0%, #3DDC97 100%);
  --grad-amber:      linear-gradient(135deg in oklch, #F59E0B 0%, #FBBF24 100%);
  --grad-violet:     linear-gradient(135deg in oklch, #7C3AED 0%, #34D399 55%, #F59E0B 100%);
  --grad-green-lead: linear-gradient(135deg in oklch, #3DDC97 0%, #00C9A7 30%, #F59E0B 100%);

  /* GLOW */
  --glow-amber:      0 0 80px rgba(245,158,11,0.28);
  --glow-teal:       0 0 80px rgba(0,201,167,0.25);
  --glow-mix:        0 0 120px rgba(0,201,167,0.18), 0 0 80px rgba(245,158,11,0.16);

  /* RADII */
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-xl: 42px;

  /* MOTION, Xperion v3.4 spring system
     One rhythm. Springs for entrances and tactile feedback; flat easings for cross-fades only.
     Durations: micro 180ms · standard 280ms · expressive 420ms (exit = 70% of enter). */
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:       cubic-bezier(0.20, 0.70, 0.20, 1);
  --ease-spring:     linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.162, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  --ease-spring-soft: linear(0, 0.013, 0.05 2.3%, 0.197, 0.394 7.7%, 0.808 14.3%, 0.962 17.3%, 1.013, 1.045, 1.059 22.1%, 1.063, 1.061, 1.052 26.4%, 1.018 30.2%, 0.997 33.7%, 0.984, 0.978 39.4%, 0.974 42.4%, 0.975 45.3%, 0.992 55.9%, 1.001 67.4%, 1);
  --ease-spring-snap: linear(0, 0.024 2.4%, 0.093 4.8%, 0.359 9.6%, 0.79 14.4%, 0.961, 1.064 19.2%, 1.106 21.6%, 1.121, 1.121, 1.106, 1.075 27.6%, 0.991 33.2%, 0.962 35.6%, 0.94, 0.927, 0.925, 0.937 47.4%, 0.964 51%, 1.002 56.3%, 1.016 59%, 1.022 63%, 1.018 67%, 1);
  --ease-emphasis:   cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasis-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --d-micro: 180ms;
  --d-std:   280ms;
  --d-expr:  420ms;
  --d-exit:  200ms; /* ~70% of standard */

  /* TYPE */
  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  /* Page accent - overridable per page in inline <style> */
  --page-grad:   var(--grad-hero);
  --page-accent: var(--amber);
  --page-accent-2: var(--amber-2);
}

/* Gradient RGB fallback for browsers without OKLCH interpolation.
   Without this block, Safari <16.4 / Firefox <113 would render the gradients as the
   declaration's RGB-side default - which, for the OKLCH 3-stop, would skip the bridge.
   Here we re-declare with explicit amber-soft (#FBBF24) bridge stops to fake the
   perceptual midpoint that OKLCH interpolates through natively. */
@supports not (background: linear-gradient(in oklch, red, blue)) {
  :root {
    --grad-hero:       linear-gradient(135deg, #00C9A7 0%, #3DDC97 35%, #FBBF24 72%, #F59E0B 100%);
    --grad-hero-rev:   linear-gradient(135deg, #F59E0B 0%, #FBBF24 28%, #3DDC97 65%, #00C9A7 100%);
    --grad-warm:       linear-gradient(135deg, #00C9A7 0%, #3DDC97 35%, #FBBF24 72%, #F59E0B 100%);
    --grad-warm-soft:  linear-gradient(135deg, rgba(0,201,167,0.22) 0%, rgba(61,220,151,0.18) 50%, rgba(245,158,11,0.16) 100%);
    --grad-deep:       linear-gradient(135deg, #00C9A7 0%, #7C3AED 55%, #F59E0B 100%);
    --grad-mark:       linear-gradient(135deg, #00C9A7 0%, #3DDC97 40%, #FBBF24 75%, #F59E0B 100%);
    --grad-band:       linear-gradient(90deg, #00C9A7 0%, #3DDC97 25%, #FBBF24 55%, #F59E0B 78%, #7C3AED 100%);
    --grad-green:      linear-gradient(135deg, #00C9A7 0%, #3DDC97 100%);
    --grad-amber:      linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    --grad-violet:     linear-gradient(135deg, #7C3AED 0%, #3DDC97 55%, #F59E0B 100%);
    --grad-green-lead: linear-gradient(135deg, #3DDC97 0%, #00C9A7 30%, #F59E0B 100%);
  }
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  background: var(--obsidian);
  color: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Native cursor restored. The custom-cursor markup was retired across the
   site, so `cursor:none` here was hiding the pointer with no replacement.
   Removed so the standard cursor shows on every page. */

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* Global italic reset, Xperion has no italics. Emphasis is carried by weight + colour, never slant. */
em, i, cite, address, dfn, var { font-style: normal; font-weight: 600; }

::selection { background: var(--amber); color: var(--obsidian); }

/* GRAIN OVERLAY */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
}

/* (Custom-cursor styles removed - the markup was retired site-wide and the
   native cursor is now used everywhere.) */

/* SCROLL PROGRESS */
.xp-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none;
}
.xp-progress-fill {
  height: 100%; background: var(--grad-hero);
  transform-origin: left center; transform: scaleX(0);
  transition: transform 0.06s linear;
}

/* SKIP LINK */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 20px; background: var(--amber); color: var(--obsidian);
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* TOP TICKER */
.xp-toptick {
  position: relative; z-index: 100;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--line-dark);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); overflow: hidden;
}
.xp-toptick-track {
  display: flex; gap: 56px; padding: 9px 0;
  animation: tick 36s linear infinite; width: max-content;
}
.xp-toptick-track > span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.xp-toptick-track > span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--teal));
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* NAV */
.xp-nav {
  position: sticky; top: 0; z-index: 110;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(8,11,24,0.55);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.xp-nav.scrolled {
  background: rgba(8,11,24,0.82);
  border-bottom-color: rgba(245,158,11,0.18);
}
.xp-nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; gap: 24px;
}
/* Logo, v3.8 - mark + CSS-rendered gradient wordmark
   The .ai lockup baked the wordmark in black, which disappeared on the dark nav.
   We now compose the lockup in HTML: SVG mark + a styled "xperion" text span.
   The text uses the brand teal→amber gradient via background-clip:text, so it
   inherits page accents and stays visible on every background. */
.xp-logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  transition: opacity var(--d-std) var(--ease-emphasis-out);
}
.xp-logo:hover { opacity: 0.92; }
.xp-logo-img {
  height: 40px; width: auto; max-width: 100%; display: block; flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(0, 201, 167, 0.30));
  transition: filter var(--d-std) var(--ease-emphasis-out), transform var(--d-std) var(--ease-spring-soft);
}
.xp-logo:hover .xp-logo-img { filter: drop-shadow(0 0 24px rgba(0, 201, 167, 0.45)); transform: rotate(-4deg) scale(1.06); }
.xp-logo-wordmark {
  font-family: 'Coliner', 'Inter', system-ui, sans-serif;
  font-size: 32px; font-weight: 500; letter-spacing: 0.08em;
  line-height: 1;
  /* Brand gradient on the wordmark - teal anchor → green bridge → amber tail */
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 1px; /* prevents the gradient from clipping the rightmost stroke */
}
/* On Sand-bg surfaces the gradient still works (oklch path passes through legible mid-tones),
   but we darken the gradient slightly for contrast. */
.bg-sand .xp-logo-wordmark {
  background: linear-gradient(135deg in oklch, #008a72 0%, #1a9e66 45%, #c47d00 100%);
  -webkit-background-clip: text; background-clip: text;
}
/* Legacy survivors - keep hidden in case any old HTML still references them. */
.xp-logo-mark, .xp-logo-word { display: none; }
@media (max-width: 540px) {
  .xp-logo-img { height: 32px; width: auto; }
  .xp-logo-wordmark { font-size: 26px; }
}
.xp-nav-menu { display: flex; align-items: center; gap: 4px; }
.xp-nav-item {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.005em;
  color: rgba(255,255,255,0.75);
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  display: inline-flex; align-items: center; gap: 6px;
}
.xp-nav-item:hover, .xp-nav-item.active { color: white; background: rgba(255,255,255,0.05); }
.xp-nav-item .chev { font-size: 9px; opacity: 0.6; margin-top: 1px; }
.xp-nav-wrap { position: relative; }
.xp-nav-dd {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  width: 460px; padding: 16px;
  background: rgba(13,17,32,0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}
.xp-nav-wrap:hover .xp-nav-dd, .xp-nav-wrap:focus-within .xp-nav-dd {
  opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
}
.xp-dd-row {
  display: flex; gap: 14px; padding: 12px;
  border-radius: 12px; transition: background 0.2s var(--ease-out);
}
.xp-dd-row:hover { background: rgba(255,255,255,0.04); }
.xp-dd-num {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.xp-dd-row.teal   .xp-dd-num { color: var(--teal);     border-color: rgba(0,201,167,0.35);   background: rgba(0,201,167,0.06); }
.xp-dd-row.violet .xp-dd-num { color: var(--violet-2); border-color: rgba(124,58,237,0.35);  background: rgba(124,58,237,0.06); }
.xp-dd-row.amber  .xp-dd-num { color: var(--amber-2);  border-color: rgba(245,158,11,0.4);   background: rgba(245,158,11,0.07); }
.xp-dd-row.green  .xp-dd-num { color: var(--teal-2);   border-color: rgba(61,220,151,0.4);   background: rgba(61,220,151,0.07); }
.xp-dd-row.warm   .xp-dd-num { background: var(--grad-warm); color: var(--obsidian); border: none; }
.xp-dd-content strong { display: block; font-size: 14px; font-weight: 700; color: white; }
.xp-dd-content span   { display: block; font-size: 12.5px; color: var(--mid); margin-top: 2px; line-height: 1.5; }

.xp-cta {
  padding: 11px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--obsidian);
  background: var(--grad-hero);
  box-shadow: 0 4px 22px -6px rgba(0,201,167,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
}
.xp-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.xp-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(0,201,167,0.65), inset 0 1px 0 rgba(255,255,255,0.4); }
.xp-cta:hover::after { transform: translateX(120%); }

.xp-burger { display: none; }
@media (max-width: 900px) {
  .xp-nav-menu, .xp-cta { display: none; }
  .xp-burger { display: flex; flex-direction: column; gap: 5px; padding: 10px; position: relative; z-index: 1002; }
  .xp-burger span { width: 22px; height: 2px; background: white; border-radius: 2px; transition: transform var(--d-std) var(--ease-spring-soft), opacity var(--d-micro) var(--ease-out); }
}
/* Burger → X morph when the drawer is open */
.xp-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.xp-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.xp-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ──────────────────────────────────────────────
   Built once by xperion.js from the live desktop nav, so links never
   drift out of sync. Full-screen liquid-glass panel; dropdown contents
   are revealed inline (the desktop dropdowns are display:none). */
.xp-mobile-nav {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; flex-direction: column;
  padding: 84px 26px max(34px, env(safe-area-inset-bottom)) 26px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0,201,167,0.10), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(245,158,11,0.10), transparent 60%),
    linear-gradient(180deg, rgba(8,11,24,0.97), rgba(13,17,32,0.98));
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform var(--d-expr) var(--ease-emphasis), opacity var(--d-std) var(--ease-out), visibility 0s linear var(--d-expr);
}
.xp-mobile-nav.open { transform: none; opacity: 1; visibility: visible; transition: transform var(--d-expr) var(--ease-spring-soft), opacity var(--d-std) var(--ease-out); }
@media (min-width: 901px) { .xp-mobile-nav { display: none !important; } }

.xp-mnav-close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.78); border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.04);
  transition: color var(--d-micro) var(--ease-out), border-color var(--d-micro) var(--ease-out), transform var(--d-micro) var(--ease-spring-soft);
}
.xp-mnav-close:hover { color: var(--white); border-color: rgba(0,201,167,0.5); }
.xp-mnav-close:active { transform: scale(0.94); }

/* Re-flow the cloned desktop menu into a vertical stack */
.xp-mobile-nav .xp-nav-menu { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
.xp-mobile-nav .xp-nav-wrap { display: block; width: 100%; }
.xp-mobile-nav .xp-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 52px; padding: 14px 6px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--white);
  border-bottom: 1px solid var(--line-dark); text-align: left;
}
.xp-mobile-nav .xp-nav-wrap > .xp-nav-item {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-2); min-height: 40px; padding-top: 22px; border-bottom: none; cursor: default;
}
.xp-mobile-nav .xp-nav-wrap > .xp-nav-item .chev { display: none; }
/* Reveal the dropdown contents inline (desktop hides them) */
.xp-mobile-nav .xp-nav-dd {
  position: static; display: block; opacity: 1; visibility: visible; transform: none;
  background: none; border: none; box-shadow: none; padding: 0 0 8px; min-width: 0; width: 100%; pointer-events: auto;
}
.xp-mobile-nav .xp-dd-row { padding: 12px 10px; border-radius: var(--r-sm); min-height: 48px; }
.xp-mobile-nav .xp-dd-row:active { background: rgba(255,255,255,0.05); }
.xp-mobile-nav .xp-cta {
  display: inline-flex; justify-content: center; width: 100%;
  margin-top: 26px; padding: 16px 22px; font-size: 15px;
}
@media (prefers-reduced-motion: reduce) {
  .xp-mobile-nav { transition: opacity var(--d-std) linear, visibility 0s; transform: none; }
}

/* CONTAINER */
/* Content grid matches the nav grid (.xp-nav-inner, 1320px) so the hero copy,
   every section heading, and the footer share one left edge with the nav logo.
   Previously 1240px, which left content indented ~40px from the nav on wide
   screens - the visible "not left aligned" gap. */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) {
  .container { padding: 0 22px; }
  /* Keep the nav gutter equal to the content gutter on mobile so the logo
     lines up with the hero copy and section headings. */
  .xp-nav-inner { padding-left: 22px; padding-right: 22px; }
}

/* PAGE HERO (sub-page) */
.page-hero {
  position: relative; overflow: hidden;
  padding: 100px 0 88px;
  isolation: isolate;
}
/* Sub-page hero brand mark - same watermark treatment as the homepage hero,
   shared via CSS so every page benefits without HTML changes. */
.page-hero::after {
  content: '';
  position: absolute; right: -160px; top: 50%;
  width: 560px; height: 560px;
  transform: translateY(-50%);
  background-image: url('xperion-mark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.07;
  pointer-events: none; z-index: 0;
  filter: drop-shadow(0 0 50px rgba(0,201,167,0.18));
}
@media (max-width: 880px) {
  .page-hero::after { right: -220px; width: 420px; height: 420px; opacity: 0.05; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero::after { animation: page-hero-mark-drift 24s ease-in-out infinite alternate; }
}
@keyframes page-hero-mark-drift {
  0%   { transform: translate3d(0, -50%, 0) rotate(-2deg) scale(1); }
  100% { transform: translate3d(-2%, -47%, 0) rotate(3deg) scale(1.03); }
}
/* Ensure hero content sits above the watermark */
.page-hero .container { position: relative; z-index: 1; }
.page-hero-bg {
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(ellipse 65% 50% at 80% 22%, rgba(0,201,167,0.22), transparent 60%),
    radial-gradient(ellipse 55% 60% at 15% 80%, rgba(245,158,11,0.20), transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 75%, rgba(124,58,237,0.12), transparent 65%),
    var(--obsidian);
  animation: heroMesh 22s ease-in-out infinite alternate;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 70%, var(--obsidian) 100%);
}
@keyframes heroMesh {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}
.page-hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent 80%);
}

.page-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--page-accent-2, var(--amber-2));
  padding: 10px 20px;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.32);
  border-radius: 999px; margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: rise 0.9s var(--ease-out) 0.1s forwards;
}
.page-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--page-accent, var(--amber));
  box-shadow: 0 0 12px var(--page-accent, var(--amber));
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.page-hero h1 {
  /* Matches the landing hero h1 ceiling (56px) so sub-page titles read at the
     same scale as the homepage instead of the old 124px. */
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.035em;
  margin-bottom: 26px; max-width: 18ch;
  opacity: 0; transform: translateY(20px);
  animation: rise 0.95s var(--ease-out) 0.3s forwards;
}
.page-hero h1 .grad {
  background: var(--page-grad, var(--grad-hero));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradShift 8s linear infinite;
}
/* Display accent (was Instrument Serif italic). Now: tighter, gradient-weighted Inter. */
.page-hero h1 .serif {
  font-weight: 900; letter-spacing: -0.045em;
  background: var(--page-grad, var(--grad-hero));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

.page-hero-sub {
  font-size: clamp(15px, 1.1vw, 18px);
  color: rgba(255,255,255,0.72);
  max-width: 620px; line-height: 1.6;
  margin-bottom: 34px;
  opacity: 0; transform: translateY(16px);
  animation: rise 0.9s var(--ease-out) 0.5s forwards;
}
.page-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-bottom: 64px;
  opacity: 0; transform: translateY(16px);
  animation: rise 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px;
  background: var(--page-grad, var(--grad-hero));
  color: var(--obsidian);
  font-weight: 700; font-size: 15px; letter-spacing: 0.005em;
  border-radius: 999px;
  box-shadow: 0 16px 40px -10px rgba(0,201,167,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn-primary svg { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -10px rgba(0,201,167,0.65), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.04);
  color: white;
  font-weight: 600; font-size: 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
/* Sand variant for ghost button - readable dark outline on light bg */
.bg-sand .btn-ghost { background: var(--white); color: var(--ink); border-color: rgba(8,11,24,0.18); }
.bg-sand .btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.page-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding-top: 36px;
  opacity: 0; transform: translateY(16px);
  animation: rise 0.9s var(--ease-out) 0.9s forwards;
}
@media (max-width: 760px) { .page-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
/* Each stat cell is an iOS-style glass tile. No HTML changes needed, all CSS-driven. */
.page-hero-stats > div {
  position: relative;
  padding: 22px 20px 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--r-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 12px 36px -16px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--d-std) var(--ease-spring-soft),
    background var(--d-std) var(--ease-emphasis-out),
    border-color var(--d-std) var(--ease-emphasis-out),
    box-shadow var(--d-std) var(--ease-emphasis-out);
}
.page-hero-stats > div::after {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  transform: skewX(-14deg);
  transition: left 1.2s var(--ease-emphasis-out);
  pointer-events: none; z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .page-hero-stats > div:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translateY(-3px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(0, 0, 0, 0.18),
      0 20px 48px -18px rgba(0, 0, 0, 0.55);
  }
  .page-hero-stats > div:hover::after { left: 220%; }
}
.page-hero-stats > div > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .page-hero-stats > div::after { display: none; }
  .page-hero-stats > div:hover { transform: none; }
}
.page-hero-stat-num {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 900; letter-spacing: -0.035em; line-height: 1;
  margin-bottom: 10px;
  background: var(--page-grad, var(--grad-hero));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero-stat-label {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}

/* MARQUEE */
.marquee {
  position: relative; padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.015);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em; white-space: nowrap;
}
.marquee-item-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--grad-warm-soft);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--amber-2); font-weight: 800;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTION SHELL */
.section { position: relative; padding: 140px 0; }
.section.tight { padding: 96px 0; }
@media (max-width: 760px) { .section { padding: 88px 0; } .section.tight { padding: 64px 0; } }
.section.bg-sand { background: var(--sand); color: var(--ink); }
.section.bg-sand .section-eyebrow { color: var(--amber-deep); }
.section.bg-sand .section-eyebrow::before { background: var(--grad-warm); }
.section.bg-sand h2 { color: var(--ink); }
.section.bg-sand .section-lead { color: var(--ink-2); }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--page-accent-2, var(--amber-2));
  margin-bottom: 36px;
}
.section-eyebrow::before { content: ''; width: 56px; height: 3px; background: var(--page-grad, var(--grad-hero)); border-radius: 2px; }
.section h2 {
  /* Matches the landing section h2 (max 50px) - never larger than the hero. */
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.032em;
  margin-bottom: 22px; max-width: 20ch;
}
.section h2 .grad {
  background: var(--page-grad, var(--grad-hero));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradShift 9s linear infinite;
}
.section.bg-sand h2 .grad {
  background: linear-gradient(135deg, #c47d00 0%, #1a9e66 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Display accent (no italics). Heavier weight + amber-to-green gradient. */
.section h2 .serif {
  font-weight: 900; letter-spacing: -0.045em;
  background: var(--page-grad, var(--grad-hero));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradShift 9s linear infinite;
}
.section.bg-sand h2 .serif {
  background: linear-gradient(135deg, #c47d00 0%, #1a9e66 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-lead {
  font-size: 19px; color: rgba(255,255,255,0.72);
  max-width: 780px; line-height: 1.65; margin-bottom: 64px;
}

/* WHY GRID (split editorial) */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }
.why-text h2 { max-width: 22ch; }
.why-callout {
  font-weight: 500; letter-spacing: -0.018em;
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35;
  color: rgba(255,255,255,0.92);
  margin-top: 28px; padding-left: 22px;
  border-left: 3px solid; border-image: var(--page-grad, var(--grad-hero)) 1;
}
.bg-sand .why-callout { color: var(--ink); }
.why-points { display: flex; flex-direction: column; gap: 14px; }
.why-point {
  display: flex; gap: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.bg-sand .why-point { background: var(--white); border-color: rgba(8,11,24,0.08); }
.why-point:hover { border-color: rgba(245,158,11,0.3); }
.bg-sand .why-point:hover { box-shadow: 0 18px 40px -20px rgba(8,11,24,0.18); border-color: rgba(245,158,11,0.4); }
.why-point-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.28);
  color: var(--amber-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.bg-sand .why-point-icon { color: var(--amber-deep); }
.why-point strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.why-point span { display: block; font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.6; }
.bg-sand .why-point span { color: var(--body-dark); }

/* CAPABILITY GRID */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  position: relative; padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.bg-sand .cap-card { background: var(--white); border-color: rgba(8,11,24,0.08); }
.cap-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--page-grad, var(--grad-hero));
  opacity: 0.5; transition: opacity 0.4s var(--ease-out), height 0.4s var(--ease-out);
}
.cap-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.05), transparent 40%);
  opacity: 0; transition: opacity 0.5s var(--ease-out); pointer-events: none;
}
.bg-sand .cap-card::after { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(245,158,11,0.06), transparent 40%); }
.cap-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.28); }
.cap-card:hover::before { opacity: 1; height: 3px; }
.cap-card:hover::after { opacity: 1; }
.bg-sand .cap-card:hover { box-shadow: 0 24px 50px -22px rgba(8,11,24,0.18); }
.cap-card-num {
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 12px; color: var(--amber-2); margin-bottom: 12px; display: block;
}
.bg-sand .cap-card-num { color: var(--amber-deep); }
.cap-card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.28);
  color: var(--amber-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 22px;
  transition: transform 0.4s var(--ease-spring);
}
.bg-sand .cap-card-icon { color: var(--amber-deep); }
.cap-card:hover .cap-card-icon { transform: rotate(-6deg) scale(1.06); }
.cap-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.25; }
.cap-card p { font-size: 14.5px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 16px; }
.bg-sand .cap-card p { color: var(--body-dark); }
.cap-card ul { display: flex; flex-direction: column; gap: 8px; }
.cap-card li {
  font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
}
.bg-sand .cap-card li { color: var(--ink-2); }
.cap-card li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px;
  border-radius: 50%; margin-top: 8px;
  background: var(--page-grad, var(--grad-hero));
}

/* DELIVERABLES (2-col card grid with icon) */
.deliv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 760px) { .deliv-grid { grid-template-columns: 1fr; } }
.deliv-card {
  display: flex; gap: 18px;
  padding: 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.bg-sand .deliv-card { background: var(--white); border-color: rgba(8,11,24,0.08); }
.deliv-card:hover { transform: translateY(-3px); border-color: rgba(245,158,11,0.3); }
.deliv-card-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.28);
  color: var(--amber-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.bg-sand .deliv-card-icon { color: var(--amber-deep); }
.deliv-card strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.deliv-card span { display: block; font-size: 13.5px; color: rgba(255,255,255,0.62); line-height: 1.55; }
.bg-sand .deliv-card span { color: var(--body-dark); }

/* MODELS (3 engagement options) */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .models-grid { grid-template-columns: 1fr; } }
.model-card {
  position: relative; padding: 32px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.model-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.3); }
.model-card.featured {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(0,201,167,0.10));
  border-color: rgba(245,158,11,0.32);
}
.model-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-hero);
}
.model-popular {
  position: absolute; top: -12px; left: 28px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--grad-hero); color: var(--obsidian);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.model-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-2); margin-bottom: 12px;
}
.model-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.model-desc { font-size: 14.5px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 22px; }
.model-features { display: flex; flex-direction: column; gap: 10px; }
.model-features li {
  font-size: 13.5px; color: rgba(255,255,255,0.78);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.model-features li::before {
  content: '✓'; flex-shrink: 0; color: var(--amber-2);
  font-weight: 800; font-size: 12px; margin-top: 1px;
}
/* Sand variant - fixes white-on-Sand contrast on Engagement Models sections */
.bg-sand .model-card {
  background: var(--white);
  border-color: rgba(8,11,24,0.08);
  box-shadow: 0 4px 24px rgba(8,11,24,0.06);
}
.bg-sand .model-card:hover { border-color: rgba(245,158,11,0.4); box-shadow: 0 18px 40px -20px rgba(8,11,24,0.18); }
.bg-sand .model-card.featured {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(0,201,167,0.08));
  border-color: rgba(245,158,11,0.30);
}
.bg-sand .model-card h3 { color: var(--ink); }
.bg-sand .model-tag { color: var(--amber-deep); }
.bg-sand .model-desc { color: var(--body-dark); }
.bg-sand .model-features li { color: var(--ink-2); }
.bg-sand .model-features li::before { color: var(--amber-deep); }

/* PROCESS PHASES (4 step row) */
.phase-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative;
}
.phase-grid::before {
  content: ''; position: absolute; top: 38px; left: 5%; right: 5%; height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--teal-2), var(--violet), var(--teal));
  opacity: 0.3; z-index: 0;
}
@media (max-width: 880px) {
  .phase-grid { grid-template-columns: 1fr 1fr; }
  .phase-grid::before { display: none; }
}
@media (max-width: 540px) { .phase-grid { grid-template-columns: 1fr; } }
.phase {
  position: relative; z-index: 1;
  padding: 28px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.bg-sand .phase { background: var(--white); border-color: rgba(8,11,24,0.08); }
.phase:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.3); }
.phase-orb {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--obsidian);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; letter-spacing: -0.04em; font-size: 32px;
  margin-bottom: 24px; position: relative; color: white;
}
.bg-sand .phase-orb { background: var(--white); border-color: rgba(8,11,24,0.12); color: var(--ink); }
.phase-orb::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 50%; padding: 2px;
  background: var(--phase-grad, var(--grad-hero));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.phase:nth-child(1) { --phase-grad: linear-gradient(135deg, #F59E0B, #FBBF24); }
.phase:nth-child(2) { --phase-grad: linear-gradient(135deg, #FBBF24, #34D399); }
.phase:nth-child(3) { --phase-grad: linear-gradient(135deg, #34D399, #00C9A7); }
.phase:nth-child(4) { --phase-grad: linear-gradient(135deg, #00C9A7, #7C3AED); }
.phase-meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-2); margin-bottom: 10px; font-weight: 700; }
.bg-sand .phase-meta { color: var(--amber-deep); }
.phase h4 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 12px; }
.phase p { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.6; }
.bg-sand .phase p { color: var(--body-dark); }

/* OUTCOMES (4 stat cards) */
.outcomes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 880px) { .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
.outcome-card {
  padding: 32px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease-out);
}
.bg-sand .outcome-card { background: var(--white); border-color: rgba(8,11,24,0.08); }
.outcome-card:hover { border-color: rgba(245,158,11,0.3); }
.outcome-num {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px;
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.outcome-num small { font-size: 0.45em; -webkit-text-fill-color: rgba(255,255,255,0.6); background: none; }
.bg-sand .outcome-num small { -webkit-text-fill-color: var(--body-dark); }
.outcome-label { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.outcome-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.55; }
.bg-sand .outcome-desc { color: var(--body-dark); }

/* SPOTLIGHT (use case cards on industry pages) */
.spotlight-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 760px) { .spotlight-grid { grid-template-columns: 1fr; } }
.spotlight-card {
  display: flex; gap: 22px;
  padding: 28px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.bg-sand .spotlight-card { background: var(--white); border-color: rgba(8,11,24,0.08); }
.spotlight-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.3); }
.spotlight-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.28);
  color: var(--amber-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.bg-sand .spotlight-icon { color: var(--amber-deep); }
.spotlight-meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-2); font-weight: 700; margin-bottom: 6px; }
.bg-sand .spotlight-meta { color: var(--amber-deep); }
.spotlight-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 10px; }
.spotlight-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.bg-sand .spotlight-card p { color: var(--body-dark); }

/* CONTEXT STRIP (regulatory framework boxes) */
.context-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 880px) { .context-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .context-strip { grid-template-columns: 1fr; } }
.context-item {
  padding: 28px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease-out);
}
.context-item:hover { border-color: rgba(245,158,11,0.28); }
/* Sand variant for context-strip on light sections */
.bg-sand .context-item { background: var(--white); border-color: rgba(8,11,24,0.08); box-shadow: 0 4px 20px rgba(8,11,24,0.04); }
.bg-sand .context-item p { color: var(--body-dark); }
.bg-sand .context-label { color: var(--amber-deep); }
.context-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-2); font-weight: 700; margin-bottom: 10px;
}
.context-item p { font-size: 13.5px; color: rgba(255,255,255,0.62); line-height: 1.55; }

/* PRACTICE-MAP (5 cards horizontal) */
.pm-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
@media (max-width: 1080px) { .pm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .pm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .pm-grid { grid-template-columns: 1fr; } }
.pm-card {
  padding: 22px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  display: block;
}
.pm-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.32); }
.pm-eyebrow { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.pm-eyebrow.teal   { color: var(--teal); }
.pm-eyebrow.violet { color: var(--violet-2); }
.pm-eyebrow.amber  { color: var(--amber-2); }
.pm-eyebrow.green  { color: var(--teal-2); }
.pm-eyebrow.warm   { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pm-card h4 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.25; }
.pm-card p { font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.5; }
/* Sand variant - practice-map cards on light sections */
.bg-sand .pm-card { background: var(--white); border-color: rgba(8,11,24,0.08); box-shadow: 0 4px 24px rgba(8,11,24,0.05); }
.bg-sand .pm-card:hover { border-color: rgba(245,158,11,0.4); box-shadow: 0 18px 40px -20px rgba(8,11,24,0.18); }
.bg-sand .pm-card h4 { color: var(--ink); }
.bg-sand .pm-card p { color: var(--body-dark); }
.bg-sand .pm-eyebrow.teal   { color: #008a72; }
.bg-sand .pm-eyebrow.violet { color: #5b25b3; }
.bg-sand .pm-eyebrow.amber  { color: var(--amber-deep); }
.bg-sand .pm-eyebrow.green  { color: #1a9e66; }

/* RELATED PAGES (4 cards bottom) */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  padding: 26px 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  display: flex; flex-direction: column;
}
.bg-sand .related-card { background: var(--white); border-color: rgba(8,11,24,0.08); }
.related-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.3); }
.related-eyebrow {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 10px; color: var(--amber-2);
}
.bg-sand .related-eyebrow { color: var(--amber-deep); }
.related-card h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; }
.related-card p { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.bg-sand .related-card p { color: var(--body-dark); }
.related-arrow { font-size: 13px; font-weight: 700; color: var(--amber-2); }
.bg-sand .related-arrow { color: var(--amber-deep); }

/* TEAM CARDS (leadership) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  padding: 28px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.bg-sand .team-card { background: var(--white); border-color: rgba(8,11,24,0.08); }
.team-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.3); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-warm); color: var(--obsidian);
  font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.team-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 4px; }
.team-role { font-size: 12.5px; letter-spacing: 0.04em; color: var(--amber-2); font-weight: 600; margin-bottom: 16px; }
.bg-sand .team-role { color: var(--amber-deep); }
.team-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 18px; }
.bg-sand .team-card p { color: var(--body-dark); }
.team-links { display: flex; gap: 14px; }
.team-links a { font-size: 13px; color: var(--amber-2); font-weight: 600; }
.bg-sand .team-links a { color: var(--amber-deep); }

/* VALUES / BELIEFS */
.beliefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
@media (max-width: 880px) { .beliefs-grid { grid-template-columns: 1fr; gap: 28px; } }
.belief {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: border-color 0.4s var(--ease-out);
}
.bg-sand .belief { border-top-color: rgba(8,11,24,0.1); }
.belief::before {
  content: attr(data-num);
  position: absolute; top: 24px; right: 0;
  font-weight: 800; letter-spacing: -0.02em;
  font-size: 24px; color: var(--amber-2); opacity: 0.8;
}
.bg-sand .belief::before { color: var(--amber-deep); }
.belief:hover { border-top-color: rgba(245,158,11,0.4); }
.belief h4 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  margin-bottom: 12px; padding-top: 18px; max-width: 24ch;
}
.belief p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.65; max-width: 44ch; }
.bg-sand .belief p { color: var(--body-dark); }

/* TIMELINE (about) */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline-row {
  position: relative;
  padding: 28px 0 28px 36px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.bg-sand .timeline-row { border-left-color: rgba(8,11,24,0.15); }
.timeline-row::before {
  content: ''; position: absolute; left: -7px; top: 34px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--grad-hero);
  box-shadow: 0 0 16px rgba(0,201,167,0.5);
}
.timeline-year {
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 13px; color: var(--amber-2); margin-bottom: 8px;
}
.bg-sand .timeline-year { color: var(--amber-deep); }
.timeline-row h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.timeline-row p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.65; max-width: 60ch; }
.bg-sand .timeline-row p { color: var(--body-dark); }

/* NUMBER CARDS (already in homepage; replicated here for sub-pages) */
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 880px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
.number-card {
  padding: 32px 26px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease-out);
}
.bg-sand .number-card { background: var(--white); border-color: rgba(8,11,24,0.08); }
.number-card:hover { border-color: rgba(245,158,11,0.3); }
.number-card .num {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px;
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.number-card .num small { font-size: 0.45em; -webkit-text-fill-color: rgba(255,255,255,0.6); background: none; }
.bg-sand .number-card .num small { -webkit-text-fill-color: var(--body-dark); }
.number-card .num-label { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.number-card .num-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.55; }
.bg-sand .number-card .num-desc { color: var(--body-dark); }

/* JOB ROWS (careers) */
.jobs-team { margin-bottom: 28px; }
.jobs-team-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bg-sand .jobs-team-header { border-bottom-color: rgba(8,11,24,0.12); }
.jobs-team-name { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.jobs-team-count { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-2); font-weight: 700; }
.bg-sand .jobs-team-count { color: var(--amber-deep); }
.jobs-list { display: flex; flex-direction: column; gap: 0; }
.job-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s var(--ease-out), padding 0.25s var(--ease-out);
}
.bg-sand .job-row { border-bottom-color: rgba(8,11,24,0.06); }
.job-row:hover { background: rgba(245,158,11,0.04); padding-left: 12px; padding-right: 12px; }
.bg-sand .job-row:hover { background: rgba(245,158,11,0.08); }
.job-title { font-size: 16px; font-weight: 700; }
.job-meta { font-size: 13px; color: rgba(255,255,255,0.6); }
.bg-sand .job-meta { color: var(--body-dark); }
.job-cta {
  font-size: 13px; font-weight: 700; color: var(--amber-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.25s var(--ease-out);
}
.bg-sand .job-cta { color: var(--amber-deep); }
.job-row:hover .job-cta { gap: 12px; }
@media (max-width: 700px) {
  .job-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}

/* FORM (book a call) */
.book-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 980px) { .book-grid { grid-template-columns: 1fr; gap: 40px; } }
.agenda-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.agenda-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.agenda-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.agenda-mins {
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 13px; color: var(--amber-2);
}
.agenda-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.agenda-item p { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.55; }

.book-card {
  padding: 36px;
  /* iOS glass treatment: backdrop blur + inset highlight + soft drop shadow */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 24px 64px -24px rgba(0, 0, 0, 0.55);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  isolation: isolate;
}
.book-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-hero);
  z-index: 2;
}
/* Slow specular drift across the form to feel iOS-alive */
.book-card::after {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  transform: skewX(-14deg);
  animation: xp-glass-drift 12s linear infinite;
  pointer-events: none; z-index: 1;
}
.book-card > * { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .book-card::after { animation: none; display: none; }
}
.book-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 22px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.75); }
.form-row input, .form-row select, .form-row textarea {
  font-family: inherit; font-size: 14.5px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  color: white;
  outline: none;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: rgba(245,158,11,0.5);
  background: rgba(255,255,255,0.06);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23F59E0B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.form-row select option {
  background: #0E1225;
  color: white;
}
.form-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; margin-top: 8px;
  background: var(--grad-hero);
  color: var(--obsidian); font-weight: 700; font-size: 14.5px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 12px 32px -8px rgba(0,201,167,0.5);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(0,201,167,0.65); }
.form-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 14px; }

/* FAQ */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  cursor: pointer; list-style: none;
}
.faq-item:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.08); }
.bg-sand .faq-item { border-top-color: rgba(8,11,24,0.1); }
.bg-sand .faq-item:last-of-type { border-bottom-color: rgba(8,11,24,0.1); }
.faq-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600; letter-spacing: -0.015em;
  list-style: none;
  transition: color 0.3s var(--ease-out);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: var(--amber-2); }
.bg-sand .faq-summary:hover { color: var(--amber-deep); }
.faq-summary::after {
  content: ''; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 14px 1.5px, 1.5px 14px;
  background-position: center; background-repeat: no-repeat;
  transition: transform 0.4s var(--ease-out);
  color: rgba(255,255,255,0.7);
}
.bg-sand .faq-summary::after { background-color: rgba(8,11,24,0.04); border-color: rgba(8,11,24,0.12); color: var(--ink-2); }
.faq-item[open] .faq-summary::after { transform: rotate(135deg); color: var(--amber-2); }
.bg-sand .faq-item[open] .faq-summary::after { color: var(--amber-deep); }
.faq-body { padding-top: 18px; font-size: 15.5px; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 68ch; }
.bg-sand .faq-body { color: var(--body-dark); }

/* CTA FINALE */
.cta-finale {
  position: relative; overflow: hidden;
  padding: 120px 0 130px; isolation: isolate;
  text-align: center;
}
/* Brand-mark watermark anchored to the right of the CTA finale,
   subtle but unmistakeable. CSS-only - applies to all 22 pages. */
.cta-finale::after {
  content: '';
  position: absolute; right: -120px; top: 50%;
  width: 480px; height: 480px;
  transform: translateY(-50%);
  background-image: url('xperion-mark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.07;
  pointer-events: none; z-index: 0;
  filter: drop-shadow(0 0 50px rgba(0,201,167,0.18));
}
@media (max-width: 760px) {
  .cta-finale::after { right: -160px; width: 320px; height: 320px; opacity: 0.05; }
}
@media (prefers-reduced-motion: no-preference) {
  .cta-finale::after { animation: cta-mark-drift 20s ease-in-out infinite alternate; }
}
@keyframes cta-mark-drift {
  0%   { transform: translate3d(0, -50%, 0) rotate(-3deg); }
  100% { transform: translate3d(-4%, -48%, 0) rotate(5deg); }
}
.cta-finale-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(0,201,167,0.4), transparent 60%),
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(245,158,11,0.35), transparent 60%),
    var(--obsidian);
  animation: heroMesh 18s ease-in-out infinite alternate;
}
.cta-finale h2 {
  font-size: clamp(36px, 5.4vw, 80px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.98;
  margin: 0 auto 28px; max-width: 18ch;
}
.cta-finale h2 .grad { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta-finale-sub {
  font-size: 17px; color: rgba(255,255,255,0.7);
  max-width: 56ch; margin: 0 auto 36px; line-height: 1.6;
}
.cta-finale-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.colour-band {
  height: 3px; background: var(--grad-band);
  background-size: 200% 100%;
  animation: gradShift 12s linear infinite;
}

/* FOOTER */
.xp-footer { background: var(--obsidian); padding: 80px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.xp-footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 52px;
}
@media (max-width: 980px) { .xp-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .xp-footer-top { grid-template-columns: 1fr; } }
.xp-footer-brand-name {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  text-decoration: none;
}
.xp-footer-brand-img {
  height: 44px; width: auto; max-width: 100%; display: block; flex-shrink: 0;
}
@media (max-width: 560px) {
  .xp-footer-brand-img { height: 36px; }
}
.xp-footer-brand-wordmark {
  font-family: 'Coliner', 'Inter', system-ui, sans-serif;
  font-size: 40px; font-weight: 500; letter-spacing: 0.08em;
  line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.xp-footer-brand-name-legacy {
  font-size: 24px; font-weight: 900; letter-spacing: -0.025em;
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.xp-footer-tagline { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.6; max-width: 36ch; margin-bottom: 24px; }
.xp-footer-social { display: flex; gap: 10px; }
.xp-footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.xp-footer-social a:hover { background: rgba(245,158,11,0.12); color: var(--amber-2); border-color: rgba(245,158,11,0.32); }
.xp-footer-col h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.xp-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.xp-footer-col a { font-size: 14px; color: rgba(255,255,255,0.78); transition: color 0.25s var(--ease-out); }
.xp-footer-col a:hover { color: var(--amber-2); }
.xp-footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}
.xp-footer-meta { display: flex; gap: 22px; }
.xp-footer-meta a:hover { color: var(--amber-2); }
/* Touch: enlarge footer tap targets so adjacent links can't be mis-tapped.
   The 14px links at 10px gaps were ~20px tall, under the 44px touch guideline,
   so on phones/tablets a tap could land on the neighbouring link (reading as
   "went to the wrong page"). Block-level links make the whole row tappable. */
@media (max-width: 900px) {
  .xp-footer-col a { display: block; padding: 9px 0; }
  .xp-footer-col ul { gap: 2px; }
  .xp-footer-meta { flex-wrap: wrap; gap: 4px 20px; }
  .xp-footer-meta a { display: inline-block; padding: 9px 2px; }
}

/* PROOF QUOTE */
.proof-block {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(245,158,11,0.10), transparent 65%),
    transparent;
  padding: 80px 0;
}
.proof-mark {
  font-weight: 900; letter-spacing: -0.05em;
  font-size: 96px;
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 4px;
}
.proof-quote {
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.22; letter-spacing: -0.025em;
  color: rgba(255,255,255,0.92);
  max-width: 28ch; margin: 0 auto 28px;
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); will-change: transform, opacity; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .page-eyebrow, .page-hero h1, .page-hero-sub, .page-hero-actions, .page-hero-stats {
    opacity: 1 !important; transform: none !important;
  }
  .xp-page-veil { display: none !important; }
  .xp-tilt-host, [data-tilt] { transform: none !important; }
  .xp-parallax { transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   PAGE TRANSITIONS, v3.4
   Veil-fade between same-origin routes. Spring out, fast in.
   Body class `is-entering` is set on next page load; veil fades back out.
   ════════════════════════════════════════════════════════════════════ */
.xp-page-veil {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 60% at 78% 22%, rgba(245,158,11,0.22), transparent 60%),
    radial-gradient(ellipse 60% 70% at 12% 86%, rgba(0,201,167,0.22), transparent 60%),
    var(--obsidian);
  transition: opacity var(--d-std) var(--ease-emphasis);
  display: flex; align-items: center; justify-content: center;
}
/* Brand mark inside the veil - spatial continuity during page transitions,
   very Apple. Scales in slightly as the veil fades in. */
.xp-page-veil::before {
  content: '';
  width: 112px; height: 112px;
  background-image: url('xperion-mark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0;
  transform: scale(0.86);
  filter: drop-shadow(0 0 40px rgba(0,201,167,0.45));
  transition:
    opacity var(--d-std) var(--ease-emphasis-out) 60ms,
    transform var(--d-expr) var(--ease-spring-soft) 60ms;
}
body.is-leaving .xp-page-veil::before { opacity: 1; transform: scale(1); }
.xp-page-veil::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--grad-band);
  background-size: 200% 100%;
  transform-origin: left center; transform: scaleX(0);
  transition: transform var(--d-expr) var(--ease-emphasis);
}
body.is-leaving .xp-page-veil { opacity: 1; pointer-events: auto; }
body.is-leaving .xp-page-veil::after { transform: scaleX(1); }
body.is-entering { animation: xp-page-rise var(--d-expr) var(--ease-spring-soft) both; }
@keyframes xp-page-rise {
  from { opacity: 0; transform: translateY(8px) scale(0.998); filter: saturate(0.85); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ════════════════════════════════════════════════════════════════════
   SCROLL-DRIVEN CHOREOGRAPHY
   Modern (Chrome/Edge 115+): native scroll-timeline. Older browsers fall back
   to the existing IntersectionObserver reveal.
   ════════════════════════════════════════════════════════════════════ */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0; transform: translateY(36px);
    animation: xp-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }
  .reveal-stagger > * {
    opacity: 0; transform: translateY(24px);
    animation: xp-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  .reveal-stagger > *:nth-child(1) { animation-delay: 0.04s; }
  .reveal-stagger > *:nth-child(2) { animation-delay: 0.08s; }
  .reveal-stagger > *:nth-child(3) { animation-delay: 0.12s; }
  .reveal-stagger > *:nth-child(4) { animation-delay: 0.16s; }
  .reveal-stagger > *:nth-child(5) { animation-delay: 0.20s; }
  .reveal-stagger > *:nth-child(6) { animation-delay: 0.24s; }
  .reveal-stagger > *:nth-child(7) { animation-delay: 0.28s; }
  .reveal-stagger > *:nth-child(8) { animation-delay: 0.32s; }
  .xp-parallax {
    animation: xp-parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
    will-change: transform;
  }
  .xp-scroll-fade {
    animation: xp-scroll-fade linear both;
    animation-timeline: view();
    animation-range: cover 0% exit 60%;
  }
  /* Page progress bar driven by document scroll, no JS needed */
  .xp-progress-fill {
    animation: xp-progress linear both;
    animation-timeline: scroll();
  }
}
@keyframes xp-reveal {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes xp-parallax {
  from { transform: translate3d(0, 6%, 0); }
  to   { transform: translate3d(0, -6%, 0); }
}
@keyframes xp-scroll-fade {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes xp-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ════════════════════════════════════════════════════════════════════
   HERO POLISH
   Slower mesh, layered gradients, subtle gradient drift on display text.
   ════════════════════════════════════════════════════════════════════ */
.page-hero-bg, .hero-bg {
  animation-duration: 28s !important;
}
.page-hero h1 .grad, .page-hero h1 .serif,
.section h2 .grad, .section h2 .serif {
  background-size: 220% 100%;
  animation-duration: 10s !important;
}
.page-hero, .hero {
  view-timeline-name: --hero;
}
@supports (animation-timeline: view()) {
  .page-hero-grid, .hero-grid-overlay {
    animation: xp-hero-grid-fade linear both;
    animation-timeline: --hero;
    animation-range: entry 0% exit 60%;
  }
}
@keyframes xp-hero-grid-fade {
  0%   { opacity: 0.18; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(0, -6%, 0); }
}

/* Spring-feel on key interactive surfaces. transform/opacity only, no layout. */
.xp-cta, .btn-primary, .btn-ghost,
.cap-card, .pm-card, .related-card, .team-card, .industry-card,
.spotlight-card, .phase, .outcome-card, .number-card, .model-card,
.problem-card, .deliv-card, .insight-card {
  transition:
    transform var(--d-std) var(--ease-spring-soft),
    box-shadow var(--d-std) var(--ease-emphasis-out),
    border-color var(--d-std) var(--ease-emphasis-out),
    background var(--d-std) var(--ease-emphasis-out);
}
.xp-cta:active, .btn-primary:active, .btn-ghost:active { transform: translateY(0) scale(0.985); transition-duration: var(--d-micro); }
.cap-card:active, .pm-card:active, .related-card:active, .industry-card:active, .insight-card:active { transform: translateY(-2px) scale(0.995); transition-duration: var(--d-micro); }

/* Focus-visible: visible rings without trampling the cursor system. */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--amber-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Tap-action hints + iOS double-tap delay removal on key surfaces */
a, button, summary, .xp-cta, .btn-primary, .btn-ghost, .insight-card { touch-action: manipulation; }

/* ════════════════════════════════════════════════════════════════════
   iOS LIQUID GLASS, v3.6
   Frosted surface that takes its colour from what's behind it.
   Per Apple HIG: glass adapts to context, never imposes brand colour.
   Backdrop-filter + thin border + inset highlight + soft outer shadow.
   Optional specular sweep that travels across the surface on hover.
   Only used on dark backgrounds - Sand sections use the existing white-card treatment.
   ════════════════════════════════════════════════════════════════════ */
.xp-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 16px 48px -18px rgba(0, 0, 0, 0.45);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition:
    background var(--d-std) var(--ease-emphasis-out),
    border-color var(--d-std) var(--ease-emphasis-out),
    transform var(--d-std) var(--ease-spring-soft),
    box-shadow var(--d-std) var(--ease-emphasis-out);
}

/* Specular sweep - a light highlight that travels across on hover.
   Disabled on touch-only devices where there's no hover. */
.xp-glass::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%);
  transform: skewX(-14deg);
  transition: left 1.2s var(--ease-emphasis-out);
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .xp-glass:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(0, 0, 0, 0.18),
      0 24px 56px -20px rgba(0, 0, 0, 0.55);
  }
  .xp-glass:hover::after { left: 220%; }
}

/* Continuous gentle specular drift on the page-hero stat cells - feels iOS-alive */
.xp-glass.is-drift::after {
  animation: xp-glass-drift 9s linear infinite;
  width: 50%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
}
@keyframes xp-glass-drift {
  0%   { left: -120%; }
  100% { left: 220%; }
}

/* Soft inner edge ring - Apple's signature 1px specular outline */
.xp-glass.is-edge-lit {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 18px 56px -20px rgba(0, 0, 0, 0.55);
}

/* Tinted variants - colour the frost very subtly with brand tones for context.
   Apple keeps these readings minimal so the content beneath still drives the look. */
.xp-glass.tint-teal   { background: rgba(0,201,167,0.06);  border-color: rgba(0,201,167,0.22); }
.xp-glass.tint-violet { background: rgba(124,58,237,0.06); border-color: rgba(124,58,237,0.22); }
.xp-glass.tint-amber  { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.22); }

/* Reduced-motion: no sweep, no drift, no hover lift */
@media (prefers-reduced-motion: reduce) {
  .xp-glass::after, .xp-glass.is-drift::after { animation: none !important; display: none; }
  .xp-glass:hover { transform: none; }
}

/* Backdrop-filter fallback for browsers without support (very old Firefox).
   Without backdrop-filter, the glass just becomes a subtle translucent panel. */
@supports not (backdrop-filter: blur(2px)) {
  .xp-glass { background: rgba(255,255,255,0.05); }
}

/* ════════════════════════════════════════════════════════════════════
   TECH STACK SECTION, v3.9
   Category-grouped pill grid showing the languages, frameworks, AI tools,
   cloud, devops, and design tools Xperion ships with. Subtle, scannable.
   Colour-coded by category to map to the practice palette.
   ════════════════════════════════════════════════════════════════════ */
.tech-stack-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  align-items: start;
}
@media (max-width: 1100px) { .tech-stack-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 540px)  { .tech-stack-grid { grid-template-columns: 1fr; } }

.tech-stack-cat {
  display: flex; flex-direction: column; gap: 14px;
}
.tech-stack-cat-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cat-color, var(--teal));
  color: var(--cat-color, var(--teal));
}
.tech-stack-cat-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--cat-bg, rgba(0,201,167,0.12));
  border: 1px solid var(--cat-color, var(--teal));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}
.tech-stack-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tech-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.005em;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  transition:
    transform var(--d-micro) var(--ease-spring-snap),
    background var(--d-std) var(--ease-emphasis-out),
    border-color var(--d-std) var(--ease-emphasis-out),
    color var(--d-std) var(--ease-emphasis-out);
  cursor: default; white-space: nowrap;
}
/* Every logo sits inside a 26×26 white chip - uniform neutral backdrop regardless
   of the logo's native colour. This eliminates the "patchy" look when bright
   coloured logos and dark logos sit next to each other on the same line. */
.tech-pill img {
  width: 18px; height: 18px; display: block; flex-shrink: 0;
  padding: 4px; box-sizing: content-box;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(8,11,24,0.10), inset 0 0 0 1px rgba(8,11,24,0.06);
  object-fit: contain;
}
/* When pill has no logo, restore symmetric padding */
.tech-pill:not(:has(img)) { padding: 6px 14px; }
@media (hover: hover) and (pointer: fine) {
  .tech-pill:hover {
    transform: translateY(-1px);
    background: var(--cat-bg, rgba(0,201,167,0.12));
    border-color: var(--cat-color, var(--teal));
    color: var(--cat-text-hover, white);
  }
}
.tech-stack-meta {
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,0.62);
}
.tech-stack-meta strong { color: white; font-weight: 600; }

/* Category tints - mapped to the practice palette */
.tech-stack-cat.cat-violet { --cat-color: var(--violet-2); --cat-bg: rgba(124,58,237,0.12); --cat-text-hover: white; }
.tech-stack-cat.cat-teal   { --cat-color: var(--teal);     --cat-bg: rgba(0,201,167,0.12); --cat-text-hover: white; }
.tech-stack-cat.cat-amber  { --cat-color: var(--amber-2);  --cat-bg: rgba(245,158,11,0.12); --cat-text-hover: var(--obsidian); }
.tech-stack-cat.cat-green  { --cat-color: var(--teal-2);   --cat-bg: rgba(61,220,151,0.14); --cat-text-hover: var(--obsidian); }
.tech-stack-cat.cat-rose   { --cat-color: var(--amber-2);  --cat-bg: rgba(245,158,11,0.10); --cat-text-hover: var(--obsidian); }

/* Sand variant - pills become white-on-ink, category labels darken */
.bg-sand .tech-pill {
  background: var(--white);
  border-color: rgba(8,11,24,0.10);
  color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(8,11,24,0.04);
}
.bg-sand .tech-pill:hover { color: var(--ink); border-color: var(--cat-color, var(--teal)); background: var(--white); box-shadow: 0 6px 16px rgba(8,11,24,0.08); }
/* On Sand, the logo chip already matches the section bg, so we soften the chip outline */
.bg-sand .tech-pill img {
  background: var(--sand);
  box-shadow: inset 0 0 0 1px rgba(8,11,24,0.08);
}
.bg-sand .tech-stack-cat.cat-violet { --cat-color: #5b25b3; }
.bg-sand .tech-stack-cat.cat-teal   { --cat-color: #008a72; }
.bg-sand .tech-stack-cat.cat-amber  { --cat-color: var(--amber-deep); }
.bg-sand .tech-stack-cat.cat-green  { --cat-color: #1a9e66; }
.bg-sand .tech-stack-cat.cat-rose   { --cat-color: var(--amber-deep); }
.bg-sand .tech-stack-meta { color: var(--body-dark); border-top-color: rgba(8,11,24,0.10); }
.bg-sand .tech-stack-meta strong { color: var(--ink); }

/* Reduced motion: kill pill hover micro-anim */
@media (prefers-reduced-motion: reduce) {
  .tech-pill:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   XPERION SITE-WIDE SYSTEM v3.8  (May 2026)
   Patterns originally inlined on the company-profile landing page,
   promoted into the shared stylesheet so every connected page inherits
   the same vocabulary: section meshes, kicker labels, H2 accent,
   light-bg overrides, and the scroll-3d tilt effect.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── SECTION KICKER (large sans label, leading hairline) ────────── */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--amber-2, #FCD34D);
  margin-bottom: clamp(20px, 2.4vw, 28px);
  padding: 0;
  border: none;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 44px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
  border-radius: 2px;
}

/* ─── H2 ACCENT (upright serif, no italic) ───────────────────────── */
.serif-italic-h {
  font-family: var(--font-serif, 'Instrument Serif', serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.03em;
  color: var(--amber-2, #FCD34D);
}

/* ─── LIGHT-BG OVERRIDES (Industries, Tech Stack, Insights) ──────── */
.industries .section-kicker,
.industries .serif-italic-h,
.bg-sand .section-kicker,
.bg-sand .serif-italic-h {
  color: var(--amber-deep, #c47d00);
}
.industries .serif-italic-h,
.bg-sand .serif-italic-h {
  color: #1a9e66;
}

/* ─── SECTION MESH (animated radial-gradient ambient background) ─── */
.section-mesh {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 58% at 26% 36%, var(--mesh-a, rgba(0,201,167,0.22)), transparent 60%),
    radial-gradient(ellipse 56% 60% at 78% 70%, var(--mesh-b, rgba(245,158,11,0.22)), transparent 62%);
  animation: xp-mesh-drift 26s ease-in-out infinite alternate;
  mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, black 60%, transparent 100%);
}
.section-mesh[data-palette="violet-teal"]  { --mesh-a: rgba(124,58,237,0.20); --mesh-b: rgba(0,201,167,0.18); }
.section-mesh[data-palette="amber-warm"]   { --mesh-a: rgba(245,158,11,0.28); --mesh-b: rgba(252,191,36,0.16); }
.section-mesh[data-palette="teal-amber"]   { --mesh-a: rgba(0,201,167,0.24);  --mesh-b: rgba(245,158,11,0.24); }
.section-mesh[data-palette="teal-violet"]  { --mesh-a: rgba(0,201,167,0.20);  --mesh-b: rgba(124,58,237,0.18); }
.section-mesh[data-palette="amber-violet"] { --mesh-a: rgba(245,158,11,0.22); --mesh-b: rgba(124,58,237,0.18); }
@keyframes xp-mesh-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .section-mesh { animation: none; }
}

/* ─── SECTION FIELD (canvas constellation overlay) ───────────────── */
.section-field {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: screen;
}
.section-field.is-live { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
  .section-field { display: none; }
}

/* ── HERO GRID CANVAS (ported from the landing hero) ────────────────
   Injected by xperion.js into every .page-hero. Renders the same
   animated grid + traveling data photons as the landing page's hero.
   Scoped to .page-hero only, so the landing page's own .hero is never
   affected. Sits above the static hero background (z-index -1) and below
   the hero text container (z-index 1). */
.page-hero > .hero-field {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  mask-image: radial-gradient(ellipse 75% 80% at 50% 45%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 45%, black 30%, transparent 90%);
  mix-blend-mode: screen;
}
.page-hero > .hero-field.is-live { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .page-hero > .hero-field { display: none; }
}

/* WebGL interlocking-loops field on sub-page heroes - same animation as the
   landing hero, carried over via xperion.js. Sits behind the copy and is
   masked to the right so the left-aligned headline stays legible. Falls back
   to the 2D .hero-field above when WebGL is unavailable. */
.page-hero > .hero-gl {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 68% 46%, #000 34%, transparent 86%);
  mask-image: radial-gradient(ellipse 80% 82% at 68% 46%, #000 34%, transparent 86%);
}
.page-hero > .hero-gl.is-live { opacity: 1; }
@media (min-width: 981px) {
  .page-hero > .hero-gl {
    -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,0.2) 34%, #000 62%);
    mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,0.2) 34%, #000 62%);
  }
}
@media (prefers-reduced-motion: reduce) { .page-hero > .hero-gl { display: none; } }
/* When the loop is live the static watermark mark recedes so it doesn't clash. */
.page-hero.gl-live::after { opacity: 0.035; }

/* ─── SECTION SHELL (provides z-index ordering for mesh + content) ─ */
.section {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.section > .container { position: relative; z-index: 2; }

/* ─── 3D SCROLL TILT (extracted from Aceternity ContainerScroll) ─── */
.scroll-3d {
  --s3d-rotate: 0deg;
  --s3d-scale: 1;
  --s3d-translate: 0px;
  --s3d-opacity: 1;
  transform-origin: 50% 0%;
  transform:
    perspective(1400px)
    translate3d(0, var(--s3d-translate), 0)
    rotateX(var(--s3d-rotate))
    scale(var(--s3d-scale));
  opacity: var(--s3d-opacity);
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-3d {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   CAREERS - filter chips + data-driven jobs list (xperion-jobs.js)
   ════════════════════════════════════════════════════════════════════ */
.jobs-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 40px;
}
.jobs-chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--mid-soft);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  transition: color var(--d-micro) var(--ease-out), border-color var(--d-micro) var(--ease-out),
              background var(--d-micro) var(--ease-out), transform var(--d-micro) var(--ease-spring-soft);
}
.jobs-chip:hover { color: var(--white); border-color: rgba(61,220,151,0.45); }
.jobs-chip:active { transform: scale(0.97); }
.jobs-chip.is-active {
  color: var(--obsidian); background: var(--grad-green); border-color: transparent;
  box-shadow: 0 6px 20px -8px rgba(61,220,151,0.6);
}
.jobs-chip-n {
  font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.10); color: inherit;
}
.jobs-chip.is-active .jobs-chip-n { background: rgba(8,11,24,0.18); }
.jobs-groups { display: grid; gap: 28px; }
.jobs-team[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════════════
   JOB DETAIL PAGE (job - rendered by xperion-jobs.js)
   ════════════════════════════════════════════════════════════════════ */
.job-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--mid);
  margin-bottom: 22px;
}
.job-breadcrumb a { color: var(--mid-soft); transition: color var(--d-micro) var(--ease-out); }
.job-breadcrumb a:hover { color: var(--page-accent, var(--teal-2)); }
.job-breadcrumb span[aria-hidden] { opacity: 0.4; }
.job-breadcrumb > span:last-child { color: var(--white); }

.job-hero h1 { max-width: 18ch; }

.job-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 32px; }
.job-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark);
  font-size: 14px; font-weight: 700; color: var(--white);
}
.job-chip-k {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid);
}

.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
@media (max-width: 940px) { .job-layout { grid-template-columns: 1fr; gap: 40px; } }
.job-main { min-width: 0; }

.job-block { margin-bottom: 40px; }
.job-block:last-child { margin-bottom: 0; }
.job-block h2 {
  font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.job-block > p { font-size: 17px; line-height: 1.72; color: var(--mid-soft); max-width: 64ch; }
.job-ul { display: grid; gap: 13px; max-width: 64ch; }
.job-ul li {
  position: relative; padding-left: 30px;
  font-size: 16px; line-height: 1.66; color: var(--mid-soft);
}
.job-ul li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--grad-green); transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(61,220,151,0.5);
}

.job-aside { position: sticky; top: 96px; }
@media (max-width: 940px) { .job-aside { position: static; } }
.job-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.job-card-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-dark);
}
.job-card-row:first-child { padding-top: 0; }
.job-card-k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mid); }
.job-card-v { font-size: 15px; font-weight: 700; color: var(--white); text-align: right; }
.job-card-apply { width: 100%; justify-content: center; margin-top: 22px; }
.job-card-note { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--mid); }

.job-related { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line-dark); }
.job-related .section-kicker { margin-bottom: 22px; }

/* ── SR-ONLY (visually hidden, available to assistive tech) ──────────
   Added v3.8: used by job static H1 fallback. */
.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;
}

/* ── v3.9 helpers (leadership → about-team pointer) ────────────────── */
.u-mt-32 { margin-top: 32px; }
.inline-link { color: var(--teal-2); border-bottom: 1px solid currentColor; }
