/* Join CTA — site-wide closing call to action (chosen design: proposal 1).
   Static composition, no pointer tracking: a bright iridescent halo sits
   around the button, and a second, much larger and more diffuse halo rises
   from the button toward the title. Shared vocabulary only: site tokens,
   Issey uppercase, .btn pills, the arpy iridescent palette. */

.join-cta {
  position: relative;
  padding: 160px 0;
  text-align: center;
  /* `clip` + a generous margin lets the halo bleed above and below the
     section (no visible box edge) while never creating a scrollbar.
     `hidden` is only the fallback for browsers without overflow-clip-margin. */
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 520px;
}
.jc-box { position: relative; }
.jc-content { position: relative; z-index: 2; }
.join-cta h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 70px;
  line-height: 67.2px;
  letter-spacing: -2.1px;
  text-transform: uppercase;
  color: var(--title);
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}
.join-cta .jc-sub {
  margin: 24px auto 0;
  max-width: 480px;
}
.join-cta .jc-btn { margin-top: 44px; display: inline-flex; }

/* halo 1 — tight and bright, wrapped around the button */
.jc-halo--btn {
  position: absolute;
  left: 50%;
  bottom: -300px;
  width: 680px;
  height: 680px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 42% 46%, rgba(205, 147, 255, 0.38), transparent 52%),
    radial-gradient(circle at 60% 44%, rgba(112, 226, 255, 0.30), transparent 52%),
    radial-gradient(circle at 50% 58%, rgba(255, 117, 195, 0.26), transparent 56%);
  filter: blur(56px);
}
/* halo 2 — an inverted pyramid of light, very faint: narrow where it wraps
   the button, widening as it rises to embrace the title. Stacked ellipses
   whose widths grow upward draw the silhouette (soft edges, huge radius),
   and a turbulence-grain layer sits on top, masked to the same shape. */
.jc-halo--far {
  position: absolute;
  left: 50%;
  bottom: -140px;
  width: 980px;
  height: 860px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  --jc-far-shape:
    radial-gradient(ellipse 240px 200px at 50% 96%, rgba(205, 147, 255, 0.055), transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 68%, rgba(112, 226, 255, 0.032), transparent 72%),
    radial-gradient(ellipse 580px 360px at 50% 40%, rgba(255, 117, 195, 0.026), transparent 74%),
    radial-gradient(ellipse 720px 420px at 50% 12%, rgba(205, 147, 255, 0.02), transparent 76%);
  background: var(--jc-far-shape);
  filter: blur(70px);
}
/* grain: tiled SVG turbulence, confined to the halo silhouette by a mask
   built from the same ellipse stack */
.jc-halo--far::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.4;
  -webkit-mask-image:
    radial-gradient(ellipse 240px 200px at 50% 96%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 68%, rgba(255,255,255,0.6), transparent 72%),
    radial-gradient(ellipse 580px 360px at 50% 40%, rgba(255,255,255,0.5), transparent 74%),
    radial-gradient(ellipse 720px 420px at 50% 12%, rgba(255,255,255,0.4), transparent 76%);
  mask-image:
    radial-gradient(ellipse 240px 200px at 50% 96%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 68%, rgba(255,255,255,0.6), transparent 72%),
    radial-gradient(ellipse 580px 360px at 50% 40%, rgba(255,255,255,0.5), transparent 74%),
    radial-gradient(ellipse 720px 420px at 50% 12%, rgba(255,255,255,0.4), transparent 76%);
}

/* the halo bleeds outside the section; whatever follows it (footer,
   sources) must stack above so nothing glows over foreground cards */
.join-cta { z-index: 0; }
.site-footer, .cmp-sources { position: relative; z-index: 2; }

@media (max-width: 1199.98px) {
  .join-cta h2 { font-size: 56px; line-height: 53.76px; letter-spacing: -1.68px; }
}
@media (max-width: 809.98px) {
  .join-cta { padding: 104px 0; }
  .join-cta h2 { font-size: 38px; line-height: 38px; letter-spacing: -1.14px; }
  .jc-halo--btn { width: 440px; height: 440px; bottom: -190px; filter: blur(44px); }
  .jc-halo--far { bottom: -100px; transform: translateX(-50%) scale(0.62); transform-origin: 50% 100%; filter: blur(56px); }
}
