/* =========================================================
   AVOLVE Media — FINAL CTA + FOOTER (one continuous space scene)

   Every rule here is scoped under .avolve-outro and every class
   starts with avolve-outro-, so nothing else on the site changes.

   Image: assets/outro/scene.webp — text-free planet, cyan horizon
   and seated astronaut (1536 x 1024, transparent sky).
   Stars:  assets/outro/stars.svg
   ========================================================= */

.avolve-outro {
  --ao-ink: #000001;
  --ao-cyan: #00f0ff;
  --ao-warm: #ece4dc;
  --ao-white: #ffffff;
  --ao-soft: rgba(236, 228, 220, .82);     /* ~13:1 on near-black */
  --ao-muted: rgba(236, 228, 220, .64);    /* ~7:1 */
  --ao-scene-top: 0px;                     /* pushes the planet down on narrower screens */

  position: relative;
  isolation: isolate;
  container-type: inline-size;
  margin: 0 var(--frame-gap) var(--frame-gap);
  border-radius: var(--radius-frame);
  overflow: hidden;
  overflow: clip;
  background: var(--ao-ink);
  color: var(--ao-warm);
}
/* Fine grain over the whole scene */
.avolve-outro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .89 0 0 0 0 .86 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:where(.avolve-outro) :is(h2, p, ul) { margin: 0; }
:where(.avolve-outro) ul { padding: 0; list-style: none; }

/* ---------- Decorative layers (never block clicks or focus) ---------- */
.avolve-outro-sky,
.avolve-outro-scene { pointer-events: none; user-select: none; }

.avolve-outro-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 40% at 30% 18%, rgba(0, 240, 255, .035), transparent 70%),
    url("../outro/stars.svg") 0 0 / 640px 640px repeat;
}
.avolve-outro-twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ao-white);
  box-shadow: 0 0 6px 1px rgba(191, 249, 255, .55);
  opacity: .2;
  animation: avolve-outro-twinkle var(--t, 7s) ease-in-out var(--d, 0s) infinite;
}
@keyframes avolve-outro-twinkle {
  0%, 100% { opacity: .15; transform: scale(.8); }
  50%      { opacity: .85; transform: scale(1); }
}

.avolve-outro-scene {
  position: absolute;
  left: 0; right: 0;
  top: var(--ao-scene-top);
  z-index: -1;
}
.avolve-outro-scene__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
}
.avolve-outro-scene__img,
.avolve-outro-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.avolve-outro-scene__img { object-fit: cover; }
/* darken the rock texture further where the footer text sits */
.avolve-outro-scene__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(0, 0, 1, .45) 80%, rgba(0, 0, 1, .82) 100%);
}

/* Slow pulse on the cyan horizon */
.avolve-outro-glow { overflow: visible; mix-blend-mode: screen; }
.avolve-outro-glow__haze {
  fill: none;
  stroke: var(--ao-cyan);
  stroke-width: 9;
  stroke-linecap: round;
  opacity: .32;
  animation: avolve-outro-pulse 7s ease-in-out infinite;
}
@keyframes avolve-outro-pulse {
  0%, 100% { opacity: .22; }
  50%      { opacity: .58; }
}

/* ---------- CTA (upper area) ---------- */
.avolve-outro-cta {
  position: relative;
  z-index: 2;
  min-height: calc(47.5cqw + var(--ao-scene-top));
  padding: clamp(56px, 7cqw, 112px) var(--pad-x) 40px;
}
.avolve-outro-title {
  max-width: 64cqw;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.1cqw, 6.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ao-warm);
}
.avolve-outro-title__line { display: block; }
.avolve-outro-title em { font-style: italic; }
.avolve-outro-copy {
  max-width: 40em;
  margin-top: clamp(16px, 1.8cqw, 28px);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.42cqw, 1.3rem);
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--ao-soft);
}
.avolve-outro-btn {
  margin-top: clamp(24px, 2.6cqw, 40px);
  min-height: 54px;
  padding: 0 30px;
  background: var(--ao-cyan);
  color: var(--ao-ink);
  box-shadow: 0 6px 22px -10px rgba(0, 240, 255, .8);
}
.avolve-outro-btn:hover {
  background: #33f3ff;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, .4), 0 10px 34px -6px rgba(0, 240, 255, .7);
}
.avolve-outro-btn:focus-visible {
  outline: 2px solid var(--ao-white);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(0, 240, 255, .28);
}

/* ---------- Footer (lower area, over the dark planet surface) ---------- */
.avolve-outro-footer {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x);
}
.avolve-outro-cols {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr .9fr;
  gap: 32px clamp(24px, 3cqw, 56px);
  padding: clamp(20px, 2cqw, 32px) 0 clamp(44px, 4.4cqw, 68px);
}

.avolve-outro-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ao-warm);
}
.avolve-outro-logo__img { display: block; width: clamp(200px, 17cqw, 252px); height: auto; }
.avolve-outro-tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.9cqw, 1.95rem);
  line-height: 1.15;
  color: var(--ao-warm);
}
.avolve-outro-support {
  margin-top: 8px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ao-muted);
}

.avolve-outro-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.9cqw, 1.95rem);
  line-height: 1.15;
  color: var(--ao-warm);
}
.avolve-outro-links { margin-top: 14px; display: grid; gap: 4px; }
.avolve-outro-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-family: var(--sans);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ao-soft);
  text-underline-offset: 5px;
  transition: color .25s var(--ease);
}
.avolve-outro-links a:hover { color: var(--ao-white); text-decoration: underline; text-decoration-color: rgba(0, 240, 255, .7); }
.avolve-outro-ext { width: 13px; height: 13px; }

/* "Find Us on Socials": restrained outlined pill, secondary to the cyan CTA */
.avolve-outro-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 20px;
  border: 1px solid rgba(236, 228, 220, .38);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  text-decoration: none;
  color: var(--ao-soft);
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.avolve-outro-social:hover { color: var(--ao-white); border-color: rgba(0, 240, 255, .7); background: rgba(0, 240, 255, .06); }
.avolve-outro .avolve-outro-social { white-space: nowrap; }
.avolve-outro .avolve-outro-col a.avolve-outro-social:focus-visible { border-radius: 999px; }   /* pill-shaped focus ring */

.avolve-outro-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(236, 228, 220, .2);
}
.avolve-outro-copyright { font-size: .92rem; color: var(--ao-muted); }
.avolve-outro-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  font-size: .92rem;
  text-decoration: none;
  color: var(--ao-soft);
  transition: color .25s var(--ease);
}
.avolve-outro-top__arrow { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.avolve-outro-top:hover { color: var(--ao-white); }
.avolve-outro-top:hover .avolve-outro-top__arrow { transform: translateY(-2px); }

.avolve-outro a:not(.avolve-outro-btn):focus-visible {
  outline: 2px solid var(--ao-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Narrower desktops / tablets: give the copy room above the horizon ---------- */
@media (max-width: 1199px) and (min-width: 760px) {
  .avolve-outro { --ao-scene-top: clamp(0px, (1200px - 100cqw) * .16, 64px); }
  .avolve-outro-cols { grid-template-columns: 1.35fr 1fr 1fr; }
}

/* ---------- Mobile: copy first, then the astronaut and horizon, then the footer ---------- */
@media (max-width: 759px) {
  .avolve-outro-cta { min-height: 0; padding: 56px 20px 8px; }
  .avolve-outro-title { max-width: none; font-size: clamp(2.5rem, 11.5cqw, 3.6rem); }
  .avolve-outro-br { display: none; }
  .avolve-outro-btn { width: 100%; max-width: 320px; }

  /* the scene becomes its own block, cropped to the astronaut side of the image */
  .avolve-outro-scene {
    position: relative;
    top: auto;
    height: 63cqw;
    overflow: hidden;
    margin-top: 2cqw;
  }
  .avolve-outro-scene__inner {
    position: absolute;
    width: 157.4cqw;        /* shows the image from x 560 to 1536 */
    left: -57.4cqw;
    top: -22.5cqw;          /* starts just above the astronaut's helmet */
  }
  .avolve-outro-scene::after {          /* blend the crop into the footer */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30%;
    background: linear-gradient(180deg, transparent, var(--ao-ink));
  }

  .avolve-outro-footer { padding: 0 20px; margin-top: 4px; }
  .avolve-outro-cols { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-top: 0; }
  .avolve-outro-col--brand,
  .avolve-outro-col--connect { grid-column: 1 / -1; }
  .avolve-outro-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 340px) {
  .avolve-outro-cols { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion: no decorative animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .avolve-outro-twinkle, .avolve-outro-glow__haze { animation: none; }
  .avolve-outro-top__arrow, .avolve-outro-links a, .avolve-outro-social { transition: none; }
}
