/* ================================================================
   51 INSIGHTS — JOIN.FIFTYONE.XYZ DESIGN LANGUAGE
   Shared visual refresh for every public page.
   Loaded last so page-specific layouts keep their structure while the
   typography, surfaces, navigation, heroes, cards and CTAs stay unified.
   ================================================================ */

:root {
  --join-ink: #111111;
  --join-ink-soft: #4a4a4a;
  --join-muted: #727272;
  --join-faint: #a4a4a4;
  --join-paper: #ffffff;
  --join-paper-alt: #f7f7f9;
  --join-paper-deep: #efeff2;
  --join-night: #070809;
  --join-night-soft: #111317;
  --join-line: rgba(17, 17, 17, 0.1);
  --join-line-dark: rgba(255, 255, 255, 0.12);
  --join-shadow: 0 30px 80px rgba(18, 24, 40, 0.12);
  --join-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --site-h1-size: clamp(48px, 5.4vw, 68px);
  --site-h1-size-mobile: clamp(38px, 10vw, 44px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 34px;
}

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(88, 199, 247, 0.45);
}

h1 {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em !important;
  line-height: 1.03 !important;
}

h2,
h3 {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.05em !important;
}

h2 {
  line-height: 1.04 !important;
}

h3 {
  line-height: 1.1 !important;
}

h4 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* One headline scale across the entire public site, anchored to the homepage. */
body
  :is(
    .idx-clean-hero,
    .terminal-page .hero,
    .research-hero,
    .podcast-hero,
    .work-hero,
    .events-hero,
    .pricing-page .pricing-hero,
    .vendors-page .vendors-hero,
    .careers-hero,
    .archive-hero,
    .mm-hero,
    .legal-content
  )
  h1 {
  font-size: var(--site-h1-size) !important;
}

@media (max-width: 620px) {
  body
    :is(
      .idx-clean-hero,
      .terminal-page .hero,
      .research-hero,
      .podcast-hero,
      .work-hero,
      .events-hero,
      .pricing-page .pricing-hero,
      .vendors-page .vendors-hero,
      .careers-hero,
      .archive-hero,
      .mm-hero,
      .legal-content
    )
    h1 {
    font-size: var(--site-h1-size-mobile) !important;
  }
}

.container {
  max-width: 1248px;
  padding-inline: 24px;
}

/* Navigation — dark over the cinematic hero, white after it. */
.nav {
  min-height: 72px;
  height: 72px;
  background: rgba(7, 8, 9, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition:
    top 0.3s var(--join-ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.nav.is-scrolled:not(.is-past-hero) {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

[data-theme='light'] .nav:not(.is-past-hero) {
  background: rgba(7, 8, 9, 0.72);
  border-bottom-color: transparent;
}

[data-theme='light'] .nav.is-scrolled:not(.is-past-hero) {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .nav.is-past-hero,
.nav.is-past-hero {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(17, 17, 17, 0.08);
  box-shadow: 0 8px 32px rgba(17, 17, 17, 0.04);
}

[data-theme='dark'] .nav.is-past-hero {
  background: rgba(7, 8, 9, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: 1248px;
}

.nav-logo-img {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.nav:not(.is-past-hero) .nav-logo,
.nav:not(.is-past-hero) .nav-link--active {
  color: #ffffff;
}

.nav:not(.is-past-hero) .nav-link,
.nav:not(.is-past-hero) .theme-toggle,
.nav:not(.is-past-hero) .nav-mobile-btn {
  color: #b6b8c0;
}

.nav:not(.is-past-hero) .nav-link:hover,
.nav:not(.is-past-hero) .theme-toggle:hover,
.nav:not(.is-past-hero) .nav-mobile-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav:not(.is-past-hero) .nav-divider {
  background: rgba(255, 255, 255, 0.14);
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
}

.nav-dropdown-menu {
  border-radius: 14px;
  padding: 8px;
}

body.has-announcement .mobile-menu {
  top: 108px;
}

.mobile-menu {
  top: 72px;
}

.announcement-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #0b0b0d;
}

/* Buttons — editorial black on light surfaces, reference blue in dark entry points. */
.btn {
  position: relative;
  font-weight: 700;
  transition:
    transform 0.2s var(--join-ease),
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-lg {
  min-height: 52px;
  height: 52px;
  padding-inline: 24px;
}

.btn-primary,
.btn-brand {
  background: #111111;
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 28px rgba(17, 17, 17, 0.16);
}

.btn-primary:hover,
.btn-brand:hover {
  background: #262626;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 16px 36px rgba(17, 17, 17, 0.22);
}

.btn-secondary {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.14);
}

[data-theme='dark'] .btn-secondary,
.nav:not(.is-past-hero) .btn-secondary {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-actions [onclick*='openIntakeModal'],
.nav-actions button.btn-secondary,
:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  :is(.btn-primary, .btn-brand),
:is(
    .idx-final-cta,
    .final-cta,
    .events-cta,
    .podcast-cta,
    .newsletter-cta,
    .vendors-free-cta,
    .mm-bottom-cta,
    .svc-midcta
  )
  :is(.btn-primary, .btn-brand) {
  background: linear-gradient(180deg, #302cff 0%, #0a06e5 100%);
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 30px rgba(10, 6, 229, 0.38);
}

.nav-actions [onclick*='openIntakeModal']:hover,
.nav-actions button.btn-secondary:hover,
:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  :is(.btn-primary, .btn-brand):hover,
:is(
    .idx-final-cta,
    .final-cta,
    .events-cta,
    .podcast-cta,
    .newsletter-cta,
    .vendors-free-cta,
    .mm-bottom-cta,
    .svc-midcta
  )
  :is(.btn-primary, .btn-brand):hover {
  background: linear-gradient(180deg, #4541ff 0%, #1712f0 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 16px 36px rgba(10, 6, 229, 0.42);
}

.mobile-menu a.mobile-menu-book-call,
[data-theme='light'] .mobile-menu a.mobile-menu-book-call {
  margin-top: 8px;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  border-bottom: 0;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.2);
}

.mobile-menu a.mobile-menu-book-call:hover,
[data-theme='light'] .mobile-menu a.mobile-menu-book-call:hover {
  background: #f3f3f3;
  color: #111111;
}

.btn:focus-visible,
.nav-link:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid rgba(88, 199, 247, 0.7);
  outline-offset: 3px;
}

/* Shared cinematic hero treatment from join.fiftyone.xyz. */
:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  ) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  padding-top: 148px;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 78% 30%, rgba(88, 199, 247, 0.16), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(10, 6, 229, 0.28), transparent 34%),
    linear-gradient(135deg, #070809 0%, #10101b 60%, #0a06e5 150%);
  color: #ffffff;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 65%, transparent 94%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 65%,
    transparent 94%
  );
  pointer-events: none;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )::after {
  content: '';
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  background-image: image-set(
    url('../images/hero-earth-nasa.avif') type('image/avif'),
    url('../images/hero-earth-nasa.jpg') type('image/jpeg')
  );
  background-position: center 48%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.55) contrast(1.08);
  opacity: 0.3;
  mask-image: linear-gradient(to bottom, transparent 5%, black 17%, black 76%, transparent 94%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 5%,
    black 17%,
    black 76%,
    transparent 94%
  );
  pointer-events: none;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  > .container,
:is(main, body) > .mm-hero > .container {
  position: relative;
  z-index: 2;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  h1,
:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  h2 {
  color: #ffffff;
  font-size: clamp(3rem, 5.2vw, 4.65rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  .gradient-text {
  background: none !important;
  color: #8f92a0 !important;
  -webkit-text-fill-color: #8f92a0 !important;
  animation: none;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  :is(
    .idx-hero-sub,
    .hero-sub,
    .pricing-hero-desc,
    .podcast-hero-sub,
    .research-hero-sub,
    .archive-hero-sub,
    .vendors-hero-desc,
    .careers-hero-sub,
    .events-hero-sub,
    .mm-subtitle
  ) {
  color: #a4a7b0;
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.65;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  :is(
    .idx-hero-eyebrow,
    .hero-eyebrow,
    .podcast-hero-badge,
    .research-hero-badge,
    .vendors-hero-badge,
    .careers-hero-eyebrow,
    .mm-badge
  ) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #bec0c7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  :is(.idx-hero-stats, .hero-proof, .events-hero-stat-label, .vendors-hero-sub-text) {
  color: #858892;
}

:is(main, body)
  > :is(
    .idx-hero,
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )
  :is(.events-hero-stat-value, .stat-value) {
  /* Keep quantitative proof neutral; green is reserved for positive status. */
  color: #ffffff;
}

.hero-terminal-preview,
.vendors-hero-screenshot {
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 42px rgba(10, 6, 229, 0.16),
    0 28px 76px rgba(0, 0, 0, 0.34);
}

[data-theme='light'] :is(.hero-terminal-preview, .vendors-hero-screenshot) {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 42px rgba(10, 6, 229, 0.16),
    0 28px 76px rgba(0, 0, 0, 0.34);
}

/* Editorial light sections and the reference card language. */
[data-theme='light'] body {
  background: var(--join-paper);
  color: var(--join-ink-soft);
}

[data-theme='light']
  main
  > section:not(.idx-hero):not(.hero):not(.pricing-hero):not(.podcast-hero):not(.research-hero):not(
    .archive-hero
  ):not(.vendors-hero):not(.careers-hero):not(.events-hero):not(.mm-hero):not(.idx-final-cta):not(
    .final-cta
  ):not(.events-cta):not(.podcast-cta):not(.newsletter-cta):not(.vendors-free-cta):not(
    .mm-bottom-cta
  ):not(.svc-midcta) {
  background-color: var(--join-paper);
}

.section-heading,
.idx-platform-header h2,
.idx-support-header h2,
.idx-audience-left h2,
.idx-diff-header h2,
.pricing-section-header h2,
.episodes-header h2,
.research-section-header h2,
.svc-section-header h2 {
  font-weight: 600;
  letter-spacing: -0.045em;
}

:is(.section-label, .svc-section-label, .mm-section-label, .events-year-label) {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

[data-theme='light']
  :is(
    .bento-card,
    .bento-ghost-card,
    .category-card,
    .episode-card,
    .event-card,
    .iaas-card,
    .idx-audience-card,
    .idx-diff-card,
    .idx-platform-card,
    .idx-support-card,
    .job-card,
    .newsletter-cta-card,
    .pricing-card,
    .svc-casestudy-card,
    .svc-pillar-card,
    .svc-service-card,
    .vendors-problem-card
  ) {
  border-color: transparent;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.08),
    0 18px 54px rgba(18, 24, 40, 0.06);
}

[data-theme='light']
  :is(
    .bento-card,
    .category-card,
    .episode-card,
    .event-card,
    .iaas-card,
    .idx-audience-card,
    .idx-diff-card,
    .idx-platform-card,
    .idx-support-card,
    .job-card,
    .pricing-card,
    .svc-casestudy-card,
    .svc-pillar-card,
    .svc-service-card,
    .vendors-problem-card
  ):hover {
  border-color: transparent;
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.12),
    0 24px 68px rgba(18, 24, 40, 0.11);
}

[data-theme='light'] :is(.svc-testimonial-card, .testimonial-card, .guest-cta) {
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: var(--join-night);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-theme='light'] :is(.svc-testimonial-card, .testimonial-card, .guest-cta) :is(h2, h3, strong) {
  color: #ffffff;
}

[data-theme='light'] :is(.svc-testimonial-card, .testimonial-card, .guest-cta) :is(p, span) {
  color: #a1a4ad;
}

/* Final conversion moments echo the newsletter page's closing panel. */
:is(
  .idx-final-cta,
  .final-cta,
  .events-cta,
  .podcast-cta,
  .newsletter-cta,
  .vendors-free-cta,
  .mm-bottom-cta,
  .svc-midcta
) {
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 120px;
  background: linear-gradient(135deg, #070809 0%, #10101b 58%, #0a06e5 145%);
  color: #ffffff;
}

:is(
  .idx-final-cta,
  .final-cta,
  .events-cta,
  .podcast-cta,
  .newsletter-cta,
  .vendors-free-cta,
  .mm-bottom-cta,
  .svc-midcta
)::before,
:is(
  .idx-final-cta,
  .final-cta,
  .events-cta,
  .podcast-cta,
  .newsletter-cta,
  .vendors-free-cta,
  .mm-bottom-cta,
  .svc-midcta
)::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -420px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(88, 199, 247, 0.15);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

:is(
  .idx-final-cta,
  .final-cta,
  .events-cta,
  .podcast-cta,
  .newsletter-cta,
  .vendors-free-cta,
  .mm-bottom-cta,
  .svc-midcta
)::after {
  top: -540px;
  width: 960px;
  height: 960px;
}

:is(
    .idx-final-cta,
    .final-cta,
    .events-cta,
    .podcast-cta,
    .newsletter-cta,
    .vendors-free-cta,
    .mm-bottom-cta,
    .svc-midcta
  )
  :is(h2, h3) {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.055em;
}

:is(
    .idx-final-cta,
    .final-cta,
    .events-cta,
    .podcast-cta,
    .newsletter-cta,
    .vendors-free-cta,
    .mm-bottom-cta,
    .svc-midcta
  )
  :is(p, .final-cta-sub, .idx-final-cta-sub) {
  color: #a4a7b0;
}

/* Footer — compact, quiet and dark like the reference page. */
.site-footer {
  padding: 58px 0 36px;
  border-top: 1px solid #202228;
  background: var(--join-night);
  color: #777a83;
}

.site-footer :is(.footer-brand, .footer-link:hover, .footer-social-link:hover) {
  color: #ffffff;
}

.site-footer :is(.footer-desc, .footer-link, .footer-copy, .footer-heading, .footer-social-link) {
  color: #777a83;
}

.site-footer .footer-social-link {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.site-footer .footer-brand-img {
  height: 34px;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 84px;
  }

  .nav {
    min-height: 64px;
    height: 64px;
  }

  .nav-logo-img {
    height: 40px;
  }

  .announcement-bar {
    height: 34px;
    padding-inline: 12px 42px;
    font-size: 10.5px;
    line-height: 1.2;
  }

  .announcement-bar a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.has-announcement .nav {
    top: 34px;
  }

  .mobile-menu {
    top: 64px;
  }

  body.has-announcement .mobile-menu {
    top: 98px;
  }

  .nav-actions > a[href*='terminal.fiftyone.xyz'] {
    display: none;
  }

  .theme-toggle {
    display: none;
  }

  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    ) {
    min-height: auto;
    padding-top: 128px;
    padding-bottom: 68px;
  }

  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    )
    h1,
  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    )
    h2 {
    font-size: clamp(2.65rem, 8vw, 3.6rem);
  }

  :is(
    .idx-final-cta,
    .final-cta,
    .events-cta,
    .podcast-cta,
    .newsletter-cta,
    .vendors-free-cta,
    .mm-bottom-cta,
    .svc-midcta
  ) {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 20px;
  }

  .nav-actions .btn {
    min-height: 42px;
    height: 42px;
    padding-inline: 15px;
    font-size: 12px;
  }

  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    ) {
    padding-top: 106px;
    padding-bottom: 50px;
  }

  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    )::before {
    background-size: 48px 48px;
  }

  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    )::after {
    background-position: 58% center;
    opacity: 0.2;
  }

  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    )
    h1,
  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    )
    h2 {
    font-size: clamp(2.3rem, 10.8vw, 3rem);
    letter-spacing: -0.045em;
  }

  :is(main, body)
    > :is(
      .idx-hero,
      .hero,
      .pricing-hero,
      .podcast-hero,
      .research-hero,
      .archive-hero,
      .vendors-hero,
      .careers-hero,
      .events-hero,
      .mm-hero
    )
    :is(
      .idx-hero-sub,
      .hero-sub,
      .pricing-hero-desc,
      .podcast-hero-sub,
      .research-hero-sub,
      .archive-hero-sub,
      .vendors-hero-desc,
      .careers-hero-sub,
      .events-hero-sub,
      .mm-subtitle
    ) {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .hero-terminal-preview,
  .vendors-hero-screenshot,
  [data-theme='light'] :is(.svc-testimonial-card, .testimonial-card, .guest-cta) {
    border-radius: 22px;
  }

  .site-footer {
    padding-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav,
  .reveal,
  [class$='-card'] {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Shared editorial people system: used by homepage, Research and Services. */
[data-theme='light'] img.trust-logo {
  filter: saturate(0.58) contrast(1.06) !important;
  mix-blend-mode: normal !important;
  opacity: 0.78 !important;
}

[data-theme='light'] img.trust-logo:hover {
  filter: saturate(1) contrast(1) !important;
  opacity: 1 !important;
}

/* The homepage hero stays dark in both themes, so its trust marks stay white. */
html[data-theme] .idx-hero .hero-trust img.trust-logo {
  filter: grayscale(1) brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  opacity: 0.74 !important;
}

html[data-theme] .idx-hero .hero-trust img.trust-logo:hover {
  filter: grayscale(1) brightness(0) invert(1) !important;
  opacity: 1 !important;
}

:is(.fiftyone-person-grid, .podcast-guests-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

:is(.fiftyone-person-card, .podcast-guest) {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

:is(.fiftyone-person-card, .podcast-guest) > img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 13px;
  object-fit: cover;
  background: var(--elevated);
}

.fiftyone-person-card > div,
.podcast-guest-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.fiftyone-person-card strong,
.podcast-guest-name {
  overflow: hidden;
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiftyone-person-card span,
.podcast-guest-role {
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idx-people-panel .fiftyone-person-card {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.idx-people-panel .fiftyone-person-card strong { color: #ffffff; }
.idx-people-panel .fiftyone-person-card span { color: #979aa5; }

:is(.fiftyone-founder-card, .svc-leadership-founder) {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #0a0b0e;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

:is(.fiftyone-founder-media, .svc-leadership-photo) {
  width: 100%;
  height: 100%;
  min-height: 245px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

:is(.fiftyone-founder-media, .svc-leadership-photo) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

:is(.fiftyone-founder-body, .svc-leadership-founder-info) {
  padding: 34px 38px;
}

.fiftyone-founder-meta,
.svc-leadership-founder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.fiftyone-founder-meta span:first-child,
.svc-leadership-name {
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.fiftyone-founder-meta span:last-child,
.svc-leadership-title {
  color: #98ea65;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fiftyone-founder-body h3 {
  max-width: 620px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
}

.fiftyone-founder-body p,
html[data-theme] .svc-leadership-founder-info > p {
  max-width: 720px;
  color: #a4a7b0;
  font-size: 14px;
  line-height: 1.7;
}

.fiftyone-founder-body a {
  display: inline-flex;
  margin-top: 22px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.svc-leadership-linkedin { color: #a4a7b0; }

@media (max-width: 760px) {
  :is(.fiftyone-person-grid, .podcast-guests-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(.fiftyone-founder-card, .svc-leadership-founder) {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  :is(.fiftyone-founder-body, .svc-leadership-founder-info) {
    padding: 26px;
  }
}

@media (max-width: 520px) {
  :is(.fiftyone-person-grid, .podcast-guests-grid) {
    grid-template-columns: 1fr;
  }

  :is(.fiftyone-founder-card, .svc-leadership-founder) {
    grid-template-columns: 1fr;
  }

  :is(.fiftyone-founder-media, .svc-leadership-photo) {
    height: 250px;
    min-height: 250px;
  }

  :is(.fiftyone-founder-body, .svc-leadership-founder-info) {
    padding: 24px;
  }
}

/* Light-theme outline buttons need explicit surface-aware contrast. */
html[data-theme='light'] .btn-secondary,
html[data-theme='light'] .nav.is-past-hero .nav-actions .btn-secondary {
  background: rgba(17, 17, 17, 0.045);
  color: #111111;
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.3),
    0 1px 2px rgba(17, 17, 17, 0.05);
}

html[data-theme='light'] .btn-secondary:hover,
html[data-theme='light'] .nav.is-past-hero .nav-actions .btn-secondary:hover {
  background: rgba(17, 17, 17, 0.09);
  color: #111111;
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.42),
    0 7px 18px rgba(17, 17, 17, 0.08);
}

/* The site keeps cinematic hero action rows dark even in the light theme. */
html[data-theme='light']
  :is(.idx-hero-ctas, .hero-ctas, .podcast-hero-ctas, .research-hero-content)
  .btn-secondary,
html[data-theme='light'] .nav:not(.is-past-hero) .nav-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 8px 22px rgba(0, 0, 0, 0.15);
}

html[data-theme='light']
  :is(.idx-hero-ctas, .hero-ctas, .podcast-hero-ctas, .research-hero-content)
  .btn-secondary:hover,
html[data-theme='light'] .nav:not(.is-past-hero) .nav-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Restraint pass: content must never depend on scroll animation to exist. */
.reveal,
.reveal-d1,
.reveal-d2,
.reveal-d3 {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Keep the campaign notice on deeper pages without crowding the homepage. */
.home-page .announcement-bar {
  display: none;
}

.home-page.has-announcement .nav {
  top: 0;
}

.home-page.has-announcement .mobile-menu {
  top: 72px;
}

/* Keep the single Book a call treatment white in every navigation state. */
.nav .nav-actions button.nav-book-call,
html[data-theme='light'] .nav.is-past-hero .nav-actions button.nav-book-call,
html[data-theme='light'] .nav:not(.is-past-hero) .nav-actions button.nav-book-call {
  background: #ffffff;
  color: #111111;
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.14);
}

.nav .nav-actions button.nav-book-call:hover,
html[data-theme='light'] .nav.is-past-hero .nav-actions button.nav-book-call:hover,
html[data-theme='light'] .nav:not(.is-past-hero) .nav-actions button.nav-book-call:hover {
  background: #f3f3f3;
  color: #111111;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(17, 17, 17, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

/* The globe is the homepage signature, not a generic background texture. */
:is(main, body)
  > :is(
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  ) {
  background:
    radial-gradient(circle at 88% 16%, rgba(10, 6, 229, 0.12), transparent 32%),
    #090a0d;
}

:is(main, body)
  > :is(
    .hero,
    .pricing-hero,
    .podcast-hero,
    .research-hero,
    .archive-hero,
    .vendors-hero,
    .careers-hero,
    .events-hero,
    .mm-hero
  )::after {
  display: none;
}

/* Explicit inverse actions for dark entry points; blue stays an accent. */
.nav:not(.is-past-hero) .nav-actions .btn-primary,
.home-page .idx-hero-ctas .btn-primary,
.idx-final-cta .btn-primary {
  background: #ffffff;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.nav:not(.is-past-hero) .nav-actions .btn-primary:hover,
.home-page .idx-hero-ctas .btn-primary:hover,
.idx-final-cta .btn-primary:hover {
  background: #f0f0f0;
  color: #111111;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.12);
}

.nav.is-past-hero .nav-actions .btn-primary {
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

@media (max-width: 900px) {
  .nav-actions .btn {
    display: none !important;
  }

  .home-page.has-announcement .mobile-menu {
    top: 64px;
  }

  /* Treat Subscribe as the mobile navigation's single primary action. */
  .mobile-menu a:last-child {
    min-height: 52px;
    margin-top: 12px;
    padding: 0 24px;
    justify-content: center;
    border-bottom: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
    font-weight: 600;
  }

  .mobile-menu a:last-child:hover {
    background: #f0f0f0;
    color: #111111;
  }

  html[data-theme='light'] .mobile-menu a:last-child {
    background: #111111;
    color: #ffffff;
    box-shadow: none;
  }

  html[data-theme='light'] .mobile-menu a:last-child:hover {
    background: #262626;
    color: #ffffff;
  }
}

/* One navigation weight system across desktop, dropdowns, and mobile. */
.nav-logo span,
.nav-link,
.nav-dropdown-item,
.mobile-menu a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500 !important;
}

.nav-actions .btn,
.mobile-menu a.mobile-menu-book-call,
.mobile-menu a:last-child {
  font-weight: 600 !important;
}
