:root {
  /* Chart Nebula Copper (official campaign palette) */
  --es-bg: #060918;
  --es-bg-mid: #040818;
  --es-bg-alt: #0f0824;
  --es-burst-1: rgba(45, 212, 191, 0.2);
  --es-burst-2: rgba(139, 92, 246, 0.17);
  --es-burst-3: rgba(59, 130, 246, 0.14);
  --es-burst-4: rgba(236, 72, 153, 0.07);
  --es-surface: rgba(14, 18, 42, 0.82);
  --es-surface-strong: rgba(22, 26, 54, 0.94);
  --es-surface-soft: rgba(255, 255, 255, 0.045);
  --es-border: rgba(147, 197, 253, 0.14);
  --es-border-strong: rgba(147, 197, 253, 0.22);
  /* Hairline + rim light (flagship UI depth) */
  --es-border-hairline: rgba(255, 255, 255, 0.055);
  --es-rim-light: rgba(255, 255, 255, 0.09);
  --es-text: #f1f5ff;
  --es-muted: #94a3c8;
  --es-accent: #c77b47;
  --es-accent-2: #ffc48a;
  --es-accent-rgb: 199, 123, 71;
  --es-signal: #2dd4bf;
  --es-grid: rgba(99, 179, 237, 0.045);
  --es-danger: #ff8a80;
  --es-ok: #5eead4;
  /* Layered shadow stack: ambient lift + contact shadow */
  --es-shadow: 0 32px 100px -28px rgba(0, 0, 0, 0.62), 0 12px 36px -18px rgba(0, 0, 0, 0.38);
  --es-shadow-soft: 0 24px 72px -20px rgba(0, 0, 0, 0.5), 0 8px 24px -12px rgba(0, 0, 0, 0.28);
  --es-shadow-inset-rim: inset 0 1px 0 var(--es-rim-light);
  --es-radius-card: 28px;
  --es-radius-card-lg: 32px;
  --es-font-display: "Oxanium", system-ui, sans-serif;
  --es-font-body: "Sora", system-ui, sans-serif;
  --es-font-mono: "Azeret Mono", ui-monospace, monospace;
  /* Signature CTAs: diagonal cut on the right; left corners rounded (see .es-button clip-path) */
  --es-button-slice: 1rem;
  --es-button-corner-r: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: clip;
  max-width: 100%;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--es-text);
  font-family: var(--es-font-body);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 18% 18%, var(--es-burst-1), transparent 32%),
    radial-gradient(circle at 82% 10%, var(--es-burst-2), transparent 30%),
    radial-gradient(circle at 50% 115%, var(--es-burst-3), transparent 38%),
    radial-gradient(circle at 45% 35%, var(--es-burst-4), transparent 45%),
    linear-gradient(180deg, var(--es-bg) 0%, var(--es-bg-mid) 56%, var(--es-bg-alt) 100%);
  position: relative;
  overflow-x: clip;
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--es-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--es-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 82%);
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(199, 123, 71, 0.38);
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--es-font-display);
  letter-spacing: -0.02em;
}

.es-display-font {
  font-family: var(--es-font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.es-wordmark {
  font-family: var(--es-font-display);
  letter-spacing: -0.02em;
}

/* Lockup: chart “edge” mark + Edge (cool white) / State (copper–ice metal) */
.es-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  outline-offset: 4px;
}

.es-brand-lockup:focus-visible {
  outline: 2px solid rgba(199, 123, 71, 0.55);
  border-radius: 6px;
}

.es-brand-mark-img {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: block;
}

.es-brand-lockup--footer {
  gap: 0.55rem;
}

.es-brand-lockup--footer .es-brand-mark-img {
  width: 2.2rem;
  height: 2.2rem;
}

.es-brand-type {
  font-family: var(--es-font-display);
  font-size: clamp(1.22rem, 2.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.es-brand-edge {
  color: #f1f5f9;
  letter-spacing: -0.042em;
}

.es-brand-state {
  background: linear-gradient(118deg, #fffbeb 0%, #ffc48a 28%, #c77b47 55%, #bae6fd 92%, #f8fafc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not (background-clip: text) {
  .es-brand-state {
    color: var(--es-accent-2);
  }
}

.es-brand-tm {
  font-size: 0.4em;
  font-weight: 600;
  margin-left: 0.1em;
  position: relative;
  top: -0.55em;
  color: rgba(255, 196, 138, 0.82);
  letter-spacing: 0;
}

.es-brand-lockup--footer .es-brand-type {
  font-size: 1.14rem;
  letter-spacing: -0.045em;
}

.es-page {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: clip;
}

.es-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  background: rgba(6, 9, 24, 0.76);
  border-bottom: 1px solid var(--es-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.es-container {
  width: min(1240px, calc(100% - clamp(1.5rem, 5vw, 2.75rem)));
  max-width: 100%;
  margin: 0 auto;
}

/* Screen-reader only (menu toggle label) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content: hidden until keyboard focus (WCAG 2.4.1) */
.es-skip-link {
  position: fixed;
  top: 0.65rem;
  left: 50%;
  z-index: 200;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(14, 18, 42, 0.96);
  border: 1px solid rgba(147, 197, 253, 0.38);
  color: #f8fafc;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, calc(-100% - 1.25rem));
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
  pointer-events: none;
}

.es-skip-link:focus {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--es-accent-2);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .es-skip-link {
    transition: none;
  }
}

/* Marketing footer: utility links + brand */
.es-site-footer-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .es-site-footer-main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.es-site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.35rem;
}

.es-site-footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 200, 0.95);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.es-site-footer-nav a:hover,
.es-site-footer-nav a:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(199, 123, 71, 0.5);
  outline: none;
}

/* —— Mobile site nav: compact bar + drawer (landing & assessment pages) —— */
.es-nav-desktop-only {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

/* Text nav + copper rail (matches hero outcome rails; no pill chrome). */
.es-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.es-nav-text-link {
  font-size: 0.78125rem;
  font-weight: 500;
  letter-spacing: 0.018em;
  text-transform: none;
  color: rgba(241, 245, 255, 0.52);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0 0.35rem 1rem;
  margin-left: 1rem;
  border-left: 1px solid rgba(199, 123, 71, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.es-nav-text-link:first-child {
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

.es-nav-text-link:hover,
.es-nav-text-link:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  border-left-color: rgba(255, 196, 138, 0.45);
  outline: none;
}

.es-nav-text-link[aria-current="page"] {
  color: rgba(255, 214, 170, 0.95);
  border-left-color: rgba(199, 123, 71, 0.55);
}

/* Subtle separator before the primary pill CTA */
.es-nav-vrule {
  flex-shrink: 0;
  width: 0;
  height: 1.1rem;
  margin: 0 0.15rem 0 0.65rem;
  border-left: 1px solid rgba(199, 123, 71, 0.26);
}

.es-nav-mobile-only {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.es-nav-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Log in: icon only (no chrome); padding is for touch/click target */
.es-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.4rem;
  margin-right: 0.05rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.es-nav-login:hover {
  color: #ffffff;
}

.es-nav-login:focus-visible {
  color: #ffffff;
  outline: 2px solid rgba(199, 123, 71, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.es-nav-login:active {
  opacity: 0.88;
}

.es-nav-login svg {
  stroke-width: 2;
}

.es-button.es-nav-trial-chip {
  --es-button-slice: 0.72rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.es-nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--es-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.es-nav-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--es-border-strong);
}

.es-nav-menu-toggle[aria-expanded="true"] {
  border-color: rgba(var(--es-accent-rgb), 0.45);
  background: rgba(var(--es-accent-rgb), 0.12);
}

.es-nav-menu-toggle .es-burger-open,
.es-nav-menu-toggle .es-burger-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.es-nav-menu-toggle .es-burger-close {
  display: none;
}

.es-nav-menu-toggle[aria-expanded="true"] .es-burger-open {
  display: none;
}

.es-nav-menu-toggle[aria-expanded="true"] .es-burger-close {
  display: inline-flex;
}

.es-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 8, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.es-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.es-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  width: min(20.5rem, calc(100% - 1.5rem));
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(10, 14, 32, 0.98);
  border-left: 1px solid var(--es-border);
  box-shadow: -28px 0 60px rgba(0, 0, 0, 0.5);
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1.15rem 1.5rem 1.15rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.es-nav-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.es-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--es-border);
}

.es-nav-drawer-title {
  margin: 0;
  font-family: var(--es-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.es-nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--es-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.es-nav-drawer-close:hover {
  color: var(--es-text);
  background: rgba(255, 255, 255, 0.1);
}

.es-nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.es-nav-drawer-links a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0 0.65rem 0.85rem;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(241, 245, 255, 0.68);
  text-decoration: none;
  border: none;
  border-left: 1px solid rgba(199, 123, 71, 0.35);
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.es-nav-drawer-links a:hover,
.es-nav-drawer-links a:focus-visible {
  color: #fff;
  border-left-color: rgba(199, 123, 71, 0.55);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.es-nav-drawer-links a.es-nav-drawer-cta {
  margin-top: 0.75rem;
  justify-content: center;
  padding: 0.9rem 1.35rem 0.9rem 1.15rem;
  border-radius: 0;
  border: none;
  border-left: none;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.94rem;
  background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-2) 100%);
  color: #120a08;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--es-button-slice)) 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - var(--es-button-slice)) 100%, 0 100%);
  filter: drop-shadow(0 10px 26px rgba(var(--es-accent-rgb), 0.28));
  transition: transform 160ms ease, filter 160ms ease;
}

.es-nav-drawer-links a.es-nav-drawer-cta:hover,
.es-nav-drawer-links a.es-nav-drawer-cta:focus-visible {
  background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-2) 100%);
  color: #120a08;
  filter: drop-shadow(0 12px 32px rgba(var(--es-accent-rgb), 0.34));
}

.es-nav-drawer-links a.es-nav-drawer-cta:focus-visible {
  outline: 2px solid var(--es-accent-2);
  outline-offset: 3px;
}

.es-nav-drawer-links a.es-nav-drawer-cta.es-nav-drawer-cta--secondary {
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(241, 245, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  filter: none;
  clip-path: none;
  -webkit-clip-path: none;
}

.es-nav-drawer-links a.es-nav-drawer-cta.es-nav-drawer-cta--secondary:hover,
.es-nav-drawer-links a.es-nav-drawer-cta.es-nav-drawer-cta--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  filter: none;
}

.es-nav-drawer-links a:not(.es-nav-drawer-cta)[aria-current="page"] {
  color: var(--es-accent-2);
  border-left-color: rgba(199, 123, 71, 0.52);
}

.es-nav-drawer-links a.es-nav-drawer-muted {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--es-muted);
  background: transparent;
  border-color: transparent;
}

body.es-nav-drawer-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 767px) {
  .es-container {
    width: min(1180px, calc(100% - clamp(2.75rem, 12vw, 6rem)));
  }

  .es-nav-desktop-only {
    display: none !important;
  }

  .es-nav-mobile-only {
    display: flex !important;
  }

  .es-sticky-nav .es-container {
    flex-wrap: nowrap;
    align-items: center;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .es-sticky-nav .es-nav-brand-block {
    min-width: 0;
    flex: 1;
  }

  .es-sticky-nav .es-nav-brand-block .es-nav-tagline {
    display: none;
  }
}

@media (min-width: 768px) {
  .es-nav-mobile-only {
    display: none !important;
  }

  .es-nav-overlay,
  .es-nav-drawer {
    display: none !important;
  }
}

.es-glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    rgba(22, 28, 58, 0.72) 0%,
    rgba(14, 18, 42, 0.88) 48%,
    rgba(12, 16, 38, 0.92) 100%
  );
  border: 1px solid var(--es-border-hairline);
  box-shadow:
    var(--es-shadow-inset-rim),
    0 0 0 1px rgba(147, 197, 253, 0.06),
    var(--es-shadow);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.es-glass-soft {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.028) 100%
  );
  border: 1px solid var(--es-border-hairline);
  box-shadow: var(--es-shadow-inset-rim), var(--es-shadow-soft);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.es-card {
  border-radius: var(--es-radius-card-lg);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Large numeric readouts (e.g. results composite) */
.es-metric-hero {
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  line-height: 1.05;
}

.es-card-tight {
  border-radius: calc(var(--es-radius-card) - 4px);
  padding: 1rem 1.1rem;
}

.es-eyebrow {
  font-family: var(--es-font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: rgba(255, 196, 138, 0.92);
  line-height: 1.45;
}

.es-eyebrow.es-eyebrow--white {
  color: rgba(255, 255, 255, 0.9);
}

/* Sentence case kicker (hero / editorial) */
.es-eyebrow.es-eyebrow--sentence {
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

/* Homepage hero masthead: editorial kicker + lead (readable hierarchy, not micro-label) */
.es-hero-kicker {
  font-family: var(--es-font-body);
  font-size: clamp(1rem, 2.15vw, 1.1875rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto;
  max-width: min(36rem, 92vw);
  text-wrap: balance;
}

/* Match subhead: solid white + shadow stack on the beam (same treatment as .es-hero-masthead .es-hero-lead) */
.es-hero-masthead .es-hero-kicker {
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 0.04em 0.16em rgba(2, 4, 12, 0.9),
    0 0.1em 0.42em rgba(2, 4, 12, 0.62),
    0 0 1.1em rgba(2, 4, 12, 0.4);
}

.es-hero-kicker-rule {
  width: min(2.5rem, 10vw);
  height: 1px;
  margin: clamp(1.35rem, 3.4vw, 2.1rem) auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 248, 235, 0.42) 50%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(199, 123, 71, 0.16);
}

.es-hero-lead {
  font-family: var(--es-font-body);
  font-size: clamp(1.0625rem, 2.05vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin-left: auto;
  margin-right: auto;
  max-width: min(40rem, 94vw);
  text-wrap: balance;
}

/* Higher specificity than later generic `.es-hero-lead { color: var(--es-muted) }` so hero subhead stays light on the beam */
.es-hero-masthead .es-hero-lead {
  margin-top: clamp(2rem, 4.5vw, 2.85rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 0.04em 0.16em rgba(2, 4, 12, 0.9),
    0 0.1em 0.42em rgba(2, 4, 12, 0.62),
    0 0 1.1em rgba(2, 4, 12, 0.4);
}

/*
 * Wider viewports: cover-crop brightens behind this block — add a touch more halation (still type-only, no panels).
 */
@media (min-width: 1400px) {
  .es-hero-masthead .es-hero-kicker,
  .es-hero-masthead .es-hero-lead {
    text-shadow:
      0 0.05em 0.2em rgba(2, 4, 12, 0.95),
      0 0.12em 0.52em rgba(2, 4, 12, 0.72),
      0 0 1.65em rgba(2, 4, 12, 0.55),
      0 0 2.5em rgba(2, 4, 12, 0.35);
  }
}

/* Ultra-wide: nudge beam focal point away from center copy (home hero only) */
@media (min-width: 2200px) {
  body.es-home .es-atmosphere-hero-beam img {
    object-position: 44% 34%;
  }
}

/* Hero: ICP strip — layout only; no outer card (chips float on the hero field) */
.es-hero-audience-strip {
  width: 100%;
  max-width: min(72rem, 100%);
  /* Matches --es-hero-line-gap on .es-hero-stage (legal ↔ rule ↔ “Engineered…”) */
  margin: var(--es-hero-line-gap, clamp(1.55rem, 4.25vw, 2.65rem)) auto 0;
  padding: 0 clamp(0.25rem, 1.5vw, 0.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2.25vw, 1.2rem);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.es-hero-audience-heading {
  margin: 5px 0 0;
  padding: 0 clamp(0.25rem, 2vw, 0.75rem);
  font-family: var(--es-font-display);
  font-size: clamp(1.02rem, 2.35vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.28;
  text-align: center;
  text-wrap: balance;
  color: rgba(255, 252, 248, 0.96);
  text-shadow:
    0 0.08em 0.35em rgba(2, 4, 12, 0.85),
    0 0.15em 0.65em rgba(2, 4, 12, 0.55),
    0 0 1.25em rgba(3, 6, 18, 0.45);
}

.es-hero-audience-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.85rem);
}

.es-hero-audience-row--markets {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

@media (min-width: 1024px) {
  .es-hero-audience-row--markets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: stretch;
    gap: clamp(0.5rem, 1.25vw, 0.75rem);
  }

  .es-hero-audience-row--traders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    gap: clamp(0.5rem, 1.25vw, 0.75rem);
  }
}

.es-hero-audience-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 calc(33.333% - 0.5rem);
  padding: clamp(0.6rem, 1.6vw, 0.85rem) clamp(0.4rem, 1.1vw, 0.55rem);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(155deg, rgba(22, 26, 52, 0.88) 0%, rgba(8, 10, 24, 0.82) 48%, rgba(6, 8, 18, 0.78) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--es-font-body);
  font-size: clamp(0.625rem, 1.45vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.92);
  text-align: center;
  line-height: 1.25;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(0, 0, 0, 0.35) inset,
    0 14px 36px rgba(0, 0, 0, 0.42),
    0 6px 16px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(199, 123, 71, 0.14);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .es-hero-audience-chip {
    flex: 1 1 auto;
  }
}

.es-hero-audience-chip:hover {
  border-color: rgba(255, 196, 138, 0.38);
  background: linear-gradient(
    155deg,
    rgba(36, 32, 58, 0.92) 0%,
    rgba(22, 18, 38, 0.88) 50%,
    rgba(14, 12, 28, 0.85) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(199, 123, 71, 0.22),
    0 0 40px rgba(199, 123, 71, 0.2);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .es-hero-audience-chip:hover {
    transform: none;
  }
}

.es-hero-audience-chip--wide {
  flex: 1 1 calc(50% - 0.5rem);
  letter-spacing: 0.06em;
}

@media (min-width: 1024px) {
  .es-hero-audience-chip--wide {
    letter-spacing: 0.08em;
  }
}

.es-hero-audience-chip-icon {
  width: clamp(1.1rem, 2.8vw, 1.35rem);
  height: clamp(1.1rem, 2.8vw, 1.35rem);
  color: rgba(255, 206, 168, 0.96);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(199, 123, 71, 0.35));
}

/* Optional secondary tagline, paired with .es-eyebrow or section headers */
.es-brand-tagline {
  font-family: var(--es-font-display);
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  letter-spacing: 0.02em;
  color: rgba(248, 243, 239, 0.88);
  line-height: 1.35;
}

.es-muted {
  color: var(--es-muted);
}

.es-accent {
  color: var(--es-accent);
}

.es-metal-text {
  background: linear-gradient(135deg, var(--es-accent-2) 0%, var(--es-accent) 38%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*
 * Hero lead (“Be the”): mostly white; warmth ramps in toward the baseline so it reads as one lockup with “exception.”
 * Does not change .es-metal-text--hero-emphasis / exception gradient.
 */
h1.es-headline-depth .es-metal-text--hero-lead {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #faf7f4 30%,
    rgba(255, 228, 205, 0.9) 56%,
    rgba(255, 200, 155, 0.78) 78%,
    rgba(210, 160, 110, 0.58) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/*
 * Hero payoff word: micro scale only — gradient stays the default .es-metal-text (parent .es-headline-depth carries depth).
 */
h1.es-headline-depth .es-metal-text--hero-emphasis {
  display: inline-block;
  padding: 0 0.03em;
  margin: 0 -0.03em;
  letter-spacing: -0.03em;
  transform: scale(1.07);
  transform-origin: 50% 52%;
}

@media (prefers-reduced-motion: reduce) {
  h1.es-headline-depth .es-metal-text--hero-emphasis {
    transform: none;
  }
}

/*
 * Hero headline depth: separation + warm/cool halos (works on solid or gradient text).
 * Slightly softer copper than before so it pairs with white type without reading “all gold.”
 */
.es-headline-depth,
.es-metal-text.es-metal-text--hero-word {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 18px rgba(199, 123, 71, 0.22))
    drop-shadow(0 0 36px rgba(255, 196, 138, 0.1))
    drop-shadow(0 0 28px rgba(125, 211, 252, 0.06));
}

@media (prefers-reduced-motion: reduce) {
  .es-headline-depth,
  .es-metal-text.es-metal-text--hero-word {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
  }
}

/* Optional: icy lift instead of flat white (no copper gradient). Pair with .es-headline-depth */
.es-headline-frost {
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    #f8fafc 42%,
    #e2e8f0 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*
 * Edge-cut CTAs: same geometry as the original polygon (diagonal on the right),
 * with the left top/bottom corners rounded. Path radius must stay in sync with --es-button-corner-r.
 * Slice in path() must match --es-button-slice (1rem); .es-nav-trial-chip overrides both.
 */
.es-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  border-radius: 0;
  padding: 0.9rem 1.4rem 0.9rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    filter 160ms ease,
    color 160ms ease;
  cursor: pointer;
  isolation: isolate;
  /* Fallback: exact original quadrilateral (no rounding) */
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--es-button-slice)) 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - var(--es-button-slice)) 100%, 0 100%);
}

@supports (clip-path: path("M0,0Z")) {
  .es-button {
    clip-path: path(
      "M 10 0 L 100% 0 L calc(100% - 1rem) 100% L 10 100% A 10 10 0 0 1 0 calc(100% - 10px) L 0 10 A 10 10 0 0 1 10 0 Z"
    );
    -webkit-clip-path: path(
      "M 10 0 L 100% 0 L calc(100% - 1rem) 100% L 10 100% A 10 10 0 0 1 0 calc(100% - 10px) L 0 10 A 10 10 0 0 1 10 0 Z"
    );
  }

  .es-button.es-nav-trial-chip {
    clip-path: path(
      "M 10 0 L 100% 0 L calc(100% - 0.72rem) 100% L 10 100% A 10 10 0 0 1 0 calc(100% - 10px) L 0 10 A 10 10 0 0 1 10 0 Z"
    );
    -webkit-clip-path: path(
      "M 10 0 L 100% 0 L calc(100% - 0.72rem) 100% L 10 100% A 10 10 0 0 1 0 calc(100% - 10px) L 0 10 A 10 10 0 0 1 10 0 Z"
    );
  }

  .es-nav-drawer-links a.es-nav-drawer-cta {
    clip-path: path(
      "M 10 0 L 100% 0 L calc(100% - 1rem) 100% L 10 100% A 10 10 0 0 1 0 calc(100% - 10px) L 0 10 A 10 10 0 0 1 10 0 Z"
    );
    -webkit-clip-path: path(
      "M 10 0 L 100% 0 L calc(100% - 1rem) 100% L 10 100% A 10 10 0 0 1 0 calc(100% - 10px) L 0 10 A 10 10 0 0 1 10 0 Z"
    );
  }
}

.es-button:hover {
  transform: translateY(-1px);
}

.es-button:focus-visible {
  outline: 2px solid var(--es-accent-2);
  outline-offset: 3px;
  z-index: 1;
}

.es-button-primary {
  background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-2) 100%);
  color: #120a08;
  border: none;
  filter: drop-shadow(0 12px 32px rgba(var(--es-accent-rgb), 0.34)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.es-button-primary:hover {
  filter: drop-shadow(0 16px 40px rgba(var(--es-accent-rgb), 0.42)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28));
}

.es-button-secondary {
  color: var(--es-text);
  border: none;
  background: rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 0 0 1px rgba(147, 197, 253, 0.26));
}

.es-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 0 0 1px rgba(147, 197, 253, 0.38));
}

.es-button-ghost {
  color: var(--es-muted);
  border: none;
  background: rgba(255, 255, 255, 0.03);
  filter: drop-shadow(0 0 0 1px rgba(147, 197, 253, 0.14));
}

.es-button-ghost:hover {
  color: var(--es-text);
  background: rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 0 0 1px rgba(147, 197, 253, 0.22));
}

@media (prefers-reduced-motion: reduce) {
  .es-button:hover {
    transform: none;
  }
}

.es-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

.es-progress {
  height: 0.34rem;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.es-progress > div {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--es-accent-rgb), 0.5) 0%, rgba(var(--es-accent-rgb), 1) 100%);
  box-shadow: 0 0 24px rgba(var(--es-accent-rgb), 0.22);
  transition: width 240ms ease;
}

.es-input,
.es-select,
.es-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--es-text);
  padding: 0.95rem 1rem;
  font: inherit;
}

.es-input::placeholder,
.es-textarea::placeholder {
  color: var(--es-muted);
}

.es-input:focus-visible,
.es-select:focus-visible,
.es-textarea:focus-visible {
  outline: 2px solid rgba(255, 196, 138, 0.42);
  outline-offset: 2px;
  border-color: rgba(147, 197, 253, 0.28);
}

.es-scale-grid {
  display: grid;
  gap: 0.5rem;
}

.es-scale-option {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--es-text);
  padding: 0.72rem 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.es-scale-option:hover,
.es-scale-option:focus-visible {
  border-color: rgba(var(--es-accent-rgb), 0.45);
  transform: translateY(-1px);
  outline: none;
}

.es-scale-option.is-selected {
  border-color: rgba(var(--es-accent-rgb), 0.6);
  background: linear-gradient(135deg, rgba(var(--es-accent-rgb), 0.25), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(var(--es-accent-rgb), 0.22) inset, 0 10px 28px rgba(var(--es-accent-rgb), 0.18);
}

.es-kpi {
  border-radius: 24px;
  border: 1px solid var(--es-border);
  background: linear-gradient(135deg, rgba(var(--es-accent-rgb), 0.18), rgba(255, 255, 255, 0.02));
  padding: 1rem;
}

.es-band {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.05);
}

.es-band-dialed_in {
  color: #22C55E;
}

.es-band-sharp {
  color: #14B8A6;
}

.es-band-building {
  color: #EAB308;
}

.es-band-exposed {
  color: #F97316;
}

.es-band-in_the_red {
  color: #EF4444;
}

.es-band-blown {
  color: #DC2626;
}

.es-flag-critical {
  color: #ff9e94;
}

.es-flag-attention {
  color: #f7c487;
}

.es-grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.es-grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.es-grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.es-hidden {
  display: none !important;
}

.es-error {
  color: #ffb2a3;
}

.es-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--es-accent-rgb), 0.7) 26%, rgba(var(--es-accent-rgb), 0.14) 100%);
}

.es-domain-bar {
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.es-domain-bar > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--es-accent-rgb), 0.4) 0%, rgba(var(--es-accent-rgb), 1) 100%);
}

.es-scale-grid-compact .es-scale-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.95rem;
}

.es-scale-option-compact .es-scale-check {
  width: 1rem;
  height: 1rem;
  color: #120a08;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
  flex: 0 0 auto;
}

.es-scale-option-compact.is-selected .es-scale-check {
  opacity: 1;
  transform: scale(1);
}

.es-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 24px;
  padding: 1rem 1.2rem;
}

.es-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(380px, 0.72fr);
  gap: 1.6rem;
  align-items: center;
}

.es-hero-copy {
  padding: 1.25rem 1.35rem 1.25rem 0.35rem;
  max-width: 52rem;
}

.es-hero-preview {
  width: 100%;
  max-width: 29rem;
  justify-self: end;
  padding: 1.25rem;
}

.es-preview-stack {
  display: grid;
  gap: 0.9rem;
  height: 100%;
}

.es-preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.es-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #f6d4ab 0%, var(--es-accent) 100%);
  box-shadow: 0 0 18px rgba(var(--es-accent-rgb), 0.7);
}

.es-preview-score,
.es-preview-card,
.es-value-card,
.es-problem-card {
  border-radius: 24px;
  border: 1px solid var(--es-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.es-preview-score {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
}

.es-preview-card,
.es-value-card,
.es-problem-card {
  padding: 1rem 1.05rem;
}

.es-mini-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.es-checklist,
.es-stack {
  display: grid;
  gap: 0.75rem;
}

.es-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 0.95rem;
  line-height: 1.6;
}

.es-check-item i {
  color: var(--es-accent-2);
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.es-hero-heading {
  max-width: 12.5ch;
  font-size: clamp(3.85rem, 5.7vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.es-hero-lead {
  max-width: 42rem;
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--es-muted);
}

.es-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.1rem;
}

.es-hero-meta {
  max-width: 17rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--es-muted);
}

.es-tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.es-tab {
  border-radius: 999px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--es-muted);
  padding: 0.72rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.es-tab:hover,
.es-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--es-accent-rgb), 0.34);
  color: var(--es-text);
  outline: none;
}

.es-tab.is-active {
  background: linear-gradient(135deg, rgba(var(--es-accent-rgb), 0.3), rgba(255, 255, 255, 0.08));
  border-color: rgba(var(--es-accent-rgb), 0.55);
  color: var(--es-text);
}

.es-cta-panel {
  padding: 1.8rem;
}

.es-assessment-brand {
  display: flex;
  justify-content: center;
}

.es-assessment-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.8rem;
}

.es-quiz-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto 0.9rem;
}

.es-question-shell {
  max-width: 840px;
  margin: 0 auto;
  padding: 1.25rem;
  transition: transform 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 260ms ease-out;
}

.es-question-shell.is-leaving-forward {
  transform: translateX(-40px);
  opacity: 0;
}

.es-question-shell.is-entering-forward {
  transform: translateX(40px);
  opacity: 0;
}

.es-question-shell.is-leaving-backward {
  transform: translateX(40px);
  opacity: 0;
}

.es-question-shell.is-entering-backward {
  transform: translateX(-40px);
  opacity: 0;
}

.es-button-small {
  padding: 0.72rem 0.96rem;
  font-size: 0.9rem;
}

.es-hero-shell {
  position: relative;
  overflow: hidden;
}

.es-hero-shell::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -10%;
  width: min(34rem, 58vw);
  height: min(34rem, 58vw);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--es-accent-rgb), 0.28) 0%, rgba(var(--es-accent-rgb), 0.12) 34%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.es-offer-list {
  display: grid;
  gap: 0.8rem;
}

.es-offer-item {
  border-radius: 20px;
  border: 1px solid var(--es-border);
  background: linear-gradient(135deg, rgba(var(--es-accent-rgb), 0.12), rgba(255, 255, 255, 0.03));
  padding: 0.95rem 1rem;
}

.es-check-list {
  display: grid;
  gap: 0.7rem;
}

.es-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.es-check-row .es-check {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border-radius: 999px;
  margin-top: 0.18rem;
  background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-2) 100%);
  box-shadow: 0 10px 26px rgba(var(--es-accent-rgb), 0.28);
}

.es-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.es-tab-button {
  border-radius: 999px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--es-muted);
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.es-tab-button:hover,
.es-tab-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--es-accent-rgb), 0.34);
  color: var(--es-text);
  outline: none;
}

.es-tab-button.is-active {
  color: #120a08;
  border-color: rgba(var(--es-accent-rgb), 0.45);
  background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-2) 100%);
  box-shadow: 0 12px 28px rgba(var(--es-accent-rgb), 0.24);
}

.es-tab-panel {
  display: none;
}

.es-tab-panel.is-active {
  display: block;
}

.es-footnote {
  color: rgba(148, 163, 200, 0.82);
  font-size: 0.8125rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  max-width: 52rem;
}

.es-quiz-shell {
  width: min(100%, 860px);
  max-width: 100%;
  margin: 0 auto;
}

/* Question transitions: match Jake marketing VAPI quiz (vapi-quiz.html). */
.es-question-text-shell {
  max-width: 100%;
}

.es-question-anim-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.es-question-slide {
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.32s ease-out;
  will-change: transform, opacity;
}

.es-question-slide.es-no-transition {
  transition: none !important;
}

.es-question-slide.is-leaving-next {
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
}

.es-question-slide.is-leaving-prev {
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
}

.es-question-slide.is-entering-next {
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
}

.es-question-slide.is-entering-next.is-in {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.es-question-slide.is-entering-prev {
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
}

.es-question-slide.is-entering-prev.is-in {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.es-question-stage {
  margin-top: 1.25rem;
  overflow-x: clip;
  max-width: 100%;
}

.es-nav-cta {
  white-space: nowrap;
}

.es-question-title {
  font-size: clamp(1.55rem, 2vw + 0.95rem, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.es-response-note {
  color: var(--es-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.es-option-label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.es-option-check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.es-scale-option.is-selected .es-option-check {
  color: #120a08;
  border-color: rgba(var(--es-accent-rgb), 0.6);
  background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-2) 100%);
}

.es-question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.es-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: transparent;
  color: var(--es-muted);
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.es-back-link:hover,
.es-back-link:focus-visible {
  color: var(--es-text);
  transform: translateX(-1px);
  outline: none;
}

.es-back-link[disabled] {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.es-question-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--es-muted);
  text-align: right;
}

.es-assessment-frame {
  display: grid;
  gap: 0.8rem;
}

.es-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.es-stat-pill {
  border-radius: 999px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.85rem;
  color: var(--es-text);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Assessment landing: button first, then links + copy stacked (never beside the button) */
.es-assessment-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.es-assessment-hero-cta .es-button-primary {
  width: 100%;
  justify-content: center;
  min-height: 3.25rem;
  font-size: 1.02rem;
}

@media (min-width: 640px) {
  .es-assessment-hero-cta .es-button-primary {
    max-width: 17rem;
  }
}

.es-assessment-skip-details {
  font-size: 0.93rem;
  color: var(--es-muted);
  text-align: center;
}

/* Centered hero (immersive assessment): links stay centered under the button */
body.es-landing .es-assessment-hero .es-assessment-skip-details {
  text-align: center;
  width: 100%;
  order: 2;
}

body.es-landing .es-assessment-hero .es-assessment-hero-cta .es-button-primary {
  order: 1;
}

body.es-landing .es-assessment-hero .es-assessment-hero-cta > p:not(.es-assessment-skip-details) {
  order: 3;
}

.es-assessment-details {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.es-landing .es-assessment-details {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3.25rem);
  border-top-color: rgba(147, 197, 253, 0.12);
}

.es-assessment-details h2 {
  font-family: var(--es-font-display);
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.65rem);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

body.es-landing .es-assessment-details > h2:first-of-type {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.es-assessment-hero {
  padding-bottom: clamp(1rem, 3vw, 1.75rem);
}

.es-assessment-hero h1 {
  text-wrap: balance;
}

body.es-landing .es-assessment-hero .es-assessment-hero-cta {
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}

.es-inline-link {
  color: var(--es-accent-2);
  text-decoration: none;
}

.es-inline-link:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .es-hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .es-hero-copy {
    max-width: none;
    padding: 0;
  }

  .es-hero-preview {
    max-width: none;
    justify-self: stretch;
  }

  .es-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .es-card {
    padding: 1.15rem;
    border-radius: var(--es-radius-card);
  }

  .es-grid-2,
  .es-grid-3,
  .es-grid-4 {
    grid-template-columns: 1fr;
  }

  .es-topbar,
  .es-quiz-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .es-mini-grid {
    grid-template-columns: 1fr;
  }

  .es-assessment-intro,
  .es-cta-panel,
  .es-hero-copy,
  .es-question-shell {
    padding: 1.1rem;
  }

  .es-question-title {
    font-size: 1.45rem;
  }

  .es-question-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .es-question-hint {
    text-align: left;
  }

  .es-hero-heading {
    max-width: none;
    font-size: clamp(2.65rem, 13vw, 4.4rem);
    line-height: 0.98;
  }

  .es-hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .es-hero-actions {
    align-items: flex-start;
  }

  .es-hero-meta {
    max-width: none;
  }

  .es-scale-option {
    padding: 0.66rem 0.82rem;
  }
}

.es-hero-copy,
.es-hero-preview {
  min-height: 100%;
}

.es-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.es-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: var(--es-text);
}

.es-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.es-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--es-muted);
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.es-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--es-accent-rgb), 0.35);
}

.es-tab.is-active {
  color: #120a08;
  border-color: rgba(var(--es-accent-rgb), 0.75);
  background: linear-gradient(135deg, var(--es-accent) 0%, var(--es-accent-2) 100%);
}

.es-tab-panel {
  display: none;
}

.es-tab-panel.is-active {
  display: block;
}

.es-cta-block {
  text-align: left;
}

.es-quiet-note {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--es-muted);
}

.es-assessment-shell {
  width: min(760px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.75rem 0 2.5rem;
}

.es-library-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.es-library-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.88rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--es-text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.es-library-link:hover {
  transform: translateY(-1px);
  border-color: var(--es-border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.es-gate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.es-gate-modal {
  width: min(720px, 100%);
}

.es-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.es-gate-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--es-muted);
  font-weight: 700;
  cursor: pointer;
}

.es-svg-icon {
  display: block;
}

.es-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 24px;
  padding: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--icon-accent) 26%, rgba(255, 255, 255, 0.12));
  background: linear-gradient(180deg, color-mix(in srgb, var(--icon-accent) 18%, transparent), rgba(255, 255, 255, 0.03));
}

.es-hero-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .es-gate-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.es-assessment-frame {
  max-width: 760px;
  margin: 0 auto;
}

.es-quiz-frame {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.es-quiz-meta {
  padding: 0 0.15rem;
}

.es-quiz-counter {
  font-family: var(--es-font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.es-button-compact {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.es-quiz-card {
  padding: 1.15rem 1.15rem 1rem;
}

.es-quiz-helper {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--es-muted);
}

.es-quiz-prompt {
  font-family: var(--es-font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.es-scale-grid-compact {
  gap: 0.45rem;
}

.es-scale-option-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 16px;
  padding: 0.72rem 0.9rem;
  min-height: auto;
}

.es-scale-copy {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
}

.es-scale-check {
  opacity: 0;
  transform: scale(0.75);
  color: var(--es-accent-2);
  transition: opacity 140ms ease, transform 140ms ease;
}

.es-scale-option.is-selected .es-scale-check {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 960px) {
  .es-hero-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .es-chip {
    width: 100%;
    justify-content: center;
  }

  .es-tab-list {
    width: 100%;
  }

  .es-tab {
    flex: 1 1 calc(50% - 0.55rem);
  }

  .es-assessment-shell {
    width: min(100% - 1rem, 760px);
    padding-top: 0.35rem;
  }

  .es-quiz-counter {
    font-size: 1.28rem;
  }

  .es-quiz-card {
    padding: 1rem 0.95rem 0.9rem;
  }

  .es-scale-option-compact {
    padding: 0.65rem 0.8rem;
  }

  .es-scale-copy {
    font-size: 0.92rem;
  }
}
    /* —— Scroll-tied atmosphere: one tall field (not fixed / parallax viewport lock) —— */
    body.es-landing {
      background: #03050c;
    }

    /* Grid + grain live inside .es-atmosphere so they scroll with the page */
    body.es-landing::before,
    body.es-landing::after {
      display: none;
    }

    body.es-landing .es-page {
      position: relative;
      z-index: 1;
    }

    .es-atmosphere {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    /* Vertical tone ramp: reads like one continuous matte painting */
    .es-atmosphere-base {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 100% 42% at 50% -2%, rgba(30, 58, 138, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 80% 50% at 8% 18%, rgba(199, 123, 71, 0.09) 0%, transparent 45%),
        linear-gradient(
          180deg,
          #03050c 0%,
          #050a12 12%,
          #061018 22%,
          #070d18 34%,
          #0a0a1c 46%,
          #080f1a 58%,
          #060c16 70%,
          #040814 82%,
          #03050c 92%,
          #020308 100%
        );
    }

    /* Brand kit: hero_beam — home page only (body.es-home); raster under grid/chroma */
    body.es-home .es-atmosphere-hero-beam {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: min(96dvh, 1080px);
      pointer-events: none;
      -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 44%,
        rgba(0, 0, 0, 0.78) 68%,
        rgba(0, 0, 0, 0.25) 88%,
        transparent 100%
      );
      mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 44%,
        rgba(0, 0, 0, 0.78) 68%,
        rgba(0, 0, 0, 0.25) 88%,
        transparent 100%
      );
    }

    body.es-home .es-atmosphere-hero-beam img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 50% 42%;
      display: block;
      /* Slightly dim so nav/hero type stays readable; responsive JPEGs stay punchy */
      filter: brightness(0.86) contrast(1.03) saturate(1.05);
    }

    .es-atmosphere-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(99, 179, 237, 0.042) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 179, 237, 0.042) 1px, transparent 1px);
      background-size: 72px 72px;
      -webkit-mask-image: radial-gradient(ellipse 98% 145% at 50% 38%, black 0%, transparent 82%);
      mask-image: radial-gradient(ellipse 98% 145% at 50% 38%, black 0%, transparent 82%);
      opacity: 0.26;
    }

    .es-atmosphere-grain {
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
      mix-blend-mode: soft-light;
      opacity: 0.12;
    }

    /* Slow color masses that read while scrolling (cyan / violet / copper) */
    .es-atmosphere-chroma {
      position: absolute;
      inset: -12% 0;
      background:
        radial-gradient(ellipse 55% 42% at 18% 10%, rgba(56, 189, 248, 0.16) 0%, transparent 52%),
        radial-gradient(ellipse 50% 38% at 88% 20%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 72% 46% at 48% 34%, rgba(199, 123, 71, 0.12) 0%, transparent 54%),
        radial-gradient(ellipse 58% 42% at 8% 44%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 62% 48% at 92% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 52%),
        radial-gradient(ellipse 60% 44% at 12% 62%, rgba(45, 212, 191, 0.12) 0%, transparent 52%),
        radial-gradient(ellipse 68% 52% at 50% 52%, rgba(139, 92, 246, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 65% 50% at 85% 58%, rgba(236, 72, 153, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 80% 45% at 38% 88%, rgba(59, 130, 246, 0.11) 0%, transparent 48%),
        radial-gradient(ellipse 70% 40% at 72% 72%, rgba(251, 191, 36, 0.06) 0%, transparent 50%);
      mix-blend-mode: screen;
      opacity: 0.72;
      animation: es-atmo-chroma 90s ease-in-out infinite alternate;
    }

    /* Lighting chapters down the page — stronger so sections are not flat black */
    .es-atmosphere-shifts {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 78% 50% at 50% 8%, rgba(56, 189, 248, 0.12) 0%, transparent 54%),
        radial-gradient(ellipse 75% 48% at 50% 10%, rgba(199, 123, 71, 0.16) 0%, transparent 52%),
        radial-gradient(ellipse 68% 44% at 14% 24%, rgba(199, 123, 71, 0.11) 0%, transparent 48%),
        radial-gradient(ellipse 72% 46% at 86% 31%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 88% 38% at 30% 36%, rgba(34, 211, 238, 0.08) 0%, transparent 48%),
        radial-gradient(ellipse 98% 40% at 48% 47%, rgba(59, 130, 246, 0.13) 0%, transparent 46%),
        radial-gradient(ellipse 58% 44% at 22% 57%, rgba(45, 212, 191, 0.12) 0%, transparent 48%),
        radial-gradient(ellipse 70% 48% at 65% 54%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 82% 52% at 78% 65%, rgba(236, 72, 153, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse 125% 58% at 50% 85%, rgba(0, 0, 0, 0.34) 0%, transparent 52%),
        radial-gradient(ellipse 72% 46% at 18% 77%, rgba(0, 0, 0, 0.2) 0%, transparent 48%);
      animation: es-atmo-pulse 64s ease-in-out infinite alternate;
    }

    /* Streak flares at different vertical bands */
    .es-atmosphere-flares {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          97deg,
          transparent 0%,
          transparent 44%,
          rgba(255, 255, 255, 0.05) 49.4%,
          rgba(200, 245, 255, 0.1) 50%,
          rgba(255, 255, 255, 0.05) 50.6%,
          transparent 56%,
          transparent 100%
        ),
        linear-gradient(
          101deg,
          transparent 52%,
          rgba(186, 230, 253, 0.07) 58%,
          transparent 64%
        ),
        linear-gradient(
          94deg,
          transparent 0%,
          transparent 62%,
          rgba(255, 248, 235, 0.04) 67%,
          rgba(255, 255, 255, 0.08) 68.5%,
          rgba(255, 248, 235, 0.04) 70%,
          transparent 76%
        ),
        linear-gradient(
          88deg,
          transparent 0%,
          transparent 78%,
          rgba(253, 186, 116, 0.06) 84%,
          transparent 90%
        );
      background-size:
        100% 44%,
        100% 40%,
        100% 58%,
        100% 50%;
      background-position:
        50% 0%,
        38% 46%,
        62% 90%,
        72% 72%;
      background-repeat: no-repeat;
      mix-blend-mode: screen;
      opacity: 0.88;
      animation: es-atmo-flare 36s ease-in-out infinite alternate;
    }

    /* Extra nebula smears mid / lower scroll */
    .es-atmosphere-nebula {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 72% 48% at 82% 30%, rgba(34, 211, 238, 0.09) 0%, transparent 52%),
        radial-gradient(ellipse 68% 44% at 12% 46%, rgba(199, 123, 71, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 92% 38% at 52% 56%, rgba(99, 102, 241, 0.09) 0%, transparent 48%),
        radial-gradient(ellipse 55% 52% at 78% 74%, rgba(236, 72, 153, 0.07) 0%, transparent 52%),
        radial-gradient(ellipse 85% 44% at 22% 88%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
      mix-blend-mode: screen;
      opacity: 0.78;
      animation: es-atmo-nebula 110s ease-in-out infinite alternate;
    }

    /* Sporadic vertical beams (lens-flare feel) at different document heights */
    .es-atmosphere-beams {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          93deg,
          transparent 0%,
          transparent 46.5%,
          rgba(255, 255, 255, 0.035) 49.6%,
          rgba(224, 242, 254, 0.1) 50%,
          rgba(255, 255, 255, 0.035) 50.4%,
          transparent 53.5%,
          transparent 100%
        ),
        linear-gradient(
          97deg,
          transparent 0%,
          transparent 58%,
          rgba(255, 248, 235, 0.045) 62%,
          transparent 66%
        ),
        linear-gradient(
          91deg,
          transparent 0%,
          transparent 70%,
          rgba(196, 181, 253, 0.07) 74.2%,
          rgba(167, 139, 250, 0.04) 75.5%,
          transparent 79%
        ),
        linear-gradient(
          95deg,
          transparent 0%,
          transparent 8%,
          rgba(56, 189, 248, 0.06) 12%,
          transparent 16%
        );
      background-size:
        100% 62%,
        100% 48%,
        100% 58%,
        100% 38%;
      background-position:
        48% 18%,
        42% 48%,
        58% 68%,
        28% 4%;
      background-repeat: no-repeat;
      mix-blend-mode: screen;
      opacity: 0.62;
      animation: es-atmo-beams 52s ease-in-out infinite alternate;
    }

    /* Shadow pockets without killing mid-page color */
    .es-atmosphere-shade {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 90% 40% at 50% 112%, rgba(0, 0, 0, 0.42) 0%, transparent 45%),
        linear-gradient(180deg, transparent 0%, transparent 32%, rgba(2, 3, 8, 0.12) 62%, rgba(2, 3, 8, 0.24) 100%);
      pointer-events: none;
      opacity: 0.58;
    }

    @keyframes es-atmo-chroma {
      0% {
        transform: translate(-0.8%, 0) scale(1);
        opacity: 0.52;
      }
      100% {
        transform: translate(1.1%, -0.4%) scale(1.04);
        opacity: 0.78;
      }
    }

    @keyframes es-atmo-nebula {
      0% {
        transform: translate(0.4%, 0) scale(1);
        opacity: 0.68;
      }
      100% {
        transform: translate(-0.9%, 0.35%) scale(1.035);
        opacity: 0.9;
      }
    }

    @keyframes es-atmo-beams {
      0% {
        opacity: 0.48;
        transform: translateX(-0.55%);
      }
      100% {
        opacity: 0.78;
        transform: translateX(0.45%);
      }
    }

    @keyframes es-atmo-pulse {
      0% {
        opacity: 0.88;
      }
      100% {
        opacity: 1;
      }
    }

    @keyframes es-atmo-flare {
      0% {
        opacity: 0.42;
        transform: translateX(-0.45%);
      }
      100% {
        opacity: 0.78;
        transform: translateX(0.45%);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .es-atmosphere-shifts,
      .es-atmosphere-flares,
      .es-atmosphere-chroma,
      .es-atmosphere-nebula,
      .es-atmosphere-beams {
        animation: none;
      }
    }

    /* Softer cards so the same field reads through the whole scroll */
    body.es-landing .es-page .es-glass.es-card {
      background: linear-gradient(
        168deg,
        rgba(22, 28, 52, 0.44) 0%,
        rgba(12, 16, 36, 0.52) 52%,
        rgba(8, 10, 28, 0.5) 100%
      );
      border-color: rgba(255, 255, 255, 0.065);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 0 0 1px rgba(147, 197, 253, 0.055),
        0 36px 100px -32px rgba(0, 0, 0, 0.58),
        0 14px 44px -18px rgba(0, 0, 0, 0.36);
      backdrop-filter: blur(26px) saturate(1.14);
      -webkit-backdrop-filter: blur(26px) saturate(1.14);
    }

    body.es-landing .es-page .es-glass-soft {
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.048) 0%,
        rgba(255, 255, 255, 0.02) 100%
      );
      border-color: rgba(255, 255, 255, 0.06);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 22px 64px -22px rgba(0, 0, 0, 0.45);
    }

    /* Nav starts clear over the hero; .es-nav-solid added via JS after scroll or when drawer opens */
    body.es-landing .es-sticky-nav {
      background: transparent;
      border-bottom-color: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
      transition:
        background 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.32s ease,
        backdrop-filter 0.32s ease,
        -webkit-backdrop-filter 0.32s ease,
        box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.es-landing .es-sticky-nav.es-nav-solid {
      background: rgba(6, 9, 24, 0.86);
      border-bottom-color: rgba(147, 197, 253, 0.12);
      backdrop-filter: blur(22px) saturate(1.12);
      -webkit-backdrop-filter: blur(22px) saturate(1.12);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 18px 48px -20px rgba(0, 0, 0, 0.45);
    }

/* —— Assessment: wide canvas on immersive landing field —— */
body.es-landing .es-assessment-main {
  width: min(1320px, calc(100% - 2rem));
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  body.es-landing .es-assessment-main {
    width: min(1320px, calc(100% - clamp(2.75rem, 12vw, 6rem)));
  }
}

body.es-landing .es-assessment-main .es-quiz-shell--immersive {
  width: 100%;
  max-width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.es-landing .es-assessment-main #unlock-panel.es-quiz-shell--immersive {
  max-width: min(1120px, 100%);
}

/* Unlock step: one column on laptop widths so copy and CTA are not squeezed side-by-side */
@media (max-width: 1023px) {
  #unlock-panel .es-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Assessment quiz: tighter vertical rhythm so the flow fits a 13" laptop without page scroll */
body.es-landing main.es-assessment-main:has(#quiz-panel:not(.es-hidden)) {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 640px) {
  body.es-landing main.es-assessment-main:has(#quiz-panel:not(.es-hidden)) {
    padding-top: 1.2rem;
  }
}

#quiz-panel .es-quiz-card {
  padding: 1.1rem 1.15rem 1.15rem;
}

#quiz-panel .es-quiz-header .es-eyebrow {
  margin-bottom: 0;
}

#quiz-panel .es-quiz-progress {
  margin-top: 0.6rem;
}

#quiz-panel .es-question-stage {
  margin-top: 0.65rem;
}

/* Statement text: not in a card—reads as prompt; options below stay in scale “cards” */
#quiz-panel .es-question-statement {
  padding: 0.2rem 0.15rem 0.95rem;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  box-shadow: none;
}

#quiz-panel .es-question-title {
  font-size: clamp(1.32rem, 1.25vw + 0.8rem, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

#quiz-panel #scale-options.es-quiz-scale-grid {
  margin-top: 1rem;
}

#quiz-panel .es-scale-grid.es-quiz-scale-grid {
  gap: 0.85rem;
}

#quiz-panel .es-scale-option {
  padding: 1.15rem 1.2rem;
  min-height: 3.75rem;
  border-radius: 18px;
  font-size: 1.05rem;
}

#quiz-panel .es-option-label {
  font-size: 1.1rem;
  line-height: 1.45;
}

#quiz-panel .es-option-check {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 1.05rem;
}

#quiz-panel .es-question-footer.es-quiz-question-footer {
  margin-top: 0.55rem;
  gap: 0.6rem;
}

#quiz-panel .es-question-hint {
  font-size: 0.78rem;
  line-height: 1.35;
}

#quiz-panel .es-back-link {
  font-size: 0.82rem;
}

@media (max-height: 900px) and (min-width: 768px) {
  body.es-landing main.es-assessment-main:has(#quiz-panel:not(.es-hidden)) {
    padding-top: 0.4rem;
    padding-bottom: 0.6rem;
  }

  #quiz-panel .es-quiz-card {
    padding: 0.6rem 0.85rem 0.65rem;
  }

  #quiz-panel .es-quiz-progress {
    margin-top: 0.4rem;
  }

  #quiz-panel .es-question-stage {
    margin-top: 0.4rem;
  }

  #quiz-panel .es-question-statement {
    padding: 0.1rem 0.1rem 0.72rem;
  }

  #quiz-panel .es-question-title {
    font-size: clamp(1.15rem, 0.9vw + 0.72rem, 1.58rem);
    line-height: 1.06;
  }

  #quiz-panel #scale-options.es-quiz-scale-grid {
    margin-top: 0.65rem;
  }

  #quiz-panel .es-scale-grid.es-quiz-scale-grid {
    gap: 0.65rem;
  }

  #quiz-panel .es-scale-option {
    padding: 1rem 1.05rem;
    min-height: 3.25rem;
    border-radius: 16px;
  }

  #quiz-panel .es-option-label {
    font-size: 1.04rem;
    line-height: 1.4;
  }

  #quiz-panel .es-question-footer.es-quiz-question-footer {
    margin-top: 0.4rem;
    gap: 0.45rem;
  }

  #quiz-panel .es-question-hint {
    font-size: 0.74rem;
  }

  #quiz-panel .es-back-link {
    font-size: 0.78rem;
  }
}

.es-assessment-details-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .es-assessment-details-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 3.5rem);
  }
}

/* —— Results page: execution map, wheel, jump nav —— */
.es-results-glance-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
  margin-top: 1.25rem;
}

/* Wheel first, full width; snapshot + legend share a row below */
@media (min-width: 900px) {
  .es-results-glance-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "wheel wheel"
      "snapshot legend";
    align-items: start;
  }

  .es-results-wheel-column--hero {
    grid-area: wheel;
  }

  .es-results-glance-aside--snapshot {
    grid-area: snapshot;
  }

  .es-results-glance-aside--legend {
    grid-area: legend;
  }
}

.es-results-glance-intro {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--es-border);
}

.es-domain-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

a.es-driver-result-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--es-radius-card-lg);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

a.es-driver-result-card:hover,
a.es-driver-result-card:focus-visible {
  border-color: rgba(255, 196, 138, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 196, 138, 0.12);
  outline: none;
}

.es-results-wheel-wrap {
  max-width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .es-results-wheel-wrap {
    margin-left: auto;
    margin-right: auto;
  }
}

.es-results-wheel-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(480px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

/* Full wheel in focus: gold guides; single-wedge focus: guides fade to slate (selection UI unchanged) */
.es-results-wheel-svg.has-selection .es-wheel-guide-ring,
.es-results-wheel-svg.has-selection .es-wheel-guide-spoke,
.es-results-wheel-svg.has-selection .es-wheel-guide-rim,
.es-results-wheel-svg.has-selection .es-wheel-guide-axis {
  stroke: rgba(148, 163, 184, 0.28) !important;
}

.es-results-wheel-svg.has-selection .es-wheel-guide-rim {
  stroke: rgba(255, 255, 255, 0.18) !important;
}

.es-results-wheel-svg.has-selection .es-wheel-cell:not(.is-selected) {
  stroke: rgba(255, 255, 255, 0.06) !important;
}

.es-wheel-cell {
  cursor: pointer;
  transition: opacity 0.22s ease, filter 0.22s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}

.es-results-wheel-svg.has-selection .es-wheel-cell:not(.is-selected) {
  opacity: 0.36;
}

.es-wheel-cell.is-selected {
  filter: brightness(1.12) saturate(1.08);
  stroke: rgba(255, 196, 138, 0.95) !important;
  stroke-width: 0.85 !important;
}

.es-arena-legend-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.es-arena-legend-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.es-arena-legend-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.es-results-jump {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--es-border);
}

.es-results-jump-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.es-results-jump-link {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--es-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--es-text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.es-results-jump-link:hover,
.es-results-jump-link:focus-visible {
  border-color: rgba(var(--es-accent-rgb), 0.45);
  background: rgba(var(--es-accent-rgb), 0.1);
  color: var(--es-accent-2);
  outline: none;
}

.es-wheel-detail {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--es-border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.es-wheel-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.es-wheel-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.es-wheel-detail-actions .es-button {
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .es-wheel-detail-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .es-wheel-detail-copy {
    min-width: 0;
    flex: 1;
  }

  .es-wheel-detail-actions {
    width: auto;
    flex-shrink: 0;
  }

  .es-wheel-detail-actions .es-button {
    width: auto;
    white-space: nowrap;
  }
}

/* Results: Explore your score (VAPI-style wheel + metric menu) */
.es-results-explore {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.es-explore-wheel-outer {
  position: relative;
}

#es-breakdown-wheel-wrap {
  transform-origin: center center;
  will-change: transform;
}

.es-explore-wheel-container--zoomed {
  overflow: visible !important;
}

.es-explore-wheel-segment {
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.es-explore-metric-btn--active {
  border-color: rgba(var(--es-accent-rgb), 0.45) !important;
  background: rgba(var(--es-accent-rgb), 0.12) !important;
  color: var(--es-accent-2) !important;
}

@media (prefers-reduced-motion: reduce) {
  #es-breakdown-wheel-wrap {
    transition-duration: 0.01ms !important;
  }
}

/* Accordion chevron (used on overview + pricing FAQ) */
.es-accordion-btn[aria-expanded="true"] .es-chev {
  transform: rotate(180deg);
}

.es-chev {
  transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .es-chev {
    transition: none;
  }
}

/* Pricing funnel page */
.es-pricing-funnel-flow {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.es-pricing-funnel-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--es-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.es-pricing-plan-card--featured {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(199, 123, 71, 0.28),
    0 32px 80px -28px rgba(0, 0, 0, 0.5),
    0 0 64px -12px rgba(199, 123, 71, 0.12);
}

.es-pricing-ribbon {
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* —— How it works (WHOOP-style insight rail + tab panels) —— */
.es-hiw-hero {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.es-hiw-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.es-hiw-chip {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: clamp(0.62rem, 1.35vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.65);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.es-hiw-chip:hover,
.es-hiw-chip:focus-visible {
  border-color: rgba(199, 123, 71, 0.45);
  color: rgba(255, 250, 248, 0.92);
  outline: none;
}

.es-hiw-chip[aria-selected="true"] {
  border-color: rgba(199, 123, 71, 0.55);
  background: rgba(199, 123, 71, 0.12);
  color: rgba(255, 248, 235, 0.98);
  box-shadow: 0 0 24px rgba(199, 123, 71, 0.12);
}

.es-hiw-panel {
  margin-top: 1.75rem;
}

.es-hiw-panel[hidden] {
  display: none !important;
}

.es-hiw-panel-title {
  font-family: var(--es-display-font, "Oxanium", sans-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  margin: 0 0 0.35rem 0;
}

.es-hiw-panel-dek {
  margin: 0 0 1.75rem 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(203, 213, 225, 0.88);
  max-width: 40rem;
}

.es-hiw-steps {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .es-hiw-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }

  .es-hiw-step--wide {
    grid-column: 1 / -1;
  }
}

.es-hiw-step {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  padding: 1.15rem 1.25rem 1.2rem;
}

.es-hiw-step-num {
  font-family: "Azeret Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--es-accent-2);
  margin-bottom: 0.45rem;
}

.es-hiw-step h3 {
  margin: 0 0 0.5rem 0;
  font-family: var(--es-display-font, "Oxanium", sans-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.3;
}

.es-hiw-step p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.62;
  color: rgba(203, 213, 225, 0.88);
}

.es-hiw-loop {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .es-hiw-loop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.es-hiw-loop-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 36, 0.45);
  padding: 1.25rem 1.2rem;
}

.es-hiw-loop-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--es-display-font, "Oxanium", sans-serif);
}

.es-hiw-loop-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.58;
  color: var(--es-muted);
}
