/* ==========================================================================
   Magic UI + 3D Executive Design System — Guillaume Vigneron (lasuperagence.com)
   Pure CSS3 layer designed to upgrade style.css, pages.css & records.css
   without breaking existing page structure.
   ========================================================================== */

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --mu-bg-dark: #14161b;
  --mu-bg-dark-2: #1c1f27;
  --mu-bg-card-dark: rgba(28, 31, 39, 0.82);
  --mu-border-dark: rgba(255, 255, 255, 0.1);
  --mu-border-dark-hover: rgba(196, 134, 232, 0.42);
  --mu-accent: #a958a5;
  --mu-accent-2: #7c4dff;
  --mu-accent-glow: rgba(169, 88, 165, 0.32);
  --mu-accent-soft: #e3b4e8;
  --mu-amber: #e89b3c;
  --mu-amber-soft: rgba(232, 155, 60, 0.16);
  --mu-surface-light: #ffffff;
  --mu-surface-tint: #f8f6fb;
  --mu-border-light: rgba(98, 49, 233, 0.12);
  --mu-text: #22242a;
  --mu-muted: #585b66;
  --mu-radius-md: 12px;
  --mu-radius-lg: 18px;
  --mu-shadow-card: 0 10px 30px -10px rgba(20, 16, 36, 0.08), 0 2px 6px rgba(20, 16, 36, 0.04);
  --mu-shadow-hover: 0 20px 44px -14px rgba(82, 42, 152, 0.18), 0 4px 12px rgba(20, 16, 36, 0.06);
  --mu-shadow-dark: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
}

/* ---------- Typography & Global Executive Polish ---------- */
body {
  font-size: 16px;
  line-height: 1.72;
  color: var(--mu-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p {
  color: var(--mu-muted);
}

h1, h2, h3, h4 {
  letter-spacing: -0.03em;
}

.eyebrow,
.inner-page .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Sticky Glass Header & Upgraded Navigation ---------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 22, 27, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

body > header.is-scrolled {
  background: rgba(17, 19, 24, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

/* Ensure inner article <header> elements never inherit sticky site-header behavior */
article > header,
main header,
.editorial-hero,
.article-hero {
  position: relative;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Article readability & sticky TOC offset below sticky top navbar */
.inner-page .article-sidebar {
  top: 98px;
}

.inner-page .prose h2 {
  scroll-margin-top: 98px;
}

.inner-page .prose p,
.inner-page .prose li {
  color: #34323e;
}

.navigation {
  height: 76px;
  gap: 20px;
}

.brand {
  font-size: 15px;
  flex-shrink: 0;
}

.brand small {
  font-size: 11px;
  color: #b7b3c4;
  margin-top: 2px;
}

.monogram {
  background: linear-gradient(135deg, #c158b2, #6f3ee8);
  box-shadow: 0 4px 16px rgba(169, 88, 165, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .monogram {
  transform: scale(1.05);
}

.navigation nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
  color: #d5d4de;
}

.navigation nav a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.navigation nav a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c968c1, #7c4dff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.navigation nav a:not(.nav-contact):hover::after,
.navigation nav a[aria-current="page"]:not(.nav-contact)::after {
  transform: scaleX(1);
}

.navigation nav a:hover,
.navigation nav a[aria-current="page"] {
  color: #ffffff;
}

.navigation nav a.nav-lab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-lab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d978d0;
  box-shadow: 0 0 8px #d978d0;
  display: inline-block;
  animation: mu-pulse 2.2s ease-in-out infinite;
}

.nav-contact {
  border: 1px solid rgba(217, 144, 210, 0.45);
  background: linear-gradient(135deg, rgba(169, 88, 165, 0.22), rgba(111, 62, 232, 0.22));
  color: #ffffff !important;
  padding: 9px 16px !important;
  border-radius: 999px;
  margin-left: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-contact:hover {
  background: linear-gradient(135deg, #a958a5, #6f3ee8);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(169, 88, 165, 0.35);
  transform: translateY(-1px);
}

/* ---------- Magic UI: Animated Shiny Badge ---------- */
.magic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f0dcf4;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.magic-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.18) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: mu-shimmer 4.8s ease-in-out infinite;
}

.magic-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
  flex-shrink: 0;
}

.magic-badge-light {
  color: #6b38a8;
  background: rgba(124, 77, 255, 0.08);
  border-color: rgba(124, 77, 255, 0.18);
}

/* ---------- Magic UI: Shimmer Button ---------- */
.button,
.inner-page .button {
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.button.primary,
.inner-page .button.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #b252ac 0%, #6d3ce6 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 10px 26px -8px rgba(139, 68, 204, 0.55);
}

.button.primary::after,
.inner-page .button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.button.primary:hover::after,
.inner-page .button.primary:hover::after {
  transform: translateX(130%);
}

.button.primary:hover,
.inner-page .button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(139, 68, 204, 0.68);
  background: linear-gradient(135deg, #bd5ab7 0%, #7a48f0 100%);
}

.button:not(.primary):hover,
.inner-page .button:not(.primary):hover {
  background: #6f3ee8;
  border-color: #6f3ee8;
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(111, 62, 232, 0.5);
}

/* ---------- Magic UI: Dot & Grid Architectural Backgrounds ---------- */
.magic-dots {
  position: relative;
}

.magic-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.magic-dots-light::before {
  background-image: radial-gradient(rgba(98, 49, 233, 0.13) 1px, transparent 1px);
}

/* ---------- Magic UI: Border Beam Container ---------- */
.magic-beam {
  position: relative;
  isolation: isolate;
}

.magic-beam::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 265deg,
    #d473ce 305deg,
    #7c4dff 338deg,
    #ffffff 355deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: mu-beam-spin 7.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.magic-beam-amber::before {
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 265deg,
    #f0a442 308deg,
    #ffd79a 345deg,
    transparent 360deg
  );
}

/* ---------- Magic UI: Magic Card (Spotlight Hover) ---------- */
.magic-card {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.magic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(169, 88, 165, 0.16),
    rgba(124, 77, 255, 0.06) 42%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 1;
}

.magic-card:hover::after {
  opacity: 1;
}

.magic-card > * {
  position: relative;
  z-index: 2;
}

.magic-card-light {
  background: #ffffff;
  border: 1px solid var(--mu-border-light);
  border-radius: var(--mu-radius-md);
  box-shadow: var(--mu-shadow-card);
}

.magic-card-light:hover {
  border-color: rgba(124, 77, 255, 0.34);
  box-shadow: var(--mu-shadow-hover);
  transform: translateY(-3px);
}

.magic-card-dark {
  background: var(--mu-bg-card-dark);
  border: 1px solid var(--mu-border-dark);
  border-radius: var(--mu-radius-md);
}

.magic-card-dark:hover {
  border-color: var(--mu-border-dark-hover);
  transform: translateY(-3px);
}

/* ---------- Magic UI: Infinite Marquee ---------- */
.magic-marquee-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.magic-marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: mu-marquee 38s linear infinite;
}

.magic-marquee-track.reverse {
  animation-direction: reverse;
  animation-duration: 44s;
}

.magic-marquee-wrap:hover .magic-marquee-track {
  animation-play-state: paused;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(35, 38, 43, 0.09);
  box-shadow: 0 2px 10px rgba(24, 20, 40, 0.04);
  font-size: 13px;
  font-weight: 600;
  color: #292c34;
  white-space: nowrap;
}

.marquee-pill span {
  font-size: 11px;
  font-weight: 500;
  color: #7c56b8;
  background: rgba(124, 77, 255, 0.08);
  padding: 2px 9px;
  border-radius: 999px;
}

.dark-band .marquee-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #eceaf3;
}

.dark-band .marquee-pill span {
  color: #e6b2eb;
  background: rgba(217, 134, 210, 0.14);
}

/* ---------- Trust Strip & Number Ticker ---------- */
.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid rgba(35, 38, 43, 0.08);
  padding: 36px 0;
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.trust-stat {
  padding: 20px 22px;
  border-radius: var(--mu-radius-md);
  background: var(--mu-surface-tint);
  border: 1px solid var(--mu-border-light);
}

.trust-stat-num {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, #23262b 20%, #7c4dff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--mu-muted);
  line-height: 1.45;
}

.press-logos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(35, 38, 43, 0.07);
}

.press-logos-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c758a;
}

.press-logos-list {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.press-logos-list img {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.72;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.press-logos-list img:hover {
  filter: none;
  opacity: 1;
}

.press-logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #5b5e68;
}

/* ---------- Original Full-Bleed Hero Style (Upgraded with Magic UI & 3D Depth) ---------- */
.hero.hero-editorial {
  position: relative;
  background: #14171e;
  color: #ffffff;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero.hero-editorial .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
}

.hero.hero-editorial::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 20, 26, 0.96) 0%,
    rgba(17, 20, 26, 0.86) 34%,
    rgba(17, 20, 26, 0.3) 62%,
    rgba(17, 20, 26, 0.06) 100%
  );
  z-index: 1;
}

.hero.hero-editorial .hero-3d-canvas {
  z-index: 1;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.hero.hero-editorial .hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 84px;
}

.hero.hero-editorial h1 {
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.038em;
  max-width: 660px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero.hero-editorial h1 span {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #b856b1;
  text-decoration-thickness: 5px;
  text-underline-offset: 9px;
}

.hero.hero-editorial .lead {
  max-width: 530px;
  color: #d7d6e1;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 30px;
}

.hero.hero-editorial .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(17, 20, 26, 0.42);
  backdrop-filter: blur(8px);
  color: #ffffff;
}

.hero.hero-editorial .hero-label {
  position: absolute;
  right: 7%;
  bottom: 64px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.97);
  color: #24262e;
  padding: 18px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  transform: rotate(-2.5deg);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero.hero-editorial .hero-label:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5);
}

.hero.hero-editorial .hero-label strong {
  color: #16181f;
  font-weight: 700;
}

@media (max-width: 720px) {
  .hero.hero-editorial {
    min-height: 640px;
    align-items: flex-end;
  }
  .hero.hero-editorial .hero-image {
    object-position: 68% 18%;
  }
  .hero.hero-editorial::after {
    background: linear-gradient(
      180deg,
      rgba(17, 20, 26, 0.48) 0%,
      rgba(17, 20, 26, 0.84) 44%,
      rgba(17, 20, 26, 0.97) 100%
    );
  }
  .hero.hero-editorial .hero-content {
    padding: 150px 0 44px;
  }
  .hero.hero-editorial h1 {
    font-size: clamp(34px, 9.2vw, 46px);
  }
  .hero.hero-editorial .hero-label {
    position: static;
    margin-top: 24px;
    transform: none;
    width: fit-content;
    padding: 13px 16px;
    font-size: 12px;
  }
}

/* ---------- GEO Citable Executive Summary Block (<dl>) ---------- */
.geo-tldr {
  margin: 28px 0 0;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--mu-surface-tint);
  border: 1px solid var(--mu-border-light);
}

.geo-tldr-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7c44a8;
  margin: 0 0 14px;
}

.geo-tldr dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.geo-tldr dt {
  font-size: 11.5px;
  font-weight: 700;
  color: #5b586a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.geo-tldr dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #22242a;
}

@media (max-width: 760px) {
  .geo-tldr dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- Hero 3D Canvas & Enhanced Split Hero ---------- */
.hero.hero-upgraded {
  background: radial-gradient(circle at 75% 25%, rgba(124, 77, 255, 0.22), transparent 52%),
              radial-gradient(circle at 18% 82%, rgba(169, 88, 165, 0.2), transparent 48%),
              #13151a;
  min-height: 680px;
  padding: 52px 0 68px;
}

.hero.hero-upgraded::after {
  display: none;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.78;
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-upgraded h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 22px;
}

.hero-upgraded h1 span {
  background: linear-gradient(120deg, #f1b7ee 0%, #c686f5 50%, #9b7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.hero-upgraded .lead {
  font-size: 17px;
  line-height: 1.72;
  color: #d4d3df;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-proof-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #c7c4d6;
}

.hero-proof-inline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof-inline strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-visual-stage {
  position: relative;
  perspective: 1100px;
}

.hero-stage-card {
  position: relative;
  border-radius: var(--mu-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1c1f28;
  box-shadow: var(--mu-shadow-dark);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.hero-stage-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 22%;
}

.hero-stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(18, 20, 26, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #d4d0e0;
}

.hero-stage-caption strong {
  color: #ffffff;
  display: block;
  font-size: 13px;
}

.hero-float-chip {
  position: relative;
  margin-top: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2228;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 12.5px;
  line-height: 1.4;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-float-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
}

.section-heading .button {
  white-space: nowrap;
  flex-shrink: 0;
}

.seo-breadcrumb {
  flex-wrap: wrap;
  row-gap: 4px;
}

.seo-breadcrumb a {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-float-chip strong {
  display: block;
  font-size: 13px;
  color: #181a20;
}

/* ---------- Magic UI: Safari Browser Mockup ---------- */
.magic-safari {
  border-radius: 14px;
  overflow: hidden;
  background: #14171f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.32);
}

.magic-safari-light {
  background: #f4f3f8;
  border: 1px solid rgba(35, 38, 43, 0.12);
  box-shadow: var(--mu-shadow-card);
}

.magic-safari-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.magic-safari-light .magic-safari-bar {
  background: #efedf4;
  border-bottom-color: rgba(35, 38, 43, 0.08);
}

.safari-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.safari-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.safari-dots i:nth-child(1) { background: #ff5f57; }
.safari-dots i:nth-child(2) { background: #febc2e; }
.safari-dots i:nth-child(3) { background: #28c840; }

.safari-url {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #9b99ab;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.magic-safari-light .safari-url {
  background: #ffffff;
  color: #656273;
}

.magic-safari-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f1117;
}

.magic-safari-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.magic-safari:hover .magic-safari-screen img {
  transform: scale(1.04);
}

/* ---------- Bento Grid (Homepage Lab IA Teaser & Showcase) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

.bento-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--mu-radius-lg);
  background: #1a1d25;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  gap: 16px;
}

.bento-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin: 0;
}

.bento-card p {
  color: #c2bfd0;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(169, 88, 165, 0.18);
  color: #eab8ee;
  border: 1px solid rgba(217, 144, 210, 0.26);
}

/* ---------- 3D Interactive Book (White Paper) ---------- */
.book-stage-3d {
  perspective: 1200px;
  display: grid;
  place-items: center;
  padding: 16px 0;
}

.book.book-3d {
  position: relative;
  transform: rotateY(-18deg) rotateX(6deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(145deg, #273447 0%, #151b2b 58%, #28193b 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 10px solid #10131e;
  box-shadow:
    8px 0 0 #ded8c8,
    11px 2px 0 #c6bfad,
    14px 4px 0 #141926,
    24px 32px 48px rgba(0, 0, 0, 0.55);
  margin: 0 auto;
}

.book.book-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, transparent 45%, rgba(169, 88, 165, 0.18) 100%);
  pointer-events: none;
}

.book.book-3d:hover {
  transform: rotateY(-6deg) rotateX(2deg) rotateZ(0deg) translateY(-6px) scale(1.03);
}

/* ---------- Mentat Partners Dedicated Partner Section ---------- */
.mentat-partner-section {
  padding: 72px 0;
}

.mentat-partner-card {
  position: relative;
  border-radius: var(--mu-radius-lg);
  background: radial-gradient(circle at 88% 18%, rgba(232, 155, 60, 0.18), transparent 46%),
              radial-gradient(circle at 12% 85%, rgba(124, 77, 255, 0.14), transparent 46%),
              #161920;
  color: #ffffff;
  border: 1px solid rgba(232, 155, 60, 0.28);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
  box-shadow: var(--mu-shadow-dark);
}

.mentat-partner-card h2 {
  color: #ffffff;
  font-size: clamp(26px, 2.8vw, 38px);
  margin-bottom: 16px;
}

.mentat-partner-card p {
  color: #cfcdd9;
  font-size: 15px;
  line-height: 1.72;
}

.mentat-distinction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 28px;
}

.mentat-distinction-box {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mentat-distinction-box.is-mentat {
  background: rgba(232, 155, 60, 0.08);
  border-color: rgba(232, 155, 60, 0.28);
}

.mentat-distinction-box strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
}

.mentat-distinction-box.is-mentat strong {
  color: #f5b963;
}

.mentat-distinction-box p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: #c5c2d1;
}

.mentat-brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 32px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.mentat-brand-panel img {
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

.mentat-cities {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0b661;
}

.button.mentat-cta {
  background: linear-gradient(135deg, #e89b3c, #c8741e);
  border-color: transparent;
  color: #14161b;
  font-weight: 700;
}

.button.mentat-cta:hover {
  background: linear-gradient(135deg, #f3ac52, #db842a);
  color: #14161b;
  box-shadow: 0 12px 28px -8px rgba(232, 155, 60, 0.55);
}

/* ---------- Conversion Form Upgrades (Chips + Reassurance) ---------- */
.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.form-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #dedce8;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.form-chip:hover,
.form-chip.is-active {
  background: rgba(169, 88, 165, 0.28);
  border-color: #d98ad6;
  color: #ffffff;
}

.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #c8c4d6;
}

.form-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-trust span::before {
  content: '✓';
  color: #4ade80;
  font-weight: 800;
}

/* ---------- Footer Upgrade + Mentat Partners Discreet Badge ---------- */
.footer {
  background: linear-gradient(160deg, #1b1730 0%, #2a1d54 55%, #462396 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  font-size: 14px;
  line-height: 1.65;
  color: #d7cef5;
}

.footer nav {
  font-size: 13px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer li a {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-mentat {
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 155, 60, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #efe8ff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-mentat:hover {
  background: rgba(232, 155, 60, 0.14);
  border-color: rgba(232, 155, 60, 0.55);
}

.footer-mentat img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  font-size: 12px;
}

.footer-bottom p {
  font-size: 12px;
}

/* ---------- Blur Fade Scroll Reveal ---------- */
.blur-fade {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-anim .blur-fade:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
}

html.js-anim .blur-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Mobile Sticky Conversion Bar ---------- */
.mobile-sticky-cta {
  display: none;
}

/* ---------- Existing Component Refinements ---------- */
.dark {
  background: linear-gradient(160deg, #1b1e26 0%, #15171d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mu-radius-lg);
}

.service {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mu-radius-md);
  padding: 26px 24px;
}

.service p {
  font-size: 14px;
  line-height: 1.65;
}

.service h3 {
  font-size: 20px;
}

.reference {
  background: #ffffff;
  border: 1px solid var(--mu-border-light);
  border-radius: var(--mu-radius-md);
  box-shadow: var(--mu-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.reference:hover {
  transform: translateY(-4px);
  box-shadow: var(--mu-shadow-hover);
  border-color: rgba(124, 77, 255, 0.35);
}

.reference p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.68;
}

.article {
  background: #ffffff;
  border: 1px solid var(--mu-border-light);
  border-radius: var(--mu-radius-md);
  overflow: hidden;
  box-shadow: var(--mu-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article:hover {
  transform: translateY(-4px);
  box-shadow: var(--mu-shadow-hover);
  border-color: rgba(124, 77, 255, 0.35);
}

.article > div {
  padding: 22px 24px 26px;
}

.article img {
  border-radius: 0;
  height: 220px;
}

.article p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.68;
}

.text-link {
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Training Group Mosaic (formation.html) & RH Feature Figure ---------- */
.training-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.training-photo-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--mu-border-light);
  box-shadow: var(--mu-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.training-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mu-shadow-hover);
}

.training-photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.training-photo-card figcaption {
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #3c3948;
  background: #ffffff;
}

.training-photo-card figcaption strong {
  display: block;
  font-size: 13.5px;
  color: #1e2028;
  margin-bottom: 2px;
}

.rh-feature-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1d24;
  border: 1px solid var(--mu-border-light);
  box-shadow: var(--mu-shadow-card);
}

.rh-feature-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.rh-feature-figure figcaption {
  padding: 16px 20px;
  background: #23262b;
  color: #f3edf8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .training-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Lab IA Page Dedicated Styles ---------- */
.lab-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(124, 77, 255, 0.26), transparent 50%),
              radial-gradient(circle at 15% 80%, rgba(169, 88, 165, 0.22), transparent 50%),
              #12141a;
  color: #ffffff;
  padding: 76px 0 68px;
}

.lab-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.lab-hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.09;
  font-weight: 700;
  margin-bottom: 20px;
}

.lab-hero h1 span {
  background: linear-gradient(120deg, #f3bdf0, #a285ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lab-hero .lead {
  font-size: 17px;
  color: #d2cfe0;
  max-width: 720px;
  line-height: 1.72;
}

.lab-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.lab-metric {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-metric strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.lab-metric span {
  display: block;
  font-size: 12px;
  color: #bab7ca;
  margin-top: 4px;
}

.lab-filter-bar {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 38, 43, 0.08);
  padding: 14px 0;
}

.lab-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lab-filter-btn {
  appearance: none;
  border: 1px solid rgba(35, 38, 43, 0.12);
  background: #ffffff;
  color: #363944;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lab-filter-btn:hover {
  border-color: #7c4dff;
  color: #5b2fd1;
}

.lab-filter-btn.is-active {
  background: linear-gradient(135deg, #a958a5, #6d3ce6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(109, 60, 230, 0.55);
}

.lab-category-section {
  padding: 68px 0 28px;
  scroll-margin-top: 150px;
}

.lab-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(35, 38, 43, 0.08);
  padding-bottom: 18px;
}

.lab-category-head h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin: 0;
}

.lab-category-head p {
  max-width: 520px;
  margin: 0;
  font-size: 14px;
}

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

.lab-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--mu-radius-lg);
  background: #ffffff;
  border: 1px solid rgba(35, 38, 43, 0.1);
  overflow: hidden;
  box-shadow: var(--mu-shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mu-shadow-hover);
  border-color: rgba(124, 77, 255, 0.35);
}

.lab-card.is-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.lab-card-media {
  padding: 16px 16px 0;
  background: linear-gradient(180deg, #f6f3fb 0%, #ffffff 100%);
}

.lab-card.is-featured .lab-card-media {
  padding: 20px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #161822 0%, #241b38 100%);
}

.lab-card.is-featured .magic-safari {
  width: 100%;
}

.lab-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lab-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(124, 77, 255, 0.09);
  color: #6335cc;
}

.lab-pill.is-3d {
  background: rgba(169, 88, 165, 0.12);
  color: #933a90;
}

.lab-pill.is-local {
  background: rgba(20, 148, 92, 0.1);
  color: #13794d;
}

.lab-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #1c1e24;
}

.lab-card-summary {
  font-size: 14px;
  line-height: 1.65;
  color: #4b4e5a;
  margin-bottom: 16px;
}

.lab-impression {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid #9d57ba;
  background: #f8f5fc;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: #353244;
}

.lab-impression strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7c44a8;
  margin-bottom: 4px;
}

.lab-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.lab-tech-tags span {
  font-size: 11px;
  font-weight: 600;
  color: #5b5969;
  background: #f1eff6;
  padding: 3px 9px;
  border-radius: 6px;
}

.lab-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lab-card-actions .button {
  padding: 10px 18px;
  font-size: 13px;
}

/* ---------- Live Preview Modal for 3D & Interactive Demos ---------- */
dialog.lab-modal {
  width: min(1180px, calc(100vw - 32px));
  height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #12141a;
  color: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

dialog.lab-modal::backdrop {
  background: rgba(10, 12, 18, 0.8);
  backdrop-filter: blur(8px);
}

.lab-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #1a1d26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-modal-head strong {
  font-size: 14px;
  color: #ffffff;
}

.lab-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lab-modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lab-modal-frame {
  width: 100%;
  height: calc(100% - 54px);
  border: 0;
  background: #0d0f14;
}

/* ---------- Keyframes ---------- */
@keyframes mu-beam-spin {
  to { --beam-angle: 360deg; }
}

@keyframes mu-shimmer {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(140%); }
}

@keyframes mu-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes mu-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

/* ---------- Responsive & Mobile-First Refinements ---------- */
@media (max-width: 1040px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-float-chip {
    left: 16px;
    bottom: -16px;
  }
  .trust-stats-grid,
  .lab-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-span-7, .bento-span-5, .bento-span-4, .bento-span-8 {
    grid-column: span 6;
  }
  .mentat-partner-card {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .lab-card.is-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .navigation {
    height: 68px;
  }
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .navigation nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(18, 20, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 16px;
    z-index: 59;
  }
  .navigation nav.open {
    display: flex !important;
  }
  .navigation nav a {
    padding: 13px 12px;
    border-radius: 10px;
  }
  .navigation nav a:hover,
  .navigation nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
  }
  .navigation nav a.nav-contact {
    margin: 12px 0 0;
    text-align: center;
    justify-content: center;
    padding: 13px 18px !important;
  }

  .lab-filter-bar {
    top: 68px;
  }

  .lab-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .lab-filters::-webkit-scrollbar { display: none; }

  .lab-grid,
  .mentat-distinction-grid {
    grid-template-columns: 1fr;
  }

  .lab-card.is-featured {
    grid-column: span 1;
  }

  .bento-span-7, .bento-span-5, .bento-span-4, .bento-span-6, .bento-span-8 {
    grid-column: span 12;
  }

  .lab-category-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Sticky mobile conversion CTA */
  .mobile-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 55;
    padding: 10px 12px 10px 16px;
    border-radius: 999px;
    background: rgba(20, 22, 28, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(217, 144, 210, 0.32);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    transform: translateY(130%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    pointer-events: none;
  }
  .mobile-sticky-cta.is-shown {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-sticky-cta span {
    font-size: 12.5px;
    font-weight: 600;
    color: #e9e5f3;
  }
  .mobile-sticky-cta a {
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b252ac, #6d3ce6);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 540px) {
  .trust-stats-grid,
  .lab-metrics-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .trust-stat {
    padding: 15px 14px;
  }
  .hero.hero-upgraded {
    min-height: 0;
    padding: 36px 0 54px;
  }
  .hero-float-chip {
    position: static;
    margin-top: 14px;
    max-width: 100%;
  }
  .mentat-partner-card {
    padding: 26px 20px;
  }
  .press-logos-list {
    gap: 18px;
  }
  .press-logos-list img {
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magic-beam::before,
  .magic-badge::before,
  .magic-marquee-track,
  .nav-lab-dot {
    animation: none !important;
  }
  html.js-anim .blur-fade:not(.is-visible) {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
