/*
 * Namespaced surfaces (.cs-*) — patterns from Catalysi Website global.css, no .btn/.card collisions.
 */

/* Header (light sticky bar + logo + nav CTA; same chrome gradient as footer) */
.cs-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cs-site-chrome-gradient);
  border-bottom: 1px solid var(--color-border);
  overflow: visible;
}

.cs-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  overflow: visible;
}

.cs-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  justify-self: start;
}

.cs-logo-link img {
  min-width: 120px;
  width: auto;
  height: auto;
  max-height: 2.5rem;
}

/* Official PNG/SVG wordmark in header — brand minimum width 120px digital */
.cs-logo-link img.cs-nav-wordmark {
  display: block;
  width: auto;
  max-width: 11rem;
  height: auto;
  max-height: 2.75rem;
}

.cs-leadership-card__quote {
  margin: 1.25rem 0 0;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(243, 136, 0, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.cs-leadership-card__quote-text {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.6;
  font-style: italic;
  color: rgba(252, 250, 255, 0.95);
}

.cs-leadership-card__quote-attrib {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(252, 250, 255, 0.78);
}

.cs-band-white .cs-leadership-card__quote {
  margin-top: auto;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--color-brand-amber);
  border-radius: var(--radius-md);
  background: var(--color-bg-muted-purple);
  box-shadow: 0 8px 24px rgba(65, 0, 88, 0.08);
}

.cs-band-white .cs-leadership-card__quote-text {
  position: relative;
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: 1.55;
}

.cs-band-white .cs-leadership-card__quote-attrib {
  margin-top: 0.75rem;
  color: var(--color-brand);
}

/* Founder profile: LinkedIn icon, inline with the quote attribution name. */
.cs-leadership-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  color: inherit;
  opacity: 0.75;
  transition:
    opacity var(--motion-interactive-duration) var(--motion-interactive-ease),
    color var(--motion-interactive-duration) var(--motion-interactive-ease);
}

.cs-leadership-card__linkedin:hover {
  opacity: 1;
  color: var(--color-brand-amber);
}

/* Desktop (lg+): horizontal section nav with dropdowns; burger hidden */
.cs-primary-nav {
  display: none;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .cs-primary-nav {
    display: flex;
  }
}

.cs-nav-desktop-list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.0625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-nav-desktop-item {
  position: relative;
}

.cs-nav-desktop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  white-space: nowrap;
}

a.cs-nav-desktop-trigger {
  text-decoration: none;
}

@media (min-width: 1280px) {
  .cs-nav-desktop-trigger {
    font-size: var(--text-md);
    padding: 0.5rem 0.65rem;
  }
}

.cs-nav-desktop-trigger:hover {
  background: var(--color-bg-page);
  color: var(--color-brand);
}

.cs-nav-desktop-trigger:focus-visible {
  outline: 2px solid var(--control-focus-ring);
  outline-offset: 2px;
}

.cs-nav-desktop-trigger.is-open {
  color: var(--color-brand);
  font-weight: 600;
}

.cs-nav-desktop-chevron {
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.cs-nav-desktop-trigger.is-open .cs-nav-desktop-chevron {
  transform: rotate(180deg);
}

.cs-nav-desktop-panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.25rem;
  min-width: 100%;
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  z-index: 60;
}

.cs-nav-desktop-item:last-child .cs-nav-desktop-panel {
  left: auto;
  right: 0;
}

.cs-nav-desktop-submenu {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px rgba(47, 72, 88, 0.16);
  padding: 0.375rem 0;
  max-height: min(70vh, 24rem);
  overflow-y: auto;
}

.cs-nav-desktop-submenu a.cs-nav-link {
  display: block;
  width: 100%;
  border-radius: 0;
  font-size: var(--text-md);
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
}

.cs-nav-desktop-submenu a.cs-nav-link:hover {
  background: var(--color-bg-page);
}

.cs-nav-link {
  padding: 0.5rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-md);
  border-radius: var(--radius-sm);
}

.cs-nav-link:hover {
  background: var(--color-bg-page);
  color: var(--color-brand);
}

.cs-nav-link.is-active {
  font-weight: 600;
  color: var(--color-brand);
}

/* Burger: primary sections; only below lg (must stay hidden after this block — see next media query). */
.cs-nav-mobile {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: end;
}

@media (min-width: 1024px) {
  .cs-nav-mobile {
    display: none;
  }
}

/*
 * Full-width nav panel: fixed below the sticky header so it always drops downward
 * (avoids DaisyUI dropdown anchor positioning flipping the panel upward off-screen).
 */
.cs-nav-menu-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  z-index: 45;
  margin: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 28px rgba(47, 72, 88, 0.12);
  transform-origin: top center;
}

/* Reset DaisyUI .menu nesting (margin ladder + fit-content) for centered mobile nav */
.cs-nav-menu-panel .menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  padding: 0.75rem 1rem 1rem;
}

.cs-nav-menu-panel .menu :where(li) {
  width: 100%;
}

.cs-nav-menu-panel .menu :where(li ul) {
  position: static;
  margin: 0.35rem 0 0;
  padding: 0;
  width: 100%;
  white-space: normal;
}

.cs-nav-menu-panel .menu :where(li ul)::before {
  content: none;
  display: none;
}

.cs-nav-menu-panel .menu :where(li:not(.menu-title) > *:not(ul, details, .menu-title, .btn)),
.cs-nav-menu-panel .menu :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
  display: block;
  width: 100%;
  text-align: center;
  padding-inline: 0.75rem;
  padding-block: 0.45rem;
}

.cs-nav-menu-group {
  width: 100%;
}

.cs-nav-menu-group > span.cs-nav-link {
  display: block;
  width: 100%;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.cs-nav-submenu {
  list-style: none;
}

.cs-nav-submenu a.cs-nav-link {
  font-size: var(--text-md);
  font-weight: 500;
}

/* Tablet: floating panel centered under header (burger still visible below lg) */
@media (min-width: 900px) and (max-width: 1023.98px) {
  .cs-nav-menu-panel {
    left: 0;
    right: 0;
    margin-inline: auto;
    width: min(22rem, calc(100vw - 2rem));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 30px rgba(47, 72, 88, 0.16);
  }
}

/* Hero bands */
.cs-hero-purple {
  background: var(--color-brand);
  color: #f5f0f8;
  padding: var(--hero-band-pt) 0 var(--hero-band-pb);
}

.cs-hero-inner {
  max-width: var(--hero-inner-max);
  margin-inline: auto;
}

/* Hero stack: optional veil + content above (`pageHeroNetInverse`, plans band, etc.) */
.cs-hero-net-root {
  position: relative;
  overflow: hidden;
}

/* Light frosted veil over brand heroes (no canvas layer) */
.cs-hero-net-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse 95% 80% at 50% 38%,
    rgba(252, 251, 253, 0.12) 0%,
    rgba(250, 249, 252, 0.28) 45%,
    rgba(248, 246, 250, 0.4) 100%
  );
}

.cs-hero-net-root__content {
  position: relative;
  z-index: 2;
}

/* Dark-brand hero: subtle depth veil over light canvas strokes */
.cs-hero-net-veil--inverse {
  background: radial-gradient(
    ellipse 95% 80% at 50% 38%,
    rgba(35, 0, 48, 0.45) 0%,
    rgba(65, 0, 88, 0.28) 50%,
    rgba(20, 0, 30, 0.5) 100%
  );
}

/*
 * Light net page hero — same stacking contract as `.cs-hero-purple.cs-hero-net-root--inverse`
 * (`pageHeroNetLight` in chrome.ts): net root + default `.cs-hero-net-veil` + content.
 * Neutral surface; pair with solid amber primary CTA (not inverse-only treatments).
 */
.cs-hero-page-net-light {
  background: linear-gradient(
    165deg,
    #fafafa 0%,
    #f6f6f7 45%,
    #f0eef3 100%
  );
  color: var(--color-text);
  padding: var(--hero-band-pt) 0 var(--hero-band-pb);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cs-hero-page-net-light h1.cs-hero-title--page {
  color: var(--color-text);
  font-size: var(--type-page-h1);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  text-shadow: none;
}

.cs-hero-page-net-light .cs-hero-lead {
  color: var(--color-text-muted);
}

/*
 * Hero H1 in .cs-hero-purple:
 * - Homepage (`src/pages/home.ts`): add `cs-hero-title--home` — marker only; keeps --type-home-hero-h1 from this block.
 * - Inner pages: add `cs-hero-title--page` — overrides to --type-page-h1 (see next rule).
 */
.cs-hero-purple h1 {
  color: #fff;
  font-size: var(--type-home-hero-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

/* Longer page titles (investors, etc.) — smaller than homepage hero */
.cs-hero-purple h1.cs-hero-title--page {
  font-size: var(--type-page-h1);
  line-height: 1.15;
}

.cs-hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: rgba(245, 240, 248, 0.88);
  margin: 0 0 2rem;
  max-width: 65ch;
}

.cs-kicker {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b691ff;
  margin-bottom: 0.75rem;
}

/* Shared section typography tokens */
.cs-section-h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .cs-section-h2 {
    font-size: 2.5rem;
  }
}

.cs-section-copy {
  font-size: var(--text-md);
  line-height: 1.7;
}

/* Light marketing bands — default heading/body colors (reduces repeated inline styles) */
.cs-band-white .cs-section-h2,
.cs-band-muted-purple .cs-section-h2 {
  color: var(--color-text);
}

.cs-band-white .cs-section-copy,
.cs-band-muted-purple .cs-section-copy {
  color: var(--color-text-muted);
}

.cs-band-white .cs-section-copy.font-medium,
.cs-band-muted-purple .cs-section-copy.font-medium {
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .cs-section-copy {
    font-size: var(--text-lg);
  }
}

.cs-card-title {
  font-size: var(--text-lg);
  line-height: 1.35;
  font-weight: 700;
}

.cs-card-copy {
  font-size: var(--text-md);
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .cs-card-copy {
    font-size: var(--text-md);
  }
}

.cs-control {
  border-radius: var(--control-radius);
  transition:
    background-color var(--motion-interactive-duration) var(--motion-interactive-ease),
    border-color var(--motion-interactive-duration) var(--motion-interactive-ease),
    color var(--motion-interactive-duration) var(--motion-interactive-ease),
    box-shadow var(--motion-interactive-duration) var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

.cs-control:focus-visible {
  outline: 2px solid var(--control-focus-ring);
  outline-offset: 2px;
}

.cs-control--quiet {
  background: var(--control-bg) !important;
  color: var(--control-fg) !important;
  border: 1px solid var(--control-border) !important;
  box-shadow: var(--control-shadow);
}

.cs-control--quiet:hover {
  background: var(--control-bg-hover) !important;
  border-color: var(--control-border-hover) !important;
  color: var(--control-fg) !important;
  box-shadow: var(--control-shadow-hover);
}

.cs-control--outline {
  background: transparent !important;
  color: var(--control-fg) !important;
  border: 1px solid var(--control-border) !important;
}

.cs-control--outline:hover {
  background: var(--control-bg-hover) !important;
  border-color: var(--control-border-hover) !important;
  color: var(--control-fg) !important;
}

.cs-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.cs-card .cs-card-title {
  color: var(--color-brand);
}

.cs-card .cs-card-copy {
  color: var(--color-text-muted);
}

/* Stats (draft stat-card) */
.cs-stats-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cs-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cs-stat-card {
  position: relative;
  text-align: center;
  padding: clamp(1.35rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.35rem);
  border-radius: var(--radius-md);
  border: 1px solid rgba(65, 0, 88, 0.12);
  background: linear-gradient(165deg, rgba(243, 236, 246, 0.65) 0%, #fff 45%, #fff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 24px rgba(65, 0, 88, 0.07),
    0 1px 3px rgba(47, 72, 88, 0.06);
  transition:
    box-shadow var(--motion-interactive-duration) var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease),
    border-color var(--motion-interactive-duration) var(--motion-interactive-ease);
}

.cs-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-brand-violet) 50%, var(--color-brand-amber) 100%);
  opacity: 0.95;
}

@media (hover: hover) {
  .cs-stat-card:hover {
    border-color: rgba(65, 0, 88, 0.22);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(var(--motion-interactive-translate-hover));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-stat-card:hover {
    transform: none;
  }
}

/* Progression variant (Investors "multi stage opportunity"): a small arrow
   badge between cards showing left-to-right stage order. Desktop points
   right in the column gap; stacked mobile points down between rows. */
.cs-stats-grid--progression .cs-stat-card:not(:last-child)::after {
  content: '\2193';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(65, 0, 88, 0.16);
  color: var(--color-brand-amber);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(65, 0, 88, 0.1);
  z-index: 2;
}

@media (min-width: 640px) {
  .cs-stats-grid--progression .cs-stat-card:not(:last-child)::after {
    content: '\2192';
    top: 50%;
    left: 100%;
    right: auto;
  }
}

.cs-stat-value {
  display: block;
  font-weight: 700;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cs-stat-label {
  display: block;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  opacity: 0.88;
  margin-inline: auto;
}

.cs-stat-source {
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Section bands */
.cs-band-white {
  background: var(--color-bg-white);
}

/* border-t / border-y set width only; pin marketing token when no border-*-color utility */
.cs-band-white.border-t {
  border-color: var(--color-border);
}

.cs-band-muted-purple {
  background: var(--color-bg-muted-purple);
}

/*
 * Default global closing CTA — full-bleed amber gradient (`closingCtaBand()` in chrome.ts).
 * Primary button: `.cs-btn-inverse-light`. Lead: `.cs-band-amber-flat__lead`.
 */
.cs-band-amber-flat {
  background: linear-gradient(
    128deg,
    #ffc566 0%,
    var(--color-brand-amber) 42%,
    #d97800 100%
  );
  color: #fff;
  text-align: center;
}

.cs-band-amber-flat h2 {
  margin: 0 auto;
  max-width: 65ch;
  color: #fff;
  font-size: var(--type-cta-band-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(47, 72, 88, 0.18);
}

.cs-band-amber-flat .cs-band-amber-flat__lead,
.cs-band-amber-flat .cs-cta-sub {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: var(--text-md);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(47, 72, 88, 0.12);
}

/*
 * Legacy closing CTA (muted band + purple gradient card). Prefer `.cs-band-amber-flat`.
 * Kept for archived pages / gradual migration only.
 */
.cs-band-amber-cta {
  background: var(--color-bg-muted-purple);
  color: var(--color-text);
}

.cs-band-amber-cta > .cs-container {
  --cs-cta-violet-glow: rgba(119, 0, 179, 0.26);

  position: relative;
  z-index: 0;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.35rem, 4vw, 2.25rem);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 20px 44px rgba(65, 0, 88, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.12);
  background:
    radial-gradient(ellipse 55% 44% at 10% 94%, var(--cs-cta-violet-glow) 0%, transparent 54%),
    linear-gradient(
      128deg,
      var(--color-brand) 0%,
      #3a0d52 40%,
      #2d0a3d 78%,
      #1f0729 100%
    );
}

.cs-band-amber-cta > .cs-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-brand-amber) 0%,
    #ffc85c 40%,
    var(--color-brand-violet) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.cs-band-amber-cta h2 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.cs-band-amber-cta .cs-cta-sub {
  margin-top: 1rem;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: rgba(252, 248, 255, 0.9);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.cs-band-amber-cta .cs-cta-actions {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.cs-section-pad {
  padding: clamp(3rem, 6vw, 7.5rem) 0;
}

/* BGI Guide hub — sequential part list */
/* Guide series: numbered part cards. Border-first with the site's standard
   hover lift. The action sits inside the text column (not a third grid track)
   so there is no dead gap between the dek and the link on wide containers. */
.cs-guide-series {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Space above the list should match the list's own item-to-item gap.
   Set here (not a margin-top utility class in HTML) because .cs-guide-series's
   own margin: 0 reset silently overrides utility classes at equal specificity. */
.cs-section-copy + .cs-guide-series {
  margin-top: 0.875rem;
}

.cs-guide-series__item {
  position: relative;
}

.cs-guide-series__link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.25rem;
  padding: 1.375rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--motion-interactive-duration)
      var(--motion-interactive-ease),
    box-shadow var(--motion-interactive-duration)
      var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

@media (hover: hover) {
  .cs-guide-series__link:hover {
    border-color: rgba(65, 0, 88, 0.22);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(var(--motion-interactive-translate-hover));
  }
}

.cs-guide-series__link:focus-visible {
  outline: 2px solid var(--color-brand-amber);
  outline-offset: 3px;
}

/* Part 1 reads as the primary entry point without a heavy fill. */
.cs-guide-series__item--start .cs-guide-series__link {
  border-color: rgba(65, 0, 88, 0.24);
  box-shadow: var(--card-shadow);
}

.cs-guide-series__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.cs-guide-series__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.cs-guide-series__theme {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.cs-guide-series__title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.cs-guide-series__dek {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.cs-guide-series__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: var(--text-sm);
}

.cs-guide-series__time {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.cs-guide-series__time::after {
  content: '·';
  opacity: 0.55;
}

.cs-guide-series__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-brand);
  transition: gap var(--motion-interactive-duration)
    var(--motion-interactive-ease);
}

@media (hover: hover) {
  .cs-guide-series__link:hover .cs-guide-series__action {
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-guide-series__link,
  .cs-guide-series__action {
    transition: none;
  }

  .cs-guide-series__link:hover {
    transform: none;
  }
}

/* Book endorsements (Era Six): pull quote + attribution on light bands.
   Same interactive hover language as every other card site-wide
   (border-color + box-shadow + translateY lift, shared motion tokens). */
.cs-endorse {
  margin: 0;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--color-brand-amber);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition:
    box-shadow var(--motion-interactive-duration) var(--motion-interactive-ease),
    border-color var(--motion-interactive-duration) var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

@media (hover: hover) {
  .cs-endorse:hover {
    /* Set the shorthand first so this longhand (later in source) keeps the amber accent on the left edge. */
    border-color: rgba(65, 0, 88, 0.22);
    border-left-color: var(--color-brand-amber);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(var(--motion-interactive-translate-hover));
  }
}

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

  .cs-endorse:hover {
    transform: none;
  }
}

.cs-endorse__text {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.65;
  font-style: italic;
  color: var(--color-text);
}

.cs-endorse__attrib {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 1.125rem 0 0;
  font-style: normal;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-brand);
}

.cs-endorse__photo {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.cs-endorse__role {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ==================== Guide article (long-form) ==================== */

/* --- Hero chrome: breadcrumb, part chip, read time, series progress --- */
.cs-guide-crumb {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* brand-tokens.css forces brand purple on bare anchors via
   `.cs-brand-body a:not(.btn):not([class*='link-'])` (0,3,1), which would render
   this link purple-on-purple. Match that shape and add one more :not() so this
   wins on specificity rather than relying on stylesheet order. */
.cs-brand-body .cs-guide-crumb a:not(.btn):not([class*='link-']) {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.cs-brand-body .cs-guide-crumb a:not(.btn):not([class*='link-']):hover {
  color: #fff;
  text-decoration: underline;
}

.cs-guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cs-guide-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.cs-guide-meta__time {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

/* Four segments, filled up to the current part. Decorative — the
   "Part N of 4" chip carries the same information for assistive tech. */
.cs-guide-progress {
  display: flex;
  gap: 0.375rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 15rem;
}

.cs-guide-progress__step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.cs-guide-progress__step--on {
  background: var(--color-brand-amber);
}

/* --- Prev / next pager --- */
.cs-guide-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .cs-guide-pager {
    grid-template-columns: 1fr 1fr;
  }
}

.cs-guide-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--motion-interactive-duration)
      var(--motion-interactive-ease),
    box-shadow var(--motion-interactive-duration)
      var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

@media (hover: hover) {
  .cs-guide-pager__link:hover {
    border-color: rgba(65, 0, 88, 0.22);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(var(--motion-interactive-translate-hover));
  }
}

/* Only mirror the "next" card once the pager is actually side-by-side;
   right-aligned text reads as unbalanced when the cards are stacked. */
@media (min-width: 640px) {
  .cs-guide-pager__link--next {
    text-align: right;
  }
}

.cs-guide-pager__label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.cs-guide-pager__title {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

/* --- Prose treatments (scoped so .c-article stays generic) --- */

/* Standfirst: the leading italic line becomes a proper deck, and the rule
   markdown emits straight after it is redundant once it is styled. */
.cs-guide-article .c-article > p:first-child {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-brand-amber);
  padding-left: 1.125rem;
  margin-bottom: 2.25rem;
}

.cs-guide-article .c-article > p:first-child em {
  font-style: normal;
}

.cs-guide-article .c-article > p:first-child + hr {
  display: none;
}

/* Opening paragraph carries slightly more weight than the rest. */
.cs-guide-article .c-article > p:first-child + hr + p {
  font-size: var(--text-md);
  color: var(--color-text);
}

/* Section headings get a short amber tick to break up long prose. */
.cs-guide-article .c-article h2 {
  position: relative;
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-size: var(--text-xl);
  letter-spacing: -0.015em;
}

.cs-guide-article .c-article h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--color-brand-amber);
}

/* Paragraphs that open with a bold lead-in are effectively list items in
   prose form; give them a quiet callout treatment so they scan. */
.cs-guide-article .c-article p:has(> strong:first-child) {
  padding: 1.0625rem 1.125rem;
  margin-block: 1.375rem;
  border-left: 3px solid rgba(65, 0, 88, 0.22);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-bg-muted-purple);
}

.cs-guide-article .c-article p:has(> strong:first-child) > strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-brand);
}

.cs-guide-article .c-article hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

/* Homepage — role journey (persona + seniority interactive section) */
.cs-role-journey {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.cs-role-journey__outer {
  width: 100%;
  text-align: center;
}

.cs-role-journey__stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.cs-role-journey__stepper-item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.cs-role-journey__stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.125rem;
  left: calc(50% + 1.125rem);
  width: calc(100% - 2.25rem);
  height: 2px;
  background: rgba(65, 0, 88, 0.14);
  border-radius: 1px;
  pointer-events: none;
}

.cs-role-journey__stepper-item.is-complete:not(:last-child)::after {
  background: linear-gradient(
    90deg,
    var(--color-brand) 0%,
    rgba(65, 0, 88, 0.28) 100%
  );
}

.cs-role-journey__stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  color: rgba(65, 0, 88, 0.55);
  background: #fff;
  border: 2px solid rgba(65, 0, 88, 0.16);
  box-shadow: 0 2px 8px rgba(65, 0, 88, 0.06);
  transition:
    color var(--motion-interactive-duration) var(--motion-interactive-ease),
    background-color var(--motion-interactive-duration) var(--motion-interactive-ease),
    border-color var(--motion-interactive-duration) var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

.cs-role-journey__stepper-item.is-active .cs-role-journey__stepper-num,
.cs-role-journey__stepper-item.is-complete .cs-role-journey__stepper-num {
  color: #fff;
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.cs-role-journey__stepper-item.is-active .cs-role-journey__stepper-num {
  transform: scale(1.08);
  box-shadow:
    0 0 0 4px rgba(65, 0, 88, 0.12),
    0 4px 14px rgba(65, 0, 88, 0.18);
}

.cs-role-journey__stepper-label {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(47, 72, 88, 0.55);
  max-width: 5.5rem;
}

.cs-role-journey__stepper-item.is-active .cs-role-journey__stepper-label {
  color: var(--color-brand);
}

.cs-role-journey__stepper-item.is-complete .cs-role-journey__stepper-label {
  color: rgba(47, 72, 88, 0.72);
}

.cs-role-journey__shell {
  margin-inline: auto;
  max-width: 56rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  border: 1px solid rgba(65, 0, 88, 0.1);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    #fff 38%,
    rgba(243, 236, 246, 0.35) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 32px rgba(65, 0, 88, 0.08),
    0 2px 8px rgba(47, 72, 88, 0.04);
}

.cs-role-journey__panel--center {
  text-align: center;
}

.cs-role-journey__panel[hidden] {
  display: none !important;
}

.cs-role-journey__lede {
  margin-inline: auto;
  max-width: 44rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(65, 0, 88, 0.1);
  background: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(65, 0, 88, 0.05);
}

.cs-role-journey__role-input {
  font-size: var(--text-md);
  border-color: rgba(65, 0, 88, 0.18);
  box-shadow: 0 2px 10px rgba(65, 0, 88, 0.04);
}

.cs-role-journey__role-input:focus {
  border-color: rgba(65, 0, 88, 0.38);
  box-shadow: 0 0 0 3px rgba(65, 0, 88, 0.1);
}

.cs-role-journey__cards .cs-ds-feature-card {
  text-align: left;
  border-color: rgba(65, 0, 88, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.cs-role-journey__cards .cs-ds-feature-card__title {
  color: var(--color-brand);
}

.cs-role-journey__cards.cs-ds-feature-grid--center .cs-role-journey__benefit-card {
  align-items: stretch;
}

.cs-role-journey__benefit-card {
  gap: var(--space-3);
}

.cs-role-journey__card-index {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  margin: 0 0 var(--space-1);
  border-radius: 9999px;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--color-brand-amber);
  box-shadow: 0 2px 6px rgba(217, 120, 0, 0.28);
  flex-shrink: 0;
}

.cs-role-journey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}

.cs-role-journey__form-wrap {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-md);
  border: 1px solid rgba(65, 0, 88, 0.1);
  background: rgba(255, 255, 255, 0.65);
}

.cs-role-journey__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-2);
}

@media (max-width: 767px) {
  .cs-role-journey__stepper-label {
    font-size: var(--text-sm);
    max-width: 4.5rem;
  }

  .cs-role-journey .cs-ds-feature-grid.cs-ds-feature-grid--3 {
    grid-template-columns: 1fr;
  }

  .cs-role-journey__role-input {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-role-journey__stepper-num {
    transition: none;
  }

  .cs-role-journey__stepper-item.is-active .cs-role-journey__stepper-num {
    transform: none;
  }
}

/*
 * Footer — same chrome gradient as `.cs-site-header` (`--cs-site-chrome-gradient`).
 * Must beat `.cs-brand-body a:not(.btn):not([class*='link-'])` in brand-tokens.css (same specificity, later file wins;
 * we also add .cs-site-footer so link rules win regardless of order).
 */
.cs-brand-body .cs-site-footer {
  --cs-footer-fg: var(--color-text-muted);
  --cs-footer-heading-fg: var(--color-text);

  position: relative;
  padding: 2.5rem 0;
  background: var(--cs-site-chrome-gradient);
  border-top: 1px solid var(--color-border);
  color: var(--cs-footer-fg);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.cs-brand-body .cs-site-footer a:not(.btn) {
  color: var(--color-brand);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.15em;
}

.cs-brand-body .cs-site-footer a:not(.btn):hover {
  color: var(--color-brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.cs-brand-body .cs-site-footer a:not(.btn):focus-visible {
  outline: 2px solid var(--control-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.cs-brand-body .cs-site-footer li {
  color: var(--cs-footer-fg);
}

/* Bundled CSS often omits .space-y-2 — explicit rhythm for link stacks */
.cs-brand-body .cs-site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-footer-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
  justify-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .cs-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
  }
}

.cs-brand-body .cs-site-footer .cs-footer-heading {
  font-weight: 700;
  color: var(--cs-footer-heading-fg);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.cs-brand-body .cs-site-footer .cs-footer-legal {
  margin-top: 1.5rem;
  padding-top: 10px;
  font-size: var(--text-sm);
  color: var(--cs-footer-fg);
  text-align: center;
  line-height: 1.5;
}

/*
 * Amber CTA (heroes, modals, body) — keep amber + navy for contrast on purple bands.
 */
.cs-btn-amber {
  --cs-amber-hover: #d97800;
  background: var(--color-brand-amber) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    0 1px 2px rgba(47, 72, 88, 0.08),
    0 2px 8px rgba(243, 136, 0, 0.22);
  transition:
    background var(--motion-interactive-duration) var(--motion-interactive-ease),
    color var(--motion-interactive-duration) var(--motion-interactive-ease),
    box-shadow var(--motion-interactive-duration) var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

.cs-btn-amber:hover {
  background: var(--cs-amber-hover) !important;
  color: #fff !important;
  box-shadow:
    0 4px 14px rgba(47, 72, 88, 0.12),
    0 8px 28px rgba(243, 136, 0, 0.45);
  transform: translateY(var(--motion-interactive-translate-hover));
}

.cs-btn-amber:focus-visible {
  outline: 2px solid var(--control-focus-ring);
  outline-offset: 2px;
}

.cs-btn-amber:active {
  transform: translateY(0);
  box-shadow:
    0 1px 3px rgba(47, 72, 88, 0.12),
    0 2px 10px rgba(243, 136, 0, 0.28);
}

/* Purple CTA — use on light/amber surfaces; use `.cs-btn-amber` on brand-purple bands where needed */
.cs-btn-inverse-light {
  background: var(--color-brand) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(65, 0, 88, 0.28);
  transition:
    background var(--motion-interactive-duration) var(--motion-interactive-ease),
    color var(--motion-interactive-duration) var(--motion-interactive-ease),
    box-shadow var(--motion-interactive-duration) var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

.cs-btn-inverse-light:hover {
  background: var(--color-brand-deep) !important;
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(65, 0, 88, 0.42);
  transform: translateY(var(--motion-interactive-translate-hover));
}

.cs-btn-inverse-light:focus-visible {
  outline: 2px solid var(--control-focus-ring);
  outline-offset: 2px;
}

.cs-btn-inverse-light:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(65, 0, 88, 0.3);
}

/* Modal panel polish (Daisy modal-box inside) */
.cs-modal-title {
  color: var(--color-brand);
}

/* --- Launch homepage: two-column iceberg hero (DEC-0011) --- */
.cs-hero-launch {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 3vh, 2rem) 0;
  color: var(--color-text);
  background: #ffffff;
}

/* Iceberg art fills the card; inset bleed zooms slightly past the edges */
.cs-hero-launch__art {
  position: absolute;
  inset: -4%;
  z-index: 0;
  pointer-events: none;
  background-color: #020818;
  background-image: url('/images/homepage-hero-iceberg-bgi-v2.png');
  background-image: image-set(
    url('/images/homepage-hero-iceberg-bgi-v2.png') type('image/png')
  );
  background-repeat: no-repeat;
  background-position: center calc(50% + var(--cs-hero-launch-parallax-y, 0px));
  background-size: cover;
}

.cs-hero-launch__inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.cs-hero-launch__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .cs-hero-launch__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    position: relative;
  }
}

.cs-hero-launch__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text);
  min-width: 0;
  padding-inline: 5px;
}

@media (min-width: 768px) {
  .cs-hero-launch__copy {
    text-align: left;
  }
}

.cs-hero-launch__copy .cs-hero-title--home,
.cs-hero-launch__copy .cs-hero-title--page {
  color: var(--color-brand);
  font-size: var(--type-home-hero-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* Primary USP emphasis: full amber highlight that paints in left-to-right on load.
   Plain text renders first, then the highlight sweeps across as a visual cue.
   Same gradient as the closing CTA band (`.cs-band-amber-flat`) for brand consistency.
   Purple-on-amber is ~6:1 contrast (AA) at the mid/end stops. box-decoration-break keeps it clean across wraps. */
.cs-hero-launch__copy .cs-hero-title--home .cs-hero-usp {
  background-image: linear-gradient(
    128deg,
    #ffc566 0%,
    var(--color-brand-amber) 42%,
    #d97800 100%
  );
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% calc(80% + 2px);
  padding-inline: 0.12em;
  border-radius: 0.08em;
  font-weight: 800;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: cs-usp-paint 750ms ease-out 550ms forwards;
}

@keyframes cs-usp-paint {
  to {
    background-size: 100% calc(80% + 2px);
  }
}

/* Respect reduced-motion: show the highlight fully, no sweep. */
@media (prefers-reduced-motion: reduce) {
  .cs-hero-launch__copy .cs-hero-title--home .cs-hero-usp {
    animation: none;
    background-size: 100% calc(80% + 2px);
  }
}

@media (min-width: 768px) {
  .cs-hero-launch__copy .cs-hero-title--home,
  .cs-hero-launch__copy .cs-hero-title--page {
    margin-inline: 0;
    max-width: none;
  }
}

.cs-hero-launch__copy .cs-hero-lead {
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .cs-hero-launch__copy .cs-hero-lead {
    margin-inline: 0;
  }
}

.cs-hero-launch__copy .cs-hero-lead--emphasis {
  color: var(--color-brand);
  font-weight: 600;
}

.cs-hero-launch__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
  min-height: min(42vh, 16rem);
  border: 1px solid var(--card-border, var(--color-border));
  border-radius: 1.25rem;
  background: #020818;
  box-shadow:
    var(--card-shadow),
    0 16px 48px rgba(65, 0, 88, 0.07);
}

@media (min-width: 768px) {
  .cs-hero-launch__visual {
    min-height: 0;
  }
}

.cs-hero-launch__messages-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .cs-hero-launch__messages-wrap {
    width: min(100%, 28rem);
  }
}

.cs-hero-launch__visual-cta {
  display: flex;
  justify-content: center;
  width: min(92%, 22rem);
}

.cs-hero-launch__cta-btn {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 999px !important;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow:
    0 10px 26px rgba(243, 136, 0, 0.34),
    0 2px 8px rgba(0, 0, 0, 0.22) !important;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    filter 220ms ease,
    background 220ms ease !important;
}

.cs-hero-launch__cta-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 16px 36px rgba(243, 136, 0, 0.46),
    0 4px 12px rgba(0, 0, 0, 0.26) !important;
}

.cs-hero-launch__cta-btn:active {
  transform: translateY(0) scale(0.995);
}

.cs-hero-launch__messages {
  position: relative;
  top: 5px;
  display: grid;
  width: min(92%, 22rem);
  min-height: 6.25rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(22, 2, 32, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.125rem;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(125%);
  overflow: hidden;
}

.cs-hero-launch-message {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  filter: blur(6px);
  transform: translateY(0.6rem) scale(0.985);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease,
    visibility 0.6s ease;
  pointer-events: none;
}

.cs-hero-launch-message.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@media (max-width: 767px) {
  .cs-hero-launch__copy {
    order: 1;
  }

  .cs-hero-launch__visual {
    order: 2;
    width: min(100%, 28rem);
    margin-inline: auto;
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-hero-launch-message {
    transition: none;
    transform: none;
  }

  .cs-hero-launch-message:not(.is-active) {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  .cs-hero-launch-message.is-active {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   /about/team "founder story" redesign (DEC-0017) — page-specific rules,
   not yet part of the locked design system. Promote to cs-design-system.css
   before reusing the icon-divider columns / checkmark row pattern elsewhere.
   ========================================================================== */

.cs-founder-banner {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--color-bg-muted-purple) 0%, #ffffff 100%);
  overflow: hidden;
}

/* Founder profile hero — same gradient treatment as the team page banner. */
.cs-founder-profile-hero {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--color-bg-muted-purple) 0%, #ffffff 100%);
}

.cs-founder-profile-hero__name {
  margin: 0;
  font-size: var(--type-page-h1);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-brand);
}

.cs-founder-profile-hero__role {
  margin: 0.5rem 0 0;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-amber);
}

.cs-founder-profile-hero__tag {
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--color-text);
}

/* Scoped override (higher specificity than the shared .cs-ds-split rule):
   align the bio copy with the top of the portrait instead of the design
   system's default vertical-centered split. */
#team-profile .cs-ds-split {
  align-items: start;
}

/* The founder-story hero is much shorter than the standard net-inverse hero
   this padding was tuned for; keep the bottom padding, tighten only the top
   so the bio content sits closer to the hero instead of floating. */
#team-profile-bio.cs-section-pad {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.cs-founder-banner__grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1rem, 4vw, 3rem);
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.cs-founder-banner__person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  max-width: 18rem;
  text-decoration: none;
  color: inherit;
}

.cs-founder-banner__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(65, 0, 88, 0.14);
  transition:
    box-shadow var(--motion-interactive-duration) var(--motion-interactive-ease),
    transform var(--motion-interactive-duration) var(--motion-interactive-ease);
}

.cs-founder-banner__person:hover .cs-founder-banner__photo {
  box-shadow: 0 20px 48px rgba(65, 0, 88, 0.2);
  transform: translateY(-3px);
}

.cs-founder-banner__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cs-founder-banner__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
}

.cs-founder-banner__role {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-amber);
}

.cs-founder-story__headline {
  color: var(--color-text);
}

.cs-founder-values {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  text-align: left;
}

@media (min-width: 1024px) {
  .cs-founder-values {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.cs-founder-values__intro {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.cs-founder-values__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--color-bg-muted-purple);
  color: var(--color-brand);
  flex-shrink: 0;
}

.cs-founder-values__label {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-brand);
}

.cs-founder-values__list {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .cs-founder-values__list {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--color-border);
  }
}

@media (min-width: 640px) {
  .cs-founder-values__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .cs-founder-values__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.cs-founder-values__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.cs-founder-values__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: var(--color-bg-muted-purple);
  color: var(--color-brand);
}

.cs-founder-values__item-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.cs-founder-values__item-body {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .cs-founder-banner__grid {
    flex-wrap: wrap;
  }

  .cs-founder-banner__person {
    max-width: 8.5rem;
  }

  .cs-founder-banner__label {
    margin-bottom: 1rem;
  }

  .cs-founder-banner__name {
    font-size: var(--text-md);
  }

  .cs-founder-banner__role {
    font-size: var(--text-sm);
  }
}
