.persona-theatre {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 34px;
  align-items: center;
  min-height: 620px;
  margin: 34px 0 34px;
  padding: 26px;
  color: var(--cream);
  background:
    radial-gradient(circle at 68% 24%, rgba(239, 183, 86, 0.2), transparent 32%),
    radial-gradient(circle at 18% 80%, rgba(12, 115, 103, 0.34), transparent 34%),
    linear-gradient(145deg, rgba(7, 28, 24, 0.98), rgba(9, 43, 38, 0.96));
  border: 1px solid rgba(255, 248, 238, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.persona-theatre::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 248, 238, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255, 248, 238, 0.06) 0 1px, transparent 1px 74px);
  opacity: 0.42;
  transform: translateX(-55%);
  animation: theatreSweep 8s ease-in-out infinite;
}

.theatre-copy,
.theatre-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.theatre-copy {
  max-width: 430px;
}

.theatre-copy h3 {
  margin-bottom: 16px;
  font-size: 2.15rem;
  line-height: 1.04;
}

.theatre-copy p {
  color: rgba(255, 248, 238, 0.76);
}

.theatre-steps {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.theatre-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(255, 248, 238, 0.08);
  border: 1px solid rgba(255, 248, 238, 0.14);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  animation: stepGlow 6s ease-in-out infinite;
}

.theatre-steps span:nth-child(2) {
  animation-delay: 1.2s;
}

.theatre-steps span:nth-child(3) {
  animation-delay: 2.4s;
}

.theatre-steps strong {
  color: var(--marigold);
}

.theatre-stage {
  min-height: 560px;
  perspective: 1300px;
}

.theatre-phone {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 270px;
  min-height: 500px;
  padding: 15px;
  color: var(--cream);
  background:
    linear-gradient(155deg, rgba(10, 43, 38, 0.99), rgba(4, 18, 15, 0.98)),
    radial-gradient(circle at 50% 8%, rgba(239, 183, 86, 0.18), transparent 44%);
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transform: translateX(-50%) rotateX(8deg) rotateY(-12deg) translateZ(70px);
  animation: theatrePhoneFloat 6s ease-in-out infinite;
}

.theatre-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 4;
  width: 84px;
  height: 22px;
  background: #03110e;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
}

.theatre-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding-top: 18px;
  border-bottom: 1px solid rgba(255, 248, 238, 0.12);
}

.theatre-phone-top span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--deep);
  background: var(--marigold);
  border-radius: 50%;
  font-weight: 920;
}

.theatre-phone-top strong,
.theatre-phone-top small {
  display: block;
}

.theatre-phone-top small {
  color: rgba(255, 248, 238, 0.62);
  font-size: 0.78rem;
}

.theatre-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  min-height: 360px;
  padding: 16px 0 0;
}

.mini-bubble {
  max-width: 84%;
  margin: 0;
  padding: 11px 12px;
  border-radius: 15px;
  font-size: 0.84rem;
  line-height: 1.34;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: theatreMessage 7.2s ease-in-out infinite;
}

.mini-bubble.user {
  align-self: flex-end;
  color: var(--cream);
  background: var(--jade);
  border-bottom-right-radius: 6px;
}

.mini-bubble.ai {
  align-self: flex-start;
  color: var(--ink);
  background: rgba(255, 248, 238, 0.94);
  border-bottom-left-radius: 6px;
  animation-delay: 1.1s;
}

.mini-bubble.user:nth-of-type(3) {
  animation-delay: 2.2s;
}

.match-card {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 12px;
  color: var(--deep);
  background: var(--marigold);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(239, 183, 86, 0.18);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  animation: matchReveal 7.2s ease-in-out infinite;
}

.match-card span {
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.match-card strong {
  font-size: 1.12rem;
  line-height: 1;
}

.persona-popout {
  position: absolute;
  left: 50%;
  top: 34px;
  z-index: 4;
  width: 214px;
  min-height: 230px;
  transform: translateX(-50%) translateY(42px) scale(0.72);
  transform-origin: 50% 100%;
  animation: personaRise 7.2s ease-in-out infinite;
}

.persona-portrait {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  width: 116px;
  height: 116px;
  background-image: url("../images/persona-gallery-india.jpg");
  background-position: 48% 10%;
  background-size: 315%;
  border: 4px solid rgba(255, 248, 238, 0.88);
  border-radius: 50%;
  box-shadow: 0 20px 42px rgba(4, 18, 15, 0.34);
  transform: translateX(-50%);
}

.persona-portrait::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(239, 183, 86, 0.72);
  border-radius: 50%;
  animation: portraitRing 2.2s ease-in-out infinite;
}

.persona-body {
  position: absolute;
  left: 50%;
  top: 86px;
  width: 142px;
  height: 122px;
  background:
    linear-gradient(145deg, rgba(239, 183, 86, 0.94), rgba(216, 109, 44, 0.92));
  border: 1px solid rgba(255, 248, 238, 0.36);
  border-radius: 50px 50px 36px 36px;
  transform: translateX(-50%);
  box-shadow: 0 24px 50px rgba(4, 18, 15, 0.3);
}

.persona-hand {
  position: absolute;
  top: 118px;
  width: 42px;
  height: 18px;
  background: rgba(255, 248, 238, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(4, 18, 15, 0.22);
}

.hand-left {
  left: 22px;
  transform: rotate(-24deg);
}

.hand-right {
  right: 22px;
  transform: rotate(24deg);
}

.popout-speech,
.floating-message,
.investor-chip {
  position: absolute;
  color: var(--deep);
  background: rgba(255, 248, 238, 0.94);
  border: 1px solid rgba(255, 248, 238, 0.58);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(4, 18, 15, 0.2);
  font-weight: 820;
}

.popout-speech {
  left: 178px;
  top: 48px;
  width: 210px;
  padding: 13px 14px;
  font-size: 0.92rem;
  line-height: 1.22;
  opacity: 0;
  transform: translateX(-8px) translateY(8px);
  animation: speechReveal 7.2s ease-in-out infinite;
}

.floating-message {
  z-index: 2;
  width: 188px;
  padding: 12px 13px;
  font-size: 0.86rem;
  line-height: 1.18;
  opacity: 0;
  animation: floatingMessage 7.2s ease-in-out infinite;
}

.message-one {
  left: 6px;
  top: 74px;
}

.message-two {
  right: 6px;
  top: 186px;
  animation-delay: 1.1s;
}

.message-three {
  left: 36px;
  bottom: 84px;
  animation-delay: 2.2s;
}

.investor-chip {
  right: 0;
  bottom: 16px;
  display: grid;
  gap: 4px;
  width: 210px;
  padding: 14px;
  background: rgba(239, 183, 86, 0.96);
  opacity: 0;
  transform: translateY(18px);
  animation: investorChip 7.2s ease-in-out infinite;
}

.investor-chip span {
  font-size: 0.7rem;
  font-weight: 860;
  text-transform: uppercase;
}

.investor-chip strong {
  font-size: 0.96rem;
  line-height: 1.12;
}

.signal-beam {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(239, 183, 86, 0.95), transparent);
  opacity: 0.72;
  transform-origin: center;
  animation: signalMove 2.6s ease-in-out infinite;
}

.beam-one {
  left: 106px;
  top: 146px;
  width: 210px;
  --beam-rotate: 16deg;
}

.beam-two {
  right: 106px;
  top: 276px;
  width: 188px;
  --beam-rotate: -18deg;
  animation-delay: 0.7s;
}

.beam-three {
  left: 154px;
  bottom: 132px;
  width: 174px;
  --beam-rotate: -10deg;
  animation-delay: 1.2s;
}

.girlfriend-demo .demo-phone,
.investor-demo .demo-phone {
  animation: demoPhoneBreath 5.6s ease-in-out infinite;
}

.investor-demo .demo-phone {
  animation-delay: 0.8s;
}

.demo-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 248, 238, 0.22) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-62%);
  animation: cardShimmer 6s ease-in-out infinite;
}

.investor-demo::after {
  background: linear-gradient(105deg, transparent 0%, rgba(239, 183, 86, 0.18) 42%, transparent 58%);
  animation-delay: 1.4s;
}

@keyframes theatreSweep {
  0%,
  100% {
    transform: translateX(-55%);
  }
  50% {
    transform: translateX(55%);
  }
}

@keyframes stepGlow {
  0%,
  100% {
    background: rgba(255, 248, 238, 0.08);
    border-color: rgba(255, 248, 238, 0.14);
  }
  35% {
    background: rgba(239, 183, 86, 0.18);
    border-color: rgba(239, 183, 86, 0.46);
  }
}

@keyframes theatrePhoneFloat {
  0%,
  100% {
    transform: translateX(-50%) rotateX(8deg) rotateY(-12deg) translateZ(70px);
  }
  50% {
    transform: translateX(-50%) translateY(-12px) rotateX(6deg) rotateY(-5deg) translateZ(92px);
  }
}

@keyframes theatreMessage {
  0%,
  12% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  24%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  92%,
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@keyframes matchReveal {
  0%,
  40% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  52%,
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@keyframes personaRise {
  0%,
  34% {
    opacity: 0;
    transform: translateX(-50%) translateY(74px) scale(0.62);
  }
  46%,
  82% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(36px) scale(0.74);
  }
}

@keyframes portraitRing {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes speechReveal {
  0%,
  48% {
    opacity: 0;
    transform: translateX(-8px) translateY(8px);
  }
  60%,
  82% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(0) translateY(-6px);
  }
}

@keyframes floatingMessage {
  0%,
  14% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  28%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }
}

@keyframes investorChip {
  0%,
  64% {
    opacity: 0;
    transform: translateY(18px);
  }
  78%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes signalMove {
  0%,
  100% {
    opacity: 0.18;
    transform: rotate(var(--beam-rotate, 0deg)) scaleX(0.62);
  }
  50% {
    opacity: 0.92;
    transform: rotate(var(--beam-rotate, 0deg)) scaleX(1);
  }
}

@keyframes demoPhoneBreath {
  0%,
  100% {
    box-shadow: var(--shadow-strong);
  }
  50% {
    box-shadow: 0 32px 84px rgba(12, 115, 103, 0.34);
  }
}

@keyframes cardShimmer {
  0%,
  56%,
  100% {
    opacity: 0;
    transform: translateX(-62%);
  }
  68% {
    opacity: 1;
  }
  82% {
    opacity: 0;
    transform: translateX(62%);
  }
}

@media (max-width: 980px) {
  .persona-theatre {
    grid-template-columns: 1fr;
  }

  .theatre-copy {
    max-width: 760px;
  }

  .theatre-stage {
    min-height: 600px;
  }
}

@media (max-width: 640px) {
  .persona-theatre {
    min-height: auto;
    margin-top: 28px;
    padding: 18px;
  }

  .theatre-copy h3 {
    font-size: 1.72rem;
  }

  .theatre-stage {
    min-height: 560px;
    margin-right: -8px;
    margin-left: -8px;
    overflow: hidden;
  }

  .theatre-phone {
    bottom: 18px;
    width: 226px;
    min-height: 430px;
  }

  .theatre-screen {
    min-height: 292px;
  }

  .persona-popout {
    top: 48px;
    width: 166px;
  }

  .persona-portrait {
    width: 88px;
    height: 88px;
  }

  .persona-body {
    top: 68px;
    width: 112px;
    height: 98px;
  }

  .persona-hand {
    top: 96px;
    width: 34px;
  }

  .hand-left {
    left: 12px;
  }

  .hand-right {
    right: 12px;
  }

  .popout-speech {
    left: 118px;
    top: 38px;
    width: 158px;
    padding: 10px;
    font-size: 0.78rem;
  }

  .floating-message {
    width: 138px;
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .message-one {
    left: 4px;
    top: 20px;
  }

  .message-two {
    right: 4px;
    top: 170px;
  }

  .message-three {
    left: 6px;
    bottom: 78px;
  }

  .investor-chip {
    right: 4px;
    bottom: 12px;
    width: 152px;
    padding: 10px;
  }

  .signal-beam {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .persona-theatre::before,
  .theatre-steps span,
  .theatre-phone,
  .mini-bubble,
  .match-card,
  .persona-popout,
  .persona-portrait::after,
  .popout-speech,
  .floating-message,
  .investor-chip,
  .signal-beam,
  .girlfriend-demo .demo-phone,
  .investor-demo .demo-phone,
  .demo-card::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .mini-bubble,
  .match-card,
  .persona-popout,
  .popout-speech,
  .floating-message,
  .investor-chip {
    opacity: 1;
  }
}
