/* Meet Luna — animisha.dev/luna — fae vine sigil aesthetic */

body.meet-luna-page {
  --rose: #fb7185;
  --violet: #c084fc;
  --cyan: #7dd3fc;
  --gold: #fde047;
  --ember: #f97316;
  --vine: #4ade80;
  --sanguine: #7f1d1d;
  --sanguine-deep: #450a0a;
  --moonsilver: #c9d4e8;
  --bloodmoon: #b91c1c;
  --ink: #f8f0e8;
  --muted: rgba(248, 240, 232, 0.82);
  background: #050308;
  color: var(--ink);
  padding: 3.5rem clamp(3rem, 8vw, 5.5rem) 2rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

html:has(body.meet-luna-page) {
  background: #050308;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.meet-luna-page {
  overflow-x: hidden;
}

/* ── Background layers (canvas → grove → light bleed → veil → sparkles) ── */
.meet-luna-canvas-wrap,
.meet-luna-grove-wrap,
.meet-luna-grove-light-bleed,
.meet-luna-veil,
.meet-luna-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.meet-luna-canvas-wrap { z-index: 0; opacity: 0.42; }
.meet-luna-grove-wrap { z-index: 1; background-color: #050308; }
.meet-luna-grove-light-bleed { z-index: 2; opacity: 0.42; }
.meet-luna-veil { z-index: 3; }
.meet-luna-sparkles { z-index: 3; }

#meet-luna-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Grove mural — upper + base paintings stacked (natural aspect, no stretch) */
.meet-luna-grove-wrap {
  background-color: #050308;
}

.meet-luna-grove-stack {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  will-change: transform;
}

.meet-luna-grove-painting {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.meet-luna-grove-painting--upper {
  margin: 0;
}

.meet-luna-grove-painting--main {
  margin: 0;
}

.meet-luna-grove-moon-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 14vmin at 72% 18%, rgba(220, 38, 38, 0.18), transparent 70%),
    radial-gradient(circle 12vmin at 58% 14%, rgba(248, 250, 252, 0.14), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: luna-grove-moon-pulse 18s ease-in-out infinite alternate;
}

/* Aurora bleed — subtle accent only, not a second background */
.meet-luna-grove-light-bleed {
  background:
    radial-gradient(circle 32vmin at 25% 55%, rgba(251, 113, 133, 0.18), transparent 68%),
    radial-gradient(circle 28vmin at 78% 35%, rgba(192, 132, 252, 0.16), transparent 65%),
    radial-gradient(circle 24vmin at 50% 80%, rgba(253, 224, 71, 0.12), transparent 62%);
  mix-blend-mode: screen;
  animation: luna-light-bleed-pulse 14s ease-in-out infinite alternate;
}

@keyframes luna-light-bleed-pulse {
  0% { opacity: 0.25; filter: blur(0); }
  50% { opacity: 0.4; filter: blur(0); }
  100% { opacity: 0.3; filter: blur(0); }
}

@keyframes luna-grove-moon-pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.65; }
}

.meet-luna-veil {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(251, 113, 133, 0.1), transparent 58%),
    radial-gradient(ellipse 50% 45% at 95% 40%, rgba(192, 132, 252, 0.06), transparent 52%),
    linear-gradient(180deg, rgba(5, 3, 8, 0.02) 0%, rgba(5, 3, 8, 0.12) 75%, rgba(5, 3, 8, 0.35) 100%);
}

.meet-luna-sparkles {
  opacity: 0.62;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(253, 224, 71, 0.95), transparent),
    radial-gradient(1.5px 1.5px at 30% 65%, rgba(251, 113, 133, 0.9), transparent),
    radial-gradient(2px 2px at 70% 30%, rgba(125, 211, 252, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 85% 80%, rgba(192, 132, 252, 0.9), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 247, 237, 0.6), transparent),
    radial-gradient(1px 1px at 22% 88%, rgba(74, 222, 128, 0.7), transparent);
  background-size: 100% 100%;
  animation: luna-sparkle-drift 24s ease-in-out infinite alternate;
}

@keyframes luna-sparkle-drift {
  0% { transform: translateY(0) scale(1); opacity: 0.5; }
  100% { transform: translateY(-14px) scale(1.03); opacity: 0.78; }
}

/* ── Screen-edge temple columns (fixed to viewport edges) ── */
.luna-edge-columns {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.luna-edge-column {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(44px, 5.5vw, 80px);
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.14) 0px,
      rgba(0, 0, 0, 0.14) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(
      90deg,
      rgba(12, 4, 8, 0.55) 0%,
      rgba(45, 14, 20, 0.72) 40%,
      rgba(60, 18, 26, 0.78) 100%
    );
  border: 1px solid rgba(127, 29, 29, 0.28);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.5);
}

.luna-edge-column--left {
  left: 0;
  border-right: 1px solid rgba(74, 222, 128, 0.12);
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.14) 0, rgba(0,0,0,0.14) 1px, transparent 1px, transparent 12px),
    linear-gradient(90deg, rgba(8,2,6,0.4) 0%, rgba(45,14,20,0.7) 55%, rgba(55,16,24,0.75) 100%);
}

.luna-edge-column--right {
  right: 0;
  border-left: 1px solid rgba(74, 222, 128, 0.12);
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.14) 0, rgba(0,0,0,0.14) 1px, transparent 1px, transparent 12px),
    linear-gradient(270deg, rgba(8,2,6,0.4) 0%, rgba(45,14,20,0.7) 55%, rgba(55,16,24,0.75) 100%);
}

.luna-edge-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.35), transparent);
  border-bottom: 1px solid rgba(253, 224, 71, 0.1);
}

body.meet-luna-page #page-root {
  position: relative;
  z-index: 4;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(3rem, 8vw, 5.5rem) 2rem;
}

/* ── Resume hero — moonsilver wedding script, above gallery (no box) ── */
.luna-resume-hero {
  position: relative;
  z-index: 20;
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 44rem;
  padding: 2rem clamp(1rem, 4vw, 2rem) 1.75rem;
}

.luna-resume-title {
  margin: 0;
  font-family: "Great Vibes", "Pinyon Script", "Tangerine", cursive;
  font-size: clamp(3.4rem, 12vw, 5.75rem);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: #e8edf7;
  -webkit-text-fill-color: #e8edf7;
  text-shadow:
    0 0 24px rgba(201, 212, 232, 0.85),
    0 0 48px rgba(201, 212, 232, 0.5),
    0 2px 16px rgba(0, 0, 0, 0.75);
}

.luna-resume-subtitle {
  margin: 0.5rem 0 0;
  font-family: "Cinzel", "Great Vibes", "Pinyon Script", serif;
  font-size: clamp(1.1rem, 4.5vw, 1.65rem);
  font-weight: 600;
  font-style: normal;
  color: #d4dcea;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(201, 212, 232, 0.65),
    0 2px 12px rgba(0, 0, 0, 0.7);
}

/* ── Luna temple topbar (fixed — do not override to relative) ── */
body.meet-luna-page .site-topbar.luna-temple-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(28, 6, 12, 0.72) 0%, rgba(14, 4, 10, 0.58) 100%);
  border-bottom: 1px solid rgba(127, 29, 29, 0.3);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(74, 222, 128, 0.1);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  transform: translateZ(0);
  will-change: transform;
}

.luna-topbar-logo {
  font-family: "Cinzel", serif;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--moonsilver) !important;
  text-shadow: 0 0 16px rgba(185, 28, 28, 0.35);
}

.luna-topbar-rune {
  font-family: "Pinyon Script", "Tangerine", cursive;
  font-size: 0.95rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: rgba(201, 212, 232, 0.75);
  margin-top: 0.05rem;
}

.luna-topbar-link {
  font-family: "Cinzel", serif !important;
  font-size: clamp(0.55rem, 1.5vw, 0.68rem) !important;
  letter-spacing: 0.16em !important;
  color: rgba(201, 212, 232, 0.7) !important;
  text-shadow: none !important;
}

.luna-topbar-link:hover {
  color: var(--moonsilver) !important;
  text-shadow: 0 0 12px rgba(201, 212, 232, 0.4) !important;
}

.luna-topbar-vine {
  position: absolute;
  bottom: -1px;
  width: 28%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.35), transparent);
  opacity: 0.6;
}

.luna-topbar-vine--left { left: 4%; }
.luna-topbar-vine--right { right: 4%; }

/* ── Sigil headings (no boxes) ── */
.luna-sigil-heading {
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--moonsilver);
  text-shadow:
    0 0 14px rgba(201, 212, 232, 0.35),
    0 0 24px rgba(127, 29, 29, 0.2);
  position: relative;
}

.luna-sigil-heading--gold {
  color: var(--moonsilver);
  text-shadow:
    0 0 16px rgba(201, 212, 232, 0.4),
    0 0 28px rgba(253, 224, 71, 0.15);
}

/* ── Fae scroll sections — soft oval translucent panels ── */
.luna-fae-scroll {
  position: relative;
  margin: 2.75rem auto;
  max-width: 42rem;
  padding: 2.75rem clamp(2.35rem, 6.5vw, 3.5rem) 3rem;
  background:
    radial-gradient(
      ellipse 94% 92% at 50% 48%,
      rgba(18, 6, 12, 0.68) 0%,
      rgba(14, 5, 12, 0.74) 55%,
      rgba(10, 3, 8, 0.82) 100%
    );
  border: 1px solid rgba(127, 29, 29, 0.22);
  border-radius: 2.75rem;
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(201, 212, 232, 0.1),
    inset 0 0 56px rgba(69, 10, 10, 0.14);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  overflow: visible;
}

.luna-fae-scroll--looking {
  max-width: 38rem;
  padding-bottom: 1.5rem;
}

.luna-fae-breath {
  min-height: clamp(14rem, 38vh, 28rem);
  pointer-events: none;
}

.luna-fae-scroll--about {
  max-width: 44rem;
  padding-bottom: 3.75rem;
}

.luna-fae-scroll--love-xp {
  max-width: 44rem;
  padding-bottom: 3.5rem;
}

.luna-fae-scroll--love-xp .luna-fae-xp-list li:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.luna-fae-scroll::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 88% 82% at 50% 45%,
      rgba(201, 212, 232, 0.04) 0%,
      transparent 70%
    ),
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 18px,
      rgba(201, 212, 232, 0.012) 18px,
      rgba(201, 212, 232, 0.012) 19px
    );
  opacity: 0.65;
}

.luna-fae-prose p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 2.8vw, 1.28rem);
  line-height: 1.8;
  color: var(--moonsilver);
  margin: 0 0 1.1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.luna-fae-prose p:last-child {
  margin-bottom: 0;
}

.luna-fae-prose--centered p {
  text-align: center;
  font-size: clamp(1.14rem, 3vw, 1.32rem);
  color: var(--moonsilver);
}

.luna-fae-sub {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(201, 212, 232, 0.72);
  margin: -0.5rem 0 1.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

/* Ho'oponopono as vine runes */
.luna-hoop-runes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-bottom: 0.65rem;
}

.luna-hoop-rune {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 224, 71, 0.88);
  text-shadow: 0 0 16px rgba(253, 224, 71, 0.4);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
  position: relative;
}

.luna-hoop-rune::before {
  content: "◇";
  margin-right: 0.4em;
  font-size: 0.55em;
  color: var(--vine);
  opacity: 0.8;
}

/* ── Sanguine silk mantra banner — fabric, one line ── */
.luna-silk-banner {
  margin: 3rem clamp(-0.5rem, -2vw, 0);
  padding: 0;
  overflow: visible;
}

.luna-silk-scene {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: visible;
  padding: 0.5rem clamp(0.5rem, 2vw, 1.25rem) 0.65rem;
}

.luna-silk-cloth {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center center;
  animation: luna-silk-breeze 22s ease-in-out infinite alternate;
  padding: 1em clamp(1.5rem, 5vw, 3.25rem) 1.15em;
  overflow: visible;
  border-radius: 2px 2px 14px 14px / 2px 2px 28px 28px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.08) 0px,
      rgba(0, 0, 0, 0.08) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 220, 200, 0.04) 0px,
      rgba(255, 220, 200, 0.04) 2px,
      transparent 2px,
      transparent 5px
    ),
    repeating-linear-gradient(
      92deg,
      rgba(69, 10, 10, 0.12) 0px,
      rgba(127, 29, 29, 0.08) 3px,
      rgba(40, 8, 14, 0.1) 6px
    ),
    linear-gradient(
      135deg,
      rgba(92, 16, 24, 0.58) 0%,
      rgba(127, 29, 29, 0.52) 35%,
      rgba(69, 10, 10, 0.55) 65%,
      rgba(80, 14, 22, 0.5) 100%
    );
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.32),
    inset 0 2px 0 rgba(255, 210, 190, 0.22),
    inset 0 -3px 8px rgba(0, 0, 0, 0.22),
    inset 3px 0 12px rgba(255, 200, 180, 0.05),
    inset -3px 0 12px rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(200, 120, 110, 0.28);
  border-bottom: none;
}

.luna-silk-cloth::before,
.luna-silk-cloth::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  height: 14px;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(127, 29, 29, 0.35) 15%,
    rgba(92, 16, 24, 0.5) 50%,
    rgba(127, 29, 29, 0.35) 85%,
    transparent
  );
  filter: blur(3px);
}

.luna-silk-cloth::before {
  top: -6px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.luna-silk-cloth::after {
  bottom: -8px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  opacity: 0.45;
}

.luna-silk-weave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(255, 255, 255, 0.04) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 4px,
      rgba(0, 0, 0, 0.06) 4px,
      rgba(0, 0, 0, 0.06) 5px
    );
  mix-blend-mode: overlay;
}

.luna-silk-mantra {
  position: relative;
  z-index: 1;
  margin: 0;
  width: max-content;
  max-width: none;
  font-family: "Pinyon Script", "Tangerine", "Great Vibes", cursive;
  font-size: clamp(0.95rem, 2.6vw, 1.55rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: visible;
  padding: 0.12em 0.5em 0.28em;
  color: rgba(18, 5, 8, 0.92);
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 235, 220, 0.35);
}

.luna-silk-mantra-wrap {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.28em;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.luna-silk-mantra-wrap::-webkit-scrollbar {
  display: none;
}

@keyframes luna-silk-breeze {
  0% {
    transform: translateX(-1.2%) skewX(-0.5deg) rotateZ(-0.25deg);
  }
  33% {
    transform: translateX(0.6%) skewX(0.35deg) rotateZ(0.1deg);
  }
  66% {
    transform: translateX(-0.4%) skewX(-0.2deg) rotateZ(-0.08deg);
  }
  100% {
    transform: translateX(1%) skewX(0.45deg) rotateZ(0.2deg);
  }
}

/* ── Love experience list ── */
.luna-fae-xp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.luna-fae-xp-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(74, 222, 128, 0.12);
  font-family: "DM Sans", system-ui, sans-serif;
  color: rgba(201, 212, 232, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.luna-fae-xp-role {
  flex: 1;
  color: var(--moonsilver);
  font-weight: 500;
}

.luna-fae-xp-dates {
  font-size: 0.75rem;
  color: rgba(248, 240, 232, 0.4);
  white-space: nowrap;
}

/* ── Mosaic gallery — bigger, darker, sporadic ── */
.meet-luna-gallery {
  margin: 1.25rem 0 3.5rem;
}

.meet-luna-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(60px, auto);
  gap: 1.5rem 1.25rem;
  align-items: start;
}

.meet-luna-gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(248, 240, 232, 0.5);
}

.luna-gallery-figure {
  margin: 0;
  transition: transform 0.4s ease;
}

/* ── Portal gallery — soft vine frames, natural aspect ratios ── */
.luna-portal {
  position: relative;
}

.luna-portal-frame {
  position: relative;
  padding: 10px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74, 222, 128, 0.05), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(127, 29, 29, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(18, 6, 10, 0.55), rgba(8, 2, 6, 0.65));
  border-radius: 50% 50% 18px 18px / 12% 12% 18px 18px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 0 40px rgba(69, 10, 10, 0.25);
}

.luna-portal--wide .luna-portal-frame {
  border-radius: 40% 40% 14px 14px / 16% 16% 14px 14px;
  padding: 10px 16px 12px;
}

.luna-portal--landscape .luna-portal-frame {
  border-radius: 36% 36% 16px 16px / 14% 14% 16px 16px;
}

.luna-portal--tall .luna-portal-frame {
  border-radius: 44% 44% 20px 20px / 10% 10% 20px 20px;
  padding: 14px 12px 16px;
}

.luna-portal-vines {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  pointer-events: none;
  z-index: 3;
  opacity: 0.28;
}

.luna-portal-inner {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 44% 44% 12px 12px / 10% 10% 12px 12px;
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(253, 224, 71, 0.08);
  background: #050308;
  line-height: 0;
}

.luna-portal--wide .luna-portal-inner {
  border-radius: 34% 34% 10px 10px / 12% 12% 10px 10px;
}

.luna-portal--landscape .luna-portal-inner {
  border-radius: 32% 32% 12px 12px / 12% 12% 12px 12px;
}

.luna-portal--tall .luna-portal-inner {
  border-radius: 40% 40% 14px 14px / 8% 8% 14px 14px;
}

.luna-portal-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(5, 3, 8, 0.28) 100%),
    linear-gradient(180deg, rgba(74, 222, 128, 0.05) 0%, transparent 30%, transparent 70%, rgba(253, 224, 71, 0.04) 100%);
  border-radius: inherit;
}

.luna-portal-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.15);
  border-radius: inherit;
}

.luna-portal-inner img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0.65) contrast(1.05) saturate(0.9);
  opacity: 0.92;
  transition: filter 0.45s ease, opacity 0.45s ease;
}

.luna-gallery-figure:hover {
  transform: scale(1.012);
  z-index: 4;
}

.luna-gallery-figure:hover .luna-portal-inner img {
  filter: brightness(0.74) contrast(1.03) saturate(0.94);
  opacity: 0.98;
}

.luna-gallery-figure:hover .luna-portal-frame {
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.4),
    inset 0 0 48px rgba(127, 29, 29, 0.2),
    0 0 20px rgba(74, 222, 128, 0.06);
}

.luna-gallery-btn {
  display: none;
}

/* Sporadic placement slots */
.luna-photo--panorama { grid-column: 1 / -1; }
.luna-photo--landscape { grid-column: 1 / 8; margin-top: 1rem; }
.luna-photo--landscape-offset { grid-column: 5 / -1; margin-top: 2.5rem; }
.luna-photo--tall { grid-column: 8 / -1; margin-top: -2rem; }
.luna-photo--portrait-left { grid-column: 1 / 6; }
.luna-photo--portrait-right { grid-column: 7 / -1; margin-top: 1.5rem; }
.luna-photo--portrait-float { grid-column: 4 / 9; margin-top: -1rem; }
.luna-photo--portrait { grid-column: span 5; }

.luna-photo--landscape:nth-of-type(even) { grid-column: 5 / -1; }

/* Fine art viewport — removed (was empty scroll spacer) */
.luna-art-viewport {
  display: none;
}

/* ── CTA — moonsilver + bloodmoon Say ── */
.luna-fae-cta {
  text-align: center;
  margin: 2.75rem auto 1.25rem;
  max-width: 32rem;
  padding: 2.5rem clamp(2rem, 6vw, 3rem) 2.75rem;
  background:
    radial-gradient(
      ellipse 90% 86% at 50% 48%,
      rgba(14, 5, 12, 0.7) 0%,
      rgba(10, 3, 8, 0.78) 100%
    );
  border: 1px solid rgba(127, 29, 29, 0.2);
  border-radius: 2.5rem;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(201, 212, 232, 0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.luna-fae-cta-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--moonsilver);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 20px rgba(201, 212, 232, 0.25);
}

.luna-say-blood {
  color: var(--bloodmoon);
  text-shadow: 0 0 18px rgba(185, 28, 28, 0.45);
}

.luna-fae-cta-sub {
  margin: 0 0 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: var(--moonsilver);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.luna-fae-cta-heart {
  margin: 0 0 1.35rem;
  font-family: "Great Vibes", "Pinyon Script", cursive;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  color: var(--moonsilver);
  text-shadow:
    0 0 16px rgba(201, 212, 232, 0.35),
    0 0 28px rgba(185, 28, 28, 0.15);
}

.luna-fae-cta-link {
  display: inline-block;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moonsilver);
  text-decoration: none;
  padding: 0.35rem 0 0.5rem;
  border-bottom: 2px solid transparent;
  text-shadow: 0 0 12px rgba(201, 212, 232, 0.2);
  transition: border-color 0.3s ease, text-shadow 0.3s ease, box-shadow 0.3s ease;
}

.luna-fae-cta-link:hover {
  border-bottom-color: rgba(201, 212, 232, 0.85);
  text-shadow: 0 0 20px rgba(201, 212, 232, 0.55);
  box-shadow: 0 6px 20px rgba(201, 212, 232, 0.2);
}

/* ── Lightbox ── */
.meet-luna-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 3, 8, 0.94);
  backdrop-filter: blur(12px);
}

.meet-luna-lightbox[hidden] {
  display: none;
}

.meet-luna-lightbox img {
  max-width: min(94vw, 900px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(253, 224, 71, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  filter: brightness(0.85);
}

.meet-luna-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

body.meet-luna-page footer {
  display: none;
}

/* Compact grove — phones + touch tablets; desktop with mouse keeps vertical parallax */
@media (max-width: 720px), ((hover: none) and (max-width: 1366px)) {
  html:has(body.meet-luna-page) {
    min-height: 100dvh;
  }

  body.meet-luna-page {
    min-height: 100dvh;
  }

  body.meet-luna-page .meet-luna-canvas-wrap,
  body.meet-luna-page .meet-luna-grove-wrap,
  body.meet-luna-page .meet-luna-grove-light-bleed,
  body.meet-luna-page .meet-luna-veil,
  body.meet-luna-page .meet-luna-sparkles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    max-height: none;
  }

  body.meet-luna-page .meet-luna-canvas-wrap {
    opacity: 0.58;
  }

  body.meet-luna-page .meet-luna-grove-light-bleed {
    opacity: 0.5;
  }

  body.meet-luna-page .meet-luna-sparkles {
    opacity: 0.72;
  }

  body.meet-luna-page .meet-luna-grove-wrap {
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  body.meet-luna-page .meet-luna-grove-moon-glow {
    opacity: 0.78;
  }

  /* Landscape mural → portrait/touch fullscreen via 90° rotation */
  body.meet-luna-page .meet-luna-grove-stack {
    left: 50%;
    top: 50%;
    right: auto;
    width: max(112dvh, 112vh);
    min-width: max(112dvh, 112vh);
    height: auto;
    min-height: max(100vw, 100vw);
    transform: translate3d(-50%, -50%, 0) rotate(90deg);
    transform-origin: center center;
  }

  body.meet-luna-page .meet-luna-grove-painting--main {
    width: 100%;
    height: auto;
    min-height: max(100vw, 100vw);
    object-fit: cover;
    object-position: center center;
  }
}

/* Touch tablet only — slightly tighter edge columns; desktop mouse unchanged */
@media (min-width: 721px) and (max-width: 1366px) and (hover: none) {
  .luna-edge-column {
    width: clamp(32px, 4vw, 56px);
  }
}

@media (max-width: 720px) {
  /* ── Phone UI — layout, topbar, gallery (not applied to touch tablets) ── */
  body.meet-luna-page {
    padding-top: 3.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Keep Luna topbar one compact row — override site-topbar mobile wrap */
  body.meet-luna-page .site-topbar.luna-temple-topbar {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    height: 3.25rem;
    min-height: 3.25rem;
    max-height: 3.25rem;
    padding: 0 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.meet-luna-page .site-topbar.luna-temple-topbar .site-topbar-brand {
    flex: 0 1 auto;
    align-items: flex-start;
    min-width: 0;
  }

  body.meet-luna-page .site-topbar.luna-temple-topbar nav {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .luna-topbar-logo {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .luna-topbar-rune {
    font-size: 0.82rem;
    line-height: 1.1;
  }

  .luna-resume-hero {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 2rem 1.25rem 1.75rem;
  }

  .luna-edge-column {
    width: clamp(28px, 4vw, 48px);
  }

  body.meet-luna-page #page-root {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .meet-luna-gallery-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
  }

  /* Desktop mosaic slots use multi-column spans — must fully reset on mobile
     or implicit tracks collapse to ~8px and photos vanish. */
  .meet-luna-gallery-mosaic > .luna-gallery-figure {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .luna-photo--landscape:nth-of-type(even) {
    grid-column: 1 / -1;
  }

  .luna-portal,
  .luna-portal-frame,
  .luna-portal-inner {
    width: 100%;
    max-width: 100%;
  }

  .luna-portal-inner img {
    width: 100%;
    min-width: 0;
    filter: brightness(0.78) contrast(1.03) saturate(0.92);
  }

  .luna-photo--panorama,
  .luna-photo--landscape,
  .luna-photo--landscape-offset,
  .luna-photo--tall,
  .luna-photo--portrait-left,
  .luna-photo--portrait-right,
  .luna-photo--portrait-float,
  .luna-photo--portrait {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .luna-gallery-figure {
    transform: none;
  }

  .luna-silk-banner {
    margin: 3rem 0;
  }

  .luna-art-viewport {
    min-height: 70vh;
    min-height: 70dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meet-luna-sparkles,
  .meet-luna-grove-moon-glow,
  .meet-luna-grove-light-bleed,
  .luna-silk-cloth,
  .meet-luna-grove-stack {
    animation: none;
  }
}
