/* ===========================================================================
   Pillow Client — page-level layout: hero, page heads, splits, CTA
   =========================================================================== */

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(52px, 8vw, 104px) clamp(60px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none; }

/* --- hero photograph -----------------------------------------------------
   The screenshot is the only non-generated artwork on the site, so it carries
   the atmosphere. The scrim is doing real work: heavy on the left where the
   copy sits, lighter over the sun, and it fades into the page top and bottom
   so the band has no hard edge. */
.hero__photo {
  position: absolute;
  inset: 0;
  background: url('/hero-1920.jpg') center / cover no-repeat;
  opacity: 1;
  filter: saturate(1.08) contrast(1.02);
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44% 58% at 18% 62%, rgba(139, 124, 246, 0.24), transparent 72%),
    linear-gradient(100deg,
      var(--bg) 0%,
      rgba(8, 8, 11, 0.9) 18%,
      rgba(8, 8, 11, 0.62) 40%,
      rgba(8, 8, 11, 0.3) 62%,
      rgba(8, 8, 11, 0.1) 100%),
    linear-gradient(180deg,
      rgba(8, 8, 11, 0.58) 0%,
      rgba(8, 8, 11, 0.12) 20%,
      rgba(8, 8, 11, 0.04) 52%,
      rgba(8, 8, 11, 0.86) 92%,
      var(--bg) 100%);
}
@media (max-width: 1100px) {
  .hero__photo { background-image: url('/hero-960.jpg'); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.orb--violet {
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  left: 42%; top: -8%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.5), transparent 66%);
  opacity: 0.38;
}
.orb--lilac {
  width: 32vw; height: 32vw;
  max-width: 460px; max-height: 460px;
  left: -6%; top: 34%;
  background: radial-gradient(circle, rgba(201, 188, 255, 0.26), transparent 68%);
  opacity: 0.34;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 74px);
  align-items: center;
}
.hero__title {
  margin-top: 24px;
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero__title-line { display: block; }
.hero__title-line--soft {
  background: linear-gradient(96deg, var(--violet-soft) 0%, var(--violet) 46%, #9d8bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.hero__lead {
  margin-top: 26px;
  max-width: 58ch;
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--text-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note {
  margin-top: 24px;
  font-size: var(--fs-micro);
  color: var(--text-3);
}
.hero__art {
  position: relative;
  transform: perspective(1600px) rotateY(-7deg) rotateX(2.5deg);
  transform-origin: 60% 50%;
  transition: transform var(--dur-slow) var(--ease);
}
.hero__art:hover { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 54px; }
  .hero__art { transform: none; }
  .hero__title { margin-top: 20px; }
}

/* --- page head ----------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(48px, 7vw, 90px) clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 12% -20%, rgba(139, 124, 246, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
}
.page-head__title {
  margin-top: 22px;
  font-size: var(--fs-h1);
  max-width: 22ch;
}
.page-head__lede {
  margin-top: 20px;
  max-width: 68ch;
  font-size: var(--fs-lead);
  color: var(--text-2);
  line-height: 1.68;
}
.page-head--error { background: radial-gradient(80% 120% at 12% -20%, rgba(255, 140, 140, 0.14), transparent 60%), linear-gradient(180deg, var(--bg-1), var(--bg)); }
.page-head--error .hero__actions { margin-top: 30px; }

/* --- split --------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.split--art { align-items: center; }
.split__copy .section__title { margin-bottom: 4px; }
.split__aside { position: sticky; top: calc(var(--nav-h) + 20px); }
.split__art { position: relative; }

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split__aside { position: static; }
}

/* --- CTA ----------------------------------------------------------------- */
.cta {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta__glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 120%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 100%, var(--glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.55;
}
.cta__inner { display: grid; justify-items: center; }
.cta__title {
  margin-top: 22px;
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  letter-spacing: -0.04em;
}
.cta__body {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--text-2);
  font-size: var(--fs-lead);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
