/* The landing page uses static, feathered smoke layers behind its content. */
.purple-homepage:has(#landing:not([hidden])) {
  --midnight: #080509;
  --charcoal: #141016;
  --deep-purple: #260b31;
  --violet: #bf54ff;
  --magenta: #f445e6;
  --light-pink: #ffe3fa;
  --brand-cyan: var(--light-pink);
  --brand-stroke: #a757ba;
  color: #fff;
  background: var(--midnight);
}

.purple-homepage #landing:not([hidden]) {
  display: flow-root;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 14% 26%, #30163966, transparent 42%),
    radial-gradient(ellipse at 92% 57%, #28133577, transparent 39%);
}

/* Off-center ellipses form overlapping arcs. The masks fade each arc before
   it reaches the edge of its box, leaving the center clear for text. */
.purple-homepage #landing::before,
.purple-homepage #landing::after,
.purple-homepage .landing-hero::before,
.purple-homepage .landing-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  aspect-ratio: auto;
  background:
    radial-gradient(ellipse 71% 43% at 36% 12%, transparent 64%, #b36bd521 75%, #db9dee48 81%, #9b55bd20 88%, transparent 100%),
    radial-gradient(ellipse 58% 58% at 42% 4%, transparent 53%, #a45ac610 64%, #b770df4d 76%, #dab0ee22 85%, transparent 99%),
    radial-gradient(ellipse 59% 69% at 56% 3%, transparent 42%, #61287622 54%, #ac61d14d 68%, #d891f224 78%, transparent 94%),
    radial-gradient(ellipse 73% 57% at 59% 21%, transparent 42%, #702d8a45 69%, #9854ba29 81%, transparent 100%);
  mask-image: radial-gradient(ellipse 49% 49% at 50% 49%, #000 25%, #0009 56%, transparent 100%);
  filter: blur(6px);
}

.purple-homepage #landing::before {
  inset: 23% auto auto -18%;
  width: min(51vw, 740px);
  height: 460px;
  transform: rotate(37deg);
}
.purple-homepage #landing::after {
  inset: auto -17% -13% auto;
  width: min(59vw, 850px);
  height: 540px;
  transform: rotate(-33deg);
}
.purple-homepage .landing-hero::before {
  inset: -26% auto auto -20%;
  width: 68%;
  height: 113%;
  transform: rotate(53deg);
}
.purple-homepage .landing-hero::after {
  inset: auto -13% -31% auto;
  width: 90%;
  height: 80%;
  transform: rotate(-14deg);
}

/* Keep the richer glows on large surfaces and smaller wisps near the
   edges of compact layouts, where a dark field helps the copy stay legible. */
@media (621px <= width <= 850px) {
  .purple-homepage #landing::before { inset: 34% auto auto -28%; width: 76%; height: 420px; }
  .purple-homepage #landing::after { inset: auto -27% -7% auto; width: 80%; height: 440px; }
  .purple-homepage .landing-hero::before { inset: -17% auto auto -25%; width: 81%; height: 75%; }
  .purple-homepage .landing-hero::after { inset: auto -26% -15% auto; width: 100%; height: 62%; }
}
@media (max-width: 620px) {
  .purple-homepage #landing::before { inset: 43% auto auto -58%; width: 123%; height: 300px; }
  .purple-homepage #landing::after { inset: auto -52% 1% auto; width: 117%; height: 260px; }
  .purple-homepage .landing-hero::before { inset: -12% auto auto -44%; width: 121%; height: 53%; }
  .purple-homepage .landing-hero::after { inset: auto -47% -7% auto; width: 134%; height: 46%; }
}

.purple-homepage:has(#landing:not([hidden])) .site-header::after {
  background: linear-gradient(90deg, transparent, var(--magenta), var(--light-pink), var(--violet), transparent);
  box-shadow: 0 0 10px var(--violet);
}
.purple-homepage:has(#landing:not([hidden])) .site-header nav .active {
  border-color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
}
.purple-homepage:has(#landing:not([hidden])) :focus-visible {
  outline: 2px solid var(--light-pink);
  outline-offset: 3px;
}
.purple-homepage:has(#landing:not([hidden])) .portal-entry {
  border-color: var(--violet);
  box-shadow: 0 0 8px #bf54ff90;
}
.purple-homepage:has(#landing:not([hidden])) .portal-entry:first-of-type { border-color: var(--magenta); }
.purple-homepage:has(#landing:not([hidden])) .mobile-nav-toggle { border-color: var(--violet); }
.purple-homepage:has(#landing:not([hidden])) .mobile-nav-toggle span {
  border-color: var(--light-pink);
  background: linear-gradient(var(--light-pink), var(--light-pink)) left center / 100% 1px no-repeat;
}

.purple-homepage .landing-services article > div::before,
.purple-homepage .landing-services article > div::after,
.purple-homepage .landing-footer li::before,
.purple-homepage .landing-closing h2::before { content: none; }

.purple-homepage .landing-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(20px, 2.2cqw, 32px) 18px clamp(34px, 3.3cqw, 48px);
  gap: clamp(12px, 3.5cqw, 50px);
}
.purple-homepage .hero-logo { width: min(94%, 435px); }
.purple-homepage .landing-eyebrow { white-space: normal; }
.purple-homepage .landing-intro h1 { font-size: clamp(34px, 4.2cqw, 66px); }
.purple-homepage .landing-intro h1 span {
  color: var(--magenta);
  font-size: clamp(44px, 4.6cqw, 72px);
  text-shadow: 0 0 9px #f445e66b;
}
.purple-homepage .landing-tags { font-size: clamp(11px, 1.16cqw, 17px); }
.purple-homepage .landing-tags span { color: var(--magenta); }
.purple-homepage .landing-actions { gap: 12px; margin: 18px 0 0; }
.purple-homepage .landing-actions a {
  --glow: var(--violet);
  width: min(100%, 470px);
  min-height: 46px;
  border: 2px solid var(--light-pink);
  font-size: clamp(20px, 1.85cqw, 28px);
  background: #09050dee;
}
.purple-homepage .landing-actions a:last-child { --glow: var(--magenta); }
.purple-homepage .landing-actions a:hover { background: var(--deep-purple); }

.purple-homepage .landing-section { max-width: 1120px; margin-inline: auto; padding: 0 0 22px; }
.purple-homepage .landing-section-title { font-size: clamp(25px, 3cqw, 46px); margin-bottom: 18px; }
.purple-homepage .landing-services { filter: drop-shadow(0 0 9px #e64ae980); }
.purple-homepage .landing-services article {
  min-height: 0;
  padding: 3px;
  background: linear-gradient(128deg, #fff2fe, #d45cff 28%, #ce1dd6 62%, #fff2fe);
}
.purple-homepage .landing-services article > div {
  min-height: 100%;
  padding: 16px 14px 18px;
  background: radial-gradient(ellipse at 95% 100%, #3a1046, transparent 58%), #100912;
}
.purple-homepage .landing-services article > div > svg,
.purple-homepage .landing-footer li svg {
  display: block;
  position: static;
  width: 62px;
  height: 42px;
  flex: none;
  margin: 0 auto 8px;
  color: var(--light-pink);
  stroke: currentColor;
  fill: none;
  filter: drop-shadow(0 0 5px var(--magenta));
}
.purple-homepage .landing-services h3 { max-width: none; font-size: clamp(22px, 2.05cqw, 32px); }
.purple-homepage .landing-services p { font-size: clamp(16px, 1.35cqw, 20px); }
.purple-homepage .landing-services .service-divider { margin-block: 12px; }
.purple-homepage .landing-footer { background: transparent; }
.purple-homepage .landing-footer ul { padding-bottom: 0; }
.purple-homepage .landing-footer li { font-size: clamp(16px, 1.65cqw, 26px); }
.purple-homepage .landing-footer li svg { width: 52px; height: 36px; margin-bottom: 0; }

.purple-homepage .landing-closing {
  max-width: 1160px;
  margin: 4px auto clamp(28px, 4cqw, 58px);
  width: 92%;
  padding: 2px;
  border-radius: 28px;
  clip-path: none;
  background: linear-gradient(120deg, var(--light-pink), var(--magenta), var(--violet), var(--light-pink));
  box-shadow: 0 0 17px #f445e690;
}
.purple-homepage .landing-closing-inner {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 26px;
  clip-path: none;
  padding: 14px 22px 8px;
  background: radial-gradient(ellipse at 95% 100%, #331043, transparent 66%), #09050dee;
}
.purple-homepage .landing-closing h2 {
  min-height: 0;
  padding: 12px 0 0;
  font: 700 clamp(27px, 3.2cqw, 49px)/1 var(--display-serif);
}
.purple-homepage .landing-closing-copy { border: 0; padding: 0 0 14px; gap: 12px; }
.purple-homepage .landing-closing-copy p { font-size: clamp(16px, 1.55cqw, 23px); }
.purple-homepage .landing-closing-copy a {
  min-height: 46px;
  width: min(100%, 330px);
  color: #eee2ed;
  border-color: var(--light-pink);
  background: var(--charcoal);
  box-shadow: 0 0 9px var(--violet);
  font-size: clamp(23px, 2.2cqw, 33px);
  opacity: 1;
}

@media (max-width: 850px) {
  .purple-homepage:has(#landing:not([hidden])) .portal-entry { box-shadow: none; }
  .purple-homepage .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .purple-homepage .hero-logo { width: min(86%, 360px); }
  .purple-homepage .landing-actions a { width: min(100%, 370px); }
}
@media (max-width: 620px) {
  .purple-homepage .landing-section { padding-bottom: 28px; }
  .purple-homepage .landing-closing-inner { padding: 14px; }
  .purple-homepage .landing-closing h2 { padding-top: 0; }
  .purple-homepage .landing-closing-copy { padding-bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .purple-homepage:has(#landing:not([hidden])) {
    scroll-behavior: auto;
  }
  .purple-homepage:has(#landing:not([hidden])) :is(.site-header, #landing) * {
    animation: none;
    transition: none;
  }
}
