/* Desktop hero — full-bleed background image, copy overlaid on negative space */

#layout-desktop .d-hero.d-hero--fullbg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 73px;
  box-sizing: border-box;
  min-height: min(720px, 100vh);
  min-height: min(720px, 100dvh);
  background: #050508;
}

/* Hero from top; fixed nav sits on top of the hero image */
#layout-desktop .d-stage:has(.d-hero--bg-only) {
  padding-top: 0;
  background: transparent;
}

#layout-desktop .d-hero.d-hero--fullbg.d-hero--bg-only {
  padding-top: 0;
  margin-top: 0;
  isolation: auto;
  background: transparent;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none;
}

#layout-desktop:has(.d-hero--bg-only) .d-nav:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#layout-desktop:has(.d-hero--bg-only) .d-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px -20px rgba(24, 24, 27, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__bg {
  background-color: transparent;
  background-position: 62% center;
}

/* Hero overlay — cinematic scrim, soft spotlight, rim light (bg-only) */
#layout-desktop .d-hero.d-hero--fullbg.d-hero--bg-only .d-hero__overlay--creative {
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 125% 92% at -4% 52%,
      rgba(5, 11, 28, 0.93) 0%,
      rgba(7, 18, 44, 0.58) 36%,
      rgba(10, 28, 62, 0.2) 58%,
      transparent 78%
    ),
    linear-gradient(
      112deg,
      rgba(0, 36, 68, 0.48) 0%,
      rgba(0, 148, 188, 0.16) 46%,
      rgba(var(--color-primary-rgb), 0.08) 68%,
      transparent 90%
    ),
    linear-gradient(
      180deg,
      rgba(2, 8, 22, 0.55) 0%,
      transparent 18%,
      transparent 72%,
      rgba(2, 10, 26, 0.38) 100%
    ),
    radial-gradient(
      ellipse 85% 80% at 100% 45%,
      transparent 35%,
      rgba(0, 0, 0, 0.12) 100%
    );
}

#layout-desktop .d-hero__overlay--creative::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 30%;
  width: 58%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 100% 95% at 28% 50%,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(0, 196, 228, 0.05) 42%,
    transparent 72%
  );
  filter: blur(14px);
  pointer-events: none;
}

#layout-desktop .d-hero__overlay--creative::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 18%;
  width: min(42vw, 380px);
  height: min(52vh, 440px);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 70% 80% at 55% 45%,
      rgba(0, 232, 255, 0.18) 0%,
      rgba(0, 175, 215, 0.06) 45%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 50% 40% at 70% 70%,
      rgba(var(--accent-rgb), 0.08) 0%,
      transparent 70%
    );
  filter: blur(22px);
  animation: d-hero-overlay-glow 9s ease-in-out infinite;
}

#layout-desktop .d-hero__overlay-mesh,
#layout-desktop .d-hero__overlay-beam {
  position: absolute;
  pointer-events: none;
}

#layout-desktop .d-hero__overlay-mesh {
  left: -5%;
  right: 55%;
  bottom: -12%;
  height: 48%;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(0, 220, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 245, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(780px) rotateX(64deg);
  transform-origin: 18% 100%;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 16% 92%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 65% at 16% 92%, #000 5%, transparent 70%);
}

#layout-desktop .d-hero__overlay-beam {
  top: -20%;
  left: -18%;
  width: 70%;
  height: 140%;
  opacity: 0.65;
  background: conic-gradient(
    from 210deg at 38% 50%,
    transparent 0deg,
    rgba(0, 200, 235, 0.2) 48deg,
    rgba(120, 110, 255, 0.1) 100deg,
    rgba(var(--accent-rgb), 0.09) 140deg,
    transparent 215deg
  );
  filter: blur(52px);
  animation: d-hero-overlay-aurora 20s ease-in-out infinite alternate;
}

@keyframes d-hero-overlay-aurora {
  0% {
    transform: translate(0, 0) rotate(-4deg) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translate(2%, 1.5%) rotate(3deg) scale(1.02);
    opacity: 0.72;
  }
}

@keyframes d-hero-overlay-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  #layout-desktop .d-hero__overlay-beam,
  #layout-desktop .d-hero__overlay--creative::after {
    animation: none;
  }
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__bg::before,
#layout-desktop .d-hero.d-hero--bg-only .d-hero__bg::after,
#layout-desktop .d-hero.d-hero--bg-only::before,
#layout-desktop .d-hero.d-hero--bg-only::after {
  content: none !important;
  display: none !important;
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__container {
  padding: calc(73px + 32px) 40px 48px;
  min-height: inherit;
  box-sizing: border-box;
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__sub {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__title {
  display: block;
  gap: 0;
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__line {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__mark {
  color: var(--hero-drive-sales);
  text-shadow: 0 0 28px rgba(139, 124, 255, 0.35);
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__main {
  position: relative;
  z-index: 1;
  padding-left: 24px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--hero-stripe-start), var(--hero-stripe-end)) 1;
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__main::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -24px;
  bottom: -18px;
  left: -28px;
  border-radius: 14px;
  background: radial-gradient(
    ellipse 95% 85% at 0% 50%,
    rgba(4, 10, 24, 0.42) 0%,
    rgba(4, 10, 24, 0.12) 55%,
    transparent 78%
  );
  pointer-events: none;
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__actions {
  margin-top: 28px;
}

#layout-desktop .d-hero.d-hero--bg-only .d-hero__actions .d-hero__enroll {
  min-width: 260px;
  min-height: 60px;
  padding: 16px 40px;
  font-size: 18px;
  line-height: 1.25;
}

#layout-desktop .d-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--primary);
  background-image:
    url("/img/hero-bg-full.png?v=20261110d1"),
    linear-gradient(120deg, var(--primary) 0%, #4339c9 45%, #2f2a8c 100%);
  background-size: cover;
  background-position: 58% center;
  background-repeat: no-repeat;
}

/* Gradient scrim: dark left for copy, lighter primary tint on right for photo */
#layout-desktop .d-hero.d-hero--fullbg .d-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 18, 0.85) 0%,
    rgba(5, 8, 18, 0.55) 34%,
    rgba(var(--color-primary-rgb), 0.38) 56%,
    rgba(var(--color-primary-rgb), 0.18) 76%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

#layout-desktop .d-hero__container {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 40px 72px;
  min-height: inherit;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

#layout-desktop .d-hero.d-hero--fullbg .d-hero__main {
  position: relative;
  max-width: min(100%, 640px);
  padding-left: 24px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #8b7cff, #ff6b2c) 1;
}

#layout-desktop .d-hero__eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(122, 108, 248, 0.2);
  border: 1px solid rgba(167, 154, 255, 0.45);
  color: #e8e4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#layout-desktop .d-hero.d-hero--fullbg .d-hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: none;
}

#layout-desktop .d-hero.d-hero--fullbg .d-hero__lead {
  position: relative;
  display: block;
  margin: 0;
  font-size: clamp(20px, 1.65vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

#layout-desktop .d-hero.d-hero--fullbg .d-hero__lead::after {
  content: attr(data-shine);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  white-space: nowrap;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  background-image: linear-gradient(
    105deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 38%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(196, 184, 255, 0.9) 52%,
    rgba(255, 255, 255, 0.25) 62%,
    transparent 70%,
    transparent 100%
  );
  background-size: 240% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: d-hero-lead-shine 3s ease-in-out infinite;
}

@keyframes d-hero-lead-shine {
  0%, 35% {
    background-position: 125% 0;
  }
  100% {
    background-position: -35% 0;
  }
}

#layout-desktop .d-hero.d-hero--fullbg .d-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

#layout-desktop .d-hero.d-hero--fullbg .d-hero__line {
  display: block;
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
}

#layout-desktop .d-hero__line--accent {
  line-height: 1.05;
}

#layout-desktop .d-hero__mark {
  display: inline-block;
  color: #c4b8ff;
}

#layout-desktop .d-hero__seek {
  position: relative;
  display: inline-block;
  margin-left: 0.12em;
  color: #ff8f5c;
}

/* “Drive Sales” stays static; only “Too!” loops */
#layout-desktop .d-hero__mark .m-seek__ch {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  color: #c4b8ff;
  -webkit-text-fill-color: #c4b8ff;
}

#layout-desktop .d-hero__seek .m-seek__ch {
  display: inline-block;
  opacity: 0;
  color: #ff8f5c;
  -webkit-text-fill-color: #ff8f5c;
  animation: d-hero-char-loop 4.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

#layout-desktop .m-seek__ch--gap {
  width: 0.28em;
}

#layout-desktop .d-hero__seek .m-seek__ch:nth-child(1) { animation-delay: 0s; }
#layout-desktop .d-hero__seek .m-seek__ch:nth-child(2) { animation-delay: 0.08s; }
#layout-desktop .d-hero__seek .m-seek__ch:nth-child(3) { animation-delay: 0.16s; }
#layout-desktop .d-hero__seek .m-seek__ch:nth-child(4) { animation-delay: 0.24s; }

@keyframes d-hero-char-loop {
  /* Wave in → hold → wave out → brief pause → repeat */
  0% {
    opacity: 0;
    transform: translateY(0.28em);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(0);
  }
  42% {
    opacity: 0;
    transform: translateY(0.2em);
  }
  100% {
    opacity: 0;
    transform: translateY(0.28em);
  }
}

#layout-desktop .m-seek__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#layout-desktop .d-hero__desc {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

#layout-desktop .d-hero.d-hero--fullbg .d-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 40px;
}

/* Hero CTA: coral accent — matches pricing enroll */
#layout-desktop .d-hero__actions .d-hero__enroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 340px;
  min-height: 76px;
  padding: 24px 52px;
  text-decoration: none;
  font-size: 19px;
  line-height: 28px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  color: var(--bg-card) !important;
  background: var(--accent) !important;
  border: 0;
  box-shadow:
    0 12px 28px -8px rgba(var(--accent-rgb), 0.45),
    0 4px 12px -4px rgba(var(--accent-rgb), 0.25);
  text-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

#layout-desktop .d-hero__actions .d-hero__enroll:hover {
  color: var(--bg-card) !important;
  background: var(--accent) !important;
  filter: brightness(1.02);
  transform: translateY(-3px);
  box-shadow:
    0 14px 32px -8px rgba(var(--accent-rgb), 0.52),
    0 6px 14px -4px rgba(var(--accent-rgb), 0.3);
}

#layout-desktop .d-hero__actions .d-hero__enroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#layout-desktop .d-hero__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

#layout-desktop .d-nav:not(.is-scrolled) .d-logo__text {
  color: #fff;
}

#layout-desktop .d-nav.is-scrolled .d-logo__text {
  color: var(--text-heading);
}

/* Nav enroll: hidden over hero; shown after hero scrolls away (.is-past-hero) */

#layout-desktop .d-main > section {
  scroll-margin-top: 88px;
}

#layout-desktop .d-stage,
#layout-desktop .d-stage.m-stage {
  background: #07070b;
}

#layout-desktop .d-nav:not(.is-scrolled):not(.is-past-hero) .nav-enroll {
  display: none;
}

#layout-desktop .d-nav.is-past-hero .nav-enroll {
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: nav-enroll-enter 0.28s ease;
}

/* -----------------------------------------------------------------------------
   Desktop m-hero — laptop breakpoints (900 / 1024 / 1280 / 1440)
   ----------------------------------------------------------------------------- */

#layout-desktop {
  --d-gutter: 24px;
  --d-shell-max: 1240px;
  --d-shell-pad: max(
    var(--d-gutter),
    calc((100% - min(var(--d-shell-max), 100%)) / 2 + var(--d-gutter))
  );
}

@media (min-width: 1024px) {
  #layout-desktop {
    --d-gutter: 32px;
  }
}

#layout-desktop .d-nav__inner {
  width: 100%;
  max-width: var(--d-shell-max);
  margin-inline: auto;
  min-height: 73px;
  padding-block: 14px;
  padding-inline: var(--d-gutter);
  box-sizing: border-box;
}

#layout-desktop .d-stage.m-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding-inline: 0;
  box-sizing: border-box;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(91, 77, 240, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(255, 90, 31, 0.08) 0%, transparent 50%),
    #07070b;
}

#layout-desktop .m-hero {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
  min-height: 100dvh;
  height: 100dvh;
  padding: calc(73px + 12px) 0 clamp(28px, 4vh, 40px);
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 95% at 100% 88%, rgba(var(--primary-rgb), 0.14) 0%, transparent 56%),
    radial-gradient(ellipse 75% 65% at 6% 20%, rgba(139, 124, 255, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 85% 55% at 45% 108%, rgba(var(--accent-rgb), 0.16) 0%, transparent 55%),
    linear-gradient(168deg, #12101c 0%, #07070b 46%, #0b0914 100%);
}

#layout-desktop .m-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  top: -18%;
  left: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(122, 108, 248, 0.35) 0%,
    rgba(var(--primary-rgb), 0.12) 42%,
    transparent 68%
  );
  pointer-events: none;
}

#layout-desktop .m-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  bottom: -28%;
  right: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 90, 31, 0.08) 0%,
    rgba(var(--accent-rgb), 0.04) 45%,
    transparent 72%
  );
  pointer-events: none;
}

#layout-desktop .m-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: none;
}

#layout-desktop .m-hero__decor::after {
  content: none;
  display: none;
}

#layout-desktop .m-hero__inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(180px, 0.88fr);
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  max-width: var(--d-shell-max);
  min-height: 100%;
  margin-inline: auto;
  padding-inline: var(--d-gutter);
  padding-block: 0;
  box-sizing: border-box;
  pointer-events: none;
}

/* Match mobile hero: open type on dark scene (no glass card) */
#layout-desktop .m-hero__content {
  position: relative;
  z-index: 3;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  width: 100%;
  max-width: min(440px, 100%);
  margin: 0;
  padding: 0 0 0 14px;
  pointer-events: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#layout-desktop .m-hero__content::before {
  content: none;
  display: none;
}

#layout-desktop .m-hero__content::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.35em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hero-stripe-start) 0%, var(--hero-stripe-end) 100%);
  opacity: 0.9;
  pointer-events: none;
}

#layout-desktop .m-hero__content .m-hero__title {
  margin: 0;
  padding-left: 0;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

#layout-desktop .m-hero__lead {
  margin: 0 0 4px;
  padding-left: 0;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #9a9aa4;
  -webkit-text-fill-color: #9a9aa4;
}

#layout-desktop .m-hero__punch {
  padding-left: 0;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #fff;
  text-shadow: none;
}

#layout-desktop .m-hero__punch-top,
#layout-desktop .m-hero__punch-bottom {
  display: block;
  line-height: 1.05;
}

#layout-desktop .m-hero__mark {
  color: #8d84f6;
}

#layout-desktop .m-hero__mark::after {
  display: none;
  content: none;
}

#layout-desktop .m-hero__mark .m-seek__ch {
  color: #8d84f6;
  -webkit-text-fill-color: #8d84f6;
}

#layout-desktop .m-hero__cta {
  width: 100%;
  max-width: min(360px, 100%);
  margin-top: 14px;
  margin-left: 0;
  min-height: 60px;
  padding: 16px 24px;
  border-radius: 8px;
  box-sizing: border-box;
}

#layout-desktop .m-hero__photo {
  position: absolute;
  z-index: 3;
  top: auto;
  bottom: 0;
  left: auto;
  right: var(--d-shell-pad);
  transform: none;
  width: auto;
  max-width: none;
  height: 85vh;
  height: 85dvh;
  max-height: 85vh;
  max-height: 85dvh;
  object-fit: contain;
  object-position: right bottom;
  background-color: transparent;
  filter: none;
  box-shadow: none;
  mix-blend-mode: normal;
}

/* Square grid: full m-hero canvas (no top/radial crop on desktop) */
#layout-desktop .m-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-position: 0 0;
  background-repeat: repeat;
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 1;
}

#layout-desktop .m-hero__grid::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 18%, #000 100%);
}

#layout-desktop .m-hero__shade {
  display: none;
}

/* Narrow desktop / small laptop (~900–1023px) */
@media (min-width: 900px) and (max-width: 1023px) {
  #layout-desktop .m-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.82fr);
    gap: clamp(8px, 1.5vw, 20px);
  }

  #layout-desktop .m-hero__content {
    max-width: min(400px, 52vw);
  }

  #layout-desktop .m-hero__punch {
    font-size: clamp(28px, 3.4vw, 38px);
  }

  #layout-desktop .m-hero__cta {
    max-width: 100%;
    min-height: 52px;
  }
}

/* Standard laptop (1024px+) */
@media (min-width: 1024px) {
  #layout-desktop .m-hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.94fr);
    gap: clamp(20px, 3vw, 48px);
  }

  #layout-desktop .m-hero__content {
    max-width: min(520px, 100%);
  }

  #layout-desktop .m-hero__punch {
    font-size: clamp(38px, 3.4vw, 50px);
  }
}

/* 14–15" laptops */
@media (min-width: 1280px) {
  #layout-desktop .m-hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.9fr);
    gap: clamp(32px, 4vw, 56px);
  }

  #layout-desktop .m-hero__lead {
    font-size: clamp(15px, 1vw, 18px);
  }

  #layout-desktop .m-hero__punch {
    font-size: clamp(42px, 3vw, 54px);
  }

  #layout-desktop .m-hero__cta {
    min-height: 56px;
    font-size: 17px;
  }
}

/* Large desktop / external monitor */
@media (min-width: 1440px) {
  #layout-desktop .m-hero {
    padding-bottom: clamp(36px, 5vh, 52px);
  }

  #layout-desktop .m-hero__punch {
    font-size: clamp(46px, 2.8vw, 58px);
  }
}

/* Short laptop displays (768px tall, zoomed UI, etc.) */
@media (min-width: 900px) and (max-height: 720px) {
  #layout-desktop .m-hero {
    padding-top: 64px;
    padding-bottom: 20px;
  }

  #layout-desktop .m-hero__punch {
    font-size: clamp(30px, 3.2vw, 38px);
  }

  #layout-desktop .m-hero__cta {
    min-height: 52px;
    padding-block: 14px;
  }
}

@media (max-width: 900px) {
  #layout-desktop .d-hero.d-hero--fullbg {
    min-height: 0;
  }

  #layout-desktop .d-hero__container {
    padding: 36px 24px 56px;
    align-items: flex-end;
  }

  #layout-desktop .d-hero__bg {
    background-position: 70% center;
  }

  #layout-desktop .d-hero__main {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #layout-desktop .d-hero.d-hero--fullbg .d-hero__lead::after {
    animation: none;
    content: none;
  }

  #layout-desktop .d-hero__seek .m-seek__ch {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* -----------------------------------------------------------------------------
   Mobile hero — same gradient language as desktop
   ----------------------------------------------------------------------------- */

#layout-mobile .m-stage {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(91, 77, 240, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(255, 90, 31, 0.08) 0%, transparent 50%),
    #07070b;
}

#layout-mobile .m-hero {
  background:
    radial-gradient(ellipse 78% 92% at 92% 82%, rgba(var(--primary-rgb), 0.14) 0%, transparent 56%),
    radial-gradient(ellipse 80% 70% at 8% 18%, rgba(139, 124, 255, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 90% 58% at 50% 108%, rgba(var(--accent-rgb), 0.16) 0%, transparent 55%),
    linear-gradient(168deg, #12101c 0%, #07070b 46%, #0b0914 100%);
}

#layout-mobile .m-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(78vw, 400px);
  height: min(78vw, 400px);
  top: -14%;
  left: -22%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(122, 108, 248, 0.35) 0%,
    rgba(var(--primary-rgb), 0.12) 42%,
    transparent 68%
  );
  pointer-events: none;
}

#layout-mobile .m-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(70vw, 340px);
  height: min(70vw, 340px);
  bottom: -18%;
  right: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 90, 31, 0.08) 0%,
    rgba(var(--accent-rgb), 0.04) 45%,
    transparent 72%
  );
  pointer-events: none;
}

#layout-mobile .m-hero__decor {
  background:
    linear-gradient(
      180deg,
      rgba(var(--primary-rgb), 0.08) 0%,
      transparent 42%,
      rgba(var(--accent-rgb), 0.05) 88%,
      transparent 100%
    );
}

#layout-mobile .m-hero__grid {
  -webkit-mask-image: none;
  mask-image: none;
  background-position: 0 0;
  opacity: 0.92;
}

#layout-mobile .m-hero__grid::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  opacity: 0.4;
}

/* Desktop React hero mount (replaces .m-hero) */
#layout-desktop .d-stage.d-stage--react {
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: 0;
  background: #050507;
}

#layout-desktop .desktop-hero-mount {
  width: 100%;
  min-height: 100dvh;
}

#layout-desktop .d-stage.d-stage--react + .d-main {
  padding-top: 0;
}
