/* 3D card-ring hero — seven worlds orbiting the wordmark */

.ring-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(198, 161, 91, 0.06), transparent),
    radial-gradient(ellipse 80% 70% at 85% 90%, rgba(198, 161, 91, 0.05), transparent),
    #0a0a0a;
  display: none;
}
@media (min-width: 901px) { .ring-hero { display: block; } }

/* Maya's portrait behind the ring */
.ring-bg {
  position: absolute;
  inset: 0;
}
.ring-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) brightness(0.85);
}
.ring-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 75% at 50% 40%, transparent 25%, rgba(10, 10, 10, 0.6) 70%, rgba(10, 10, 10, 0.94) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.3) 30%, transparent 55%);
}

.ring-stage {
  position: absolute;
  inset: 0;
}

/* center copy: front cards pass in front (higher z), back cards behind */
.ring-copy {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(680px, 80vw);
  z-index: 5;
}
.ring-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(242, 239, 234, 0.2);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  margin-bottom: 1.6rem;
}
.ring-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.ring-copy h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}
.ring-copy h1 em { font-style: italic; color: var(--gold); }
.ring-copy .ring-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  color: var(--bone-dim);
  margin-top: 1rem;
}
.ring-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.2rem;
}
.ring-btn {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 239, 234, 0.35);
  color: var(--bone);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  background: rgba(10, 10, 10, 0.4);
}
.ring-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.ring-btn:active { transform: scale(0.97); }
.ring-about {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(198, 161, 91, 0.25);
}
.ring-about:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(198, 161, 91, 0.35); }
.ring-about:active { transform: scale(0.97); }

/* ---------- cards ---------- */
.ring-card {
  position: absolute;
  left: 0; top: 0;
  will-change: transform, opacity;
}
/* circular icon badge: thin gold ring, dark fill */
.rc-face {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  border: 1.5px solid rgba(198, 161, 91, 0.45);
  background: rgba(12, 12, 11, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  color: var(--gold);
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.rc-face svg { width: 23px; height: 23px; }
.rc-face img.rc-icon-img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.ring-card.hot .rc-face {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(198, 161, 91, 0.4), 0 8px 26px rgba(0, 0, 0, 0.55);
  transform: scale(1.1) translateY(-2px);
}
/* books: right-hand page swings open on hover */
.rc-face .page-l { transform-origin: 12px 12px; transition: transform 0.5s cubic-bezier(0.5, 0, 0.3, 1); }
.ring-card.book.hot .page-l { transform: rotate(-28deg); }
/* belulu badge leans pink */
.ring-card.flower .rc-face { color: #f29ec4; border-color: rgba(242, 158, 196, 0.5); }
.ring-card.flower.hot .rc-face { border-color: #f29ec4; box-shadow: 0 0 28px rgba(242, 158, 196, 0.35); }

/* node label under the card — hidden at rest, fades in only for the
   hovered/open node so resting labels never collide during the orbit */
.rc-label {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  padding: 0.28rem 1rem;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.ring-card.hot .rc-label { opacity: 1; transform: translateX(-50%) translateY(0); }
/* gold banner sweep behind the label (studios/services/media/creators) */
.rc-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.6, 0, 0.2, 1);
  z-index: -1;
}
.ring-card.banner.hot .rc-label { color: #0a0a0a; }
.ring-card.banner.hot .rc-label::before { transform: scaleX(1); }

/* MJ Sonder: label flips to cursive on hover */
.ring-card.cursive.hot .rc-label {
  font-family: "Pinyon Script", cursive;
  font-size: 1.7rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* BeLulu: flower petals bloom from behind the card */
.petals { position: absolute; left: 50%; top: 0; width: 0; height: 0; z-index: -1; pointer-events: none; }
.petal {
  position: absolute;
  left: -17px; top: -8px;
  width: 34px; height: 52px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #f4569d, #f9a8cc);
  opacity: 0;
  transform: rotate(var(--pa)) translateY(-6px) scale(0.4);
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(0.3, 1.1, 0.4, 1), opacity 0.4s;
}
.ring-card.flower.hot .petal {
  opacity: 0.9;
  transform: rotate(var(--pa)) translateY(-34px) scale(1);
}

/* ---------- sub icons ---------- */
.rc-subs { position: absolute; left: 0; top: 0; }
.rsub {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.92);
  border: 1.5px solid rgba(198, 161, 91, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  color: var(--bone-dim);
  transform: translate(0, 0) scale(0.3);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.22s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}
.rsub svg { width: 18px; height: 18px; }
.rsub img.rc-icon-img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.rsub.branch img.rc-icon-img { width: 34px; height: 34px; }
.branch .bsub img.rc-icon-img { width: 26px; height: 26px; }
.ring-card.hot .rsub {
  transform: translate(var(--sx), var(--sy)) scale(1);
  opacity: 1;
  pointer-events: auto;
}
/* closing: no stagger, so the whole bloom tucks away together */
.ring-card:not(.hot) .rsub { transition-delay: 0s !important; }
.rsub:hover { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 20px rgba(198, 161, 91, 0.35); transform: translate(var(--sx), var(--sy)) scale(1.12) !important; }
.rsub .rsub-name {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(12, 12, 11, 0.95);
  border: 1px solid rgba(242, 239, 234, 0.14);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 8;
}
.rsub:hover .rsub-name { opacity: 1; }
/* BeLulu subs bloom pink */
.ring-card.flower .rsub { background: rgba(46, 18, 32, 0.94); border-color: rgba(242, 158, 196, 0.5); color: #f2b9d4; }
.ring-card.flower .rsub:hover { color: #ffd9ec; border-color: #f29ec4; box-shadow: 0 0 20px rgba(242, 158, 196, 0.35); }

/* media's two-stage branches */
.rsub.branch { width: 52px; height: 52px; margin: -26px 0 0 -26px; color: var(--gold); z-index: 6; }
.rsub.branch .branch-name {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: rgba(12, 12, 11, 0.9);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  z-index: 8;
}
.branch-subs { position: absolute; left: 50%; top: 50%; z-index: 5; }
.branch .bsub {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.94);
  border: 1.5px solid rgba(198, 161, 91, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  color: var(--bone-dim);
  transform: translate(0, 0) scale(0.3);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.2s ease;
  pointer-events: none;
}
.branch .bsub svg { width: 15px; height: 15px; }
.branch:not(:hover) .bsub { transition-delay: 0s !important; }
.branch:hover .bsub, .branch.bopen .bsub {
  transform: translate(var(--bx), var(--by)) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.bsub:hover { color: var(--gold); border-color: var(--gold); transform: translate(var(--bx), var(--by)) scale(1.14) !important; }
.bsub .rsub-name { bottom: calc(100% + 6px); }

@media (prefers-reduced-motion: reduce) {
  .petal, .page-flip, .rsub, .bsub { transition: opacity 0.2s !important; }
}
