.about-page {
  --about-cream: #F4F2F7; /* soft lavender-gray About base, distinct from the warm hero */
  --about-text: #39364F;
  --about-yellow: #FFE8A3;
  --about-lavender: #DCCFFF;
  --about-blue: #CFE2FF;
  --about-pink: #FFDCE8;
  --about-peach: #FFE2D2;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 42px 24px 30px;
  background:
    radial-gradient(72% 46% at 50% 0%, rgba(214, 201, 255, 0.45), transparent 70%),
    radial-gradient(60% 38% at 8% 100%, rgba(255, 249, 244, 0.95), transparent 74%),
    radial-gradient(60% 38% at 92% 100%, rgba(255, 243, 233, 0.85), transparent 74%),
    linear-gradient(180deg, #F7F5FA 0%, var(--about-cream) 45%, #F3F0F7 100%);
  color: var(--about-text);
  font-family: inherit;
}

.about-page *,
.about-page *::before,
.about-page *::after {
  box-sizing: border-box;
}

.about-page {
  --magic-gold: #F6C85F;
  --magic-purple: #A88AE6;
  --magic-blue: #91BFF4;
}

.about-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Cinematic introduction */

.about-opening {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin: 0 auto 72px;
}

.about-heading {
  margin: 0;
  text-align: left;
}

.about-eyebrow,
.teamwork-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #8164B4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.about-heading h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.15;
  letter-spacing: -1.8px;
  font-weight: 800;
}

.about-heading p {
  max-width: 470px;
  margin: 0;
  color: #625A75;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
}

/* Main section heading: "About Two Friends" — centered, dark-purple with a
   subtle lavender accent, sitting above the existing "Meet the Ghost
   Purificators" header. Sized with clamp so it stays modest on desktop. */

.about-intro {
  max-width: 720px;
  margin: 0 auto clamp(26px, 3.4vw, 42px);
  text-align: center;
}

.about-intro h2 {
  margin: 0;
  color: #4C3A83;
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.9px;
}

/* Subtle lavender accent rule under the heading */
.about-intro h2::after {
  display: block;
  width: 56px;
  height: 4px;
  margin: 13px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--about-lavender), #B9A4F5);
  content: "";
}

.about-intro p {
  margin: 15px 0 0;
  color: #8B6FC7;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.6;
}

.opening-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.68;
  min-height: 230px;
  border: 1px solid rgba(190, 169, 222, 0.55);
  border-radius: 30px;
  background: #29204B;
  box-shadow: 0 22px 48px rgba(75, 55, 111, 0.2);
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform 450ms ease, box-shadow 450ms ease;
}

.opening-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: opening-scene-arrive 1.1s cubic-bezier(0.2, 0.75, 0.25, 1) both,
    opening-scene-drift 18s ease-in-out 1.1s infinite alternate;
}

.opening-art::after {
  position: absolute;
  inset: 45% 0 0;
  z-index: 0;
  content: "";
  background: linear-gradient(transparent, rgba(28, 21, 54, 0.74));
  pointer-events: none;
}

.opening-mist {
  position: absolute;
  z-index: 1;
  width: 55%;
  height: 34%;
  border-radius: 50%;
  background: rgba(204, 184, 255, 0.32);
  filter: blur(30px);
  pointer-events: none;
  animation: mist-drift 9s ease-in-out infinite alternate;
}

.opening-mist-one {
  left: -8%;
  bottom: 9%;
}

.opening-mist-two {
  right: -13%;
  top: 8%;
  background: rgba(157, 191, 255, 0.28);
  animation-delay: -4s;
}

.opening-star {
  position: absolute;
  z-index: 2;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFF1AD;
  box-shadow: 0 0 15px 4px rgba(255, 238, 169, 0.8);
  pointer-events: none;
  animation: opening-star-glow 3.6s ease-in-out infinite;
}

.opening-star-one {
  top: 20%;
  left: 18%;
}

.opening-star-two {
  top: 31%;
  right: 20%;
  width: 6px;
  background: #D7C5FF;
  box-shadow: 0 0 13px 4px rgba(210, 192, 255, 0.76);
  animation-delay: -1.6s;
}

.opening-ghost {
  position: absolute;
  right: 12%;
  bottom: 18%;
  z-index: 2;
  width: clamp(38px, 6vw, 66px);
  opacity: 0;
  filter: drop-shadow(0 0 16px rgba(255, 249, 202, 0.95));
  pointer-events: none;
  animation: ghost-reveal 6.5s ease-in-out 1.5s infinite;
}

.opening-ghost img {
  display: block;
  width: 100%;
  height: auto;
}

.opening-caption {
  position: absolute;
  right: 22px;
  bottom: 17px;
  z-index: 2;
  color: #FFF9EF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.about-opening.is-visible .about-heading > * {
  animation: intro-copy-arrive 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.about-opening.is-visible .about-heading h1 {
  animation-delay: 100ms;
}

.about-opening.is-visible .about-heading p {
  animation-delay: 220ms;
}

/* Decorative corner details */

.about-web {
  position: absolute;
  top: 0;
  z-index: 0;
  width: clamp(95px, 12vw, 155px);
  height: auto;
  opacity: 0.76;
  pointer-events: none;
  animation: about-web-glow 4.5s ease-in-out infinite;
}

.about-web-left {
  left: 0;
}

.about-web-right {
  right: 0;
  transform: scaleX(-1);
}

.about-spider {
  position: absolute;
  top: 0;
  left: 12%;
  z-index: 1;
  width: 34px;
  pointer-events: none;
  animation: about-spider-enter 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.about-spider-swing {
  position: relative;
  display: block;
  padding-top: 88px;
  transform-origin: 50% 0;
  animation: about-spider-sway 6s ease-in-out 1.9s infinite;
}

.about-spider-swing::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(#c3aee6, #a98fd4);
  content: "";
  transform: translateX(-50%);
}

.about-spider-swing img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 0;
  animation: about-spider-settle 3.4s ease-in-out infinite;
}

.about-lightning {
  position: absolute;
  z-index: 1;
  width: clamp(24px, 3.5vw, 42px);
  height: auto;
  pointer-events: none;
  animation: about-bolt-glow 4.5s ease-in-out infinite;
}

.about-lightning-left {
  top: 27%;
  left: 3%;
  transform: rotate(8deg);
  animation-delay: 0.8s;
}

.about-lightning-right {
  top: 70%;
  right: 3%;
  transform: rotate(-6deg);
  animation-delay: 2.2s;
}

.about-sparkle {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(20px, 3vw, 34px);
  pointer-events: none;
  animation: about-twinkle 3s ease-in-out infinite;
}

.about-sparkle img,
.card-sparkle img {
  display: block;
  width: 100%;
  height: auto;
}

.about-sparkle-one {
  top: 18%;
  left: 34%;
  animation-delay: 0.3s;
}

.about-sparkle-two {
  top: 59%;
  left: 5%;
  width: clamp(18px, 2.5vw, 28px);
  animation-delay: 1.2s;
}

.about-sparkle-three {
  top: 43%;
  right: 13%;
  width: clamp(18px, 2.5vw, 28px);
  animation-delay: 2.1s;
}

.about-side-decorations {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.side-haunt {
  position: absolute;
  display: block;
  height: auto;
}

.side-haunt img {
  display: block;
  width: 100%;
  height: auto;
}

.side-bat {
  width: clamp(57px, 6.3vw, 87px);
  opacity: 0.78;
}

.side-bat img {
  transform-origin: center;
  animation: side-bat-flap 1.65s ease-in-out infinite;
}

.side-bat-left {
  left: max(8px, calc((100% - 1120px) / 2 - 72px));
}

.side-bat-right {
  right: max(8px, calc((100% - 1120px) / 2 - 72px));
}

.side-bat-one {
  top: 25%;
  animation: side-bat-flight-one 12s ease-in-out infinite;
}

.side-bat-two {
  top: 34%;
  width: clamp(51px, 5.4vw, 75px);
  animation: side-bat-flight-two 15s ease-in-out -4s infinite;
}

.side-bat-three {
  top: 43%;
  width: clamp(45px, 4.65vw, 66px);
  animation: side-bat-flight-three 17s ease-in-out -8s infinite;
}

.side-bat-four {
  top: 51%;
  width: clamp(54px, 5.7vw, 78px);
  animation: side-bat-flight-four 14s ease-in-out -6s infinite;
}

.side-ghost {
  width: clamp(63px, 7.5vw, 99px);
  opacity: 0.78;
}

.side-ghost-left {
  left: max(8px, calc((100% - 1120px) / 2 - 76px));
}

.side-ghost-right {
  right: max(8px, calc((100% - 1120px) / 2 - 76px));
}

.side-ghost-one {
  top: 31%;
  animation: side-ghost-drift 7.6s ease-in-out -1s infinite;
}

.side-ghost-two {
  top: 47%;
  width: clamp(57px, 6.6vw, 87px);
  animation: side-ghost-drift 9.2s ease-in-out -5s infinite reverse;
}

.side-pumpkin {
  width: clamp(63px, 7.5vw, 99px);
}

.side-pumpkin-left {
  left: max(8px, calc((100% - 1120px) / 2 - 78px));
}

.side-pumpkin-right {
  right: max(8px, calc((100% - 1120px) / 2 - 78px));
}

.side-pumpkin-one {
  top: 38%;
  animation: side-pumpkin-bob 6.5s ease-in-out -2s infinite;
}

.side-pumpkin-two {
  top: 57%;
  width: clamp(57px, 6.6vw, 87px);
  animation: side-pumpkin-bob 7.4s ease-in-out -4.5s infinite reverse;
}

.side-pumpkin img {
  filter: drop-shadow(0 0 8px rgba(255, 170, 62, 0.48));
  animation: side-pumpkin-glow 4.6s ease-in-out infinite;
}

.side-pumpkin::before {
  position: absolute;
  top: 7%;
  right: -7%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFF2B8;
  box-shadow: -19px 15px 0 -1px #FFE1A5, 14px 22px 0 -1px #FFF2C3;
  content: "";
  animation: side-particle-twinkle 3.4s ease-in-out infinite;
}

@keyframes side-bat-flight-one {
  0%,
  100% { translate: 0 0; rotate: -8deg; scale: 1; }
  28% { translate: 14px -12px; rotate: 4deg; scale: 1.08; }
  63% { translate: -3px 8px; rotate: -2deg; scale: 0.96; }
}

@keyframes side-bat-flight-two {
  0%,
  100% { translate: 0 0; rotate: 7deg; scale: 1; }
  36% { translate: -13px -10px; rotate: -5deg; scale: 1.06; }
  72% { translate: 5px 7px; rotate: 3deg; scale: 0.94; }
}

@keyframes side-bat-flight-three {
  0%,
  100% { translate: 0 0; rotate: -4deg; }
  33% { translate: 10px 9px; rotate: 7deg; }
  68% { translate: -8px -13px; rotate: -9deg; }
}

@keyframes side-bat-flight-four {
  0%,
  100% { translate: 0 0; rotate: 5deg; }
  30% { translate: -10px 12px; rotate: -7deg; }
  67% { translate: 12px -9px; rotate: 8deg; }
}

@keyframes side-bat-flap {
  0%,
  100% { transform: scaleX(1); }
  50% { transform: scaleX(0.84); }
}

@keyframes side-ghost-drift {
  0%,
  100% {
    translate: 0 0;
    rotate: -4deg;
    opacity: 0.62;
    filter: drop-shadow(0 0 7px rgba(184, 166, 255, 0.55));
  }
  50% {
    translate: 9px -17px;
    rotate: 5deg;
    opacity: 0.9;
    filter: drop-shadow(0 0 14px rgba(158, 192, 255, 0.8));
  }
}

@keyframes side-pumpkin-bob {
  0%,
  100% { translate: 0 0; rotate: -3deg; }
  50% { translate: 5px -10px; rotate: 4deg; }
}

@keyframes side-pumpkin-glow {
  0%,
  100% { filter: drop-shadow(0 0 7px rgba(255, 170, 62, 0.42)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 196, 83, 0.82)); }
}

@keyframes side-particle-twinkle {
  0%,
  100% { opacity: 0.38; scale: 0.8; }
  50% { opacity: 0.95; scale: 1.2; }
}

/* Character cards */

.character-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 22px;
  min-height: 250px;
  padding: 22px 32px;
  border: 2px solid;
  border-radius: 24px;
  box-shadow: 0 9px 20px rgba(67, 48, 82, 0.09);
  isolation: isolate;
  overflow: hidden;
  transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(67, 48, 82, 0.16);
}

.abhay-card {
  background: linear-gradient(120deg, #FFF8E5, #FFF2CC);
  border-color: #E6D19C;
  box-shadow: 0 9px 22px rgba(197, 154, 61, 0.12);
}

.divyansh-card {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  background: linear-gradient(120deg, #F0E9FF, #E4EEFF);
  border-color: #C8B5E8;
  box-shadow: 0 9px 22px rgba(115, 120, 191, 0.12);
}

/* Character image area */

.character-visual {
  position: relative;
  isolation: isolate;
  z-index: 1;
  height: clamp(280px, 26vw, 330px);
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-visual[role="button"] {
  cursor: pointer;
}

.character-visual[role="button"]:focus-visible {
  outline: 2px solid #9871DD;
  outline-offset: 4px;
  border-radius: 12px;
}

.character-halo {
  position: absolute;
  width: min(230px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFE8A3;
  opacity: 0.8;
  filter: blur(1px);
  animation: character-aura 5s ease-in-out infinite;
}

.divyansh-card .character-halo {
  background: #CFE2FF;
}

.character-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  filter: drop-shadow(0 5px 3px rgba(57, 54, 79, 0.10));
  animation: character-hover 5.8s ease-in-out infinite;
  transition: opacity 300ms ease;
}

.character-image-solo {
  opacity: 1;
}

.character-image-gadget {
  opacity: 0;
}

.character-visual.is-gadget-visible .character-image-solo {
  opacity: 0;
}

.character-visual.is-gadget-visible .character-image-gadget {
  opacity: 1;
}

.divyansh-card .character-image {
  animation-delay: -2.9s;
}

/* Character details */

.character-info {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.character-info h2 {
  margin: 0 0 3px;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.character-info h3 {
  margin: 0 0 12px;
  color: #766490;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 800;
}

.character-info p {
  margin: 0;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.character-label {
  display: inline-block;
  margin-bottom: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.65px;
}

.abhay-label {
  background: #FFE29A;
  color: #715213;
}

.divyansh-label {
  background: #D5D9FF;
  color: #4F4F8A;
}

.gadget-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 66px;
  margin-top: 18px;
  padding: 7px 16px 7px 9px;
  border: 1px solid rgba(201, 174, 110, 0.44);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 6px 16px rgba(73, 58, 98, 0.06);
}

.staff-callout {
  border-color: rgba(159, 153, 220, 0.48);
}

.gadget-art {
  position: relative;
  display: block;
  flex: 0 0 70px;
  width: 70px;
  height: 50px;
}

.gadget-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gadget-copy > span {
  color: #716787;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.gadget-copy strong {
  font-size: 13px;
  line-height: 1.3;
}

.lamp-handle {
  position: absolute;
  left: 20px;
  bottom: 2px;
  z-index: 2;
  width: 8px;
  height: 20px;
  border: 2px solid #805D24;
  border-top: 0;
  border-radius: 0 0 5px 5px;
}

/* Two steady states, no blinking: the lantern is OFF (dim) until the existing
   character toggle (hover / click / Enter / Space on the portrait) switches the
   gadget view on, then it stays steadily lit. The glass glow, beam, ghost, and
   sparks all read the same state via .is-gadget-on (mirrored in script.js) with
   a :has() fallback, so they can never desync or animate on their own loop. */

.lamp-glass {
  position: absolute;
  left: 15px;
  bottom: 18px;
  z-index: 2;
  width: 19px;
  height: 21px;
  border: 2px solid #8A7444;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(#F6EFDB, #DFC792);
  box-shadow: none;
  transition: background 450ms ease, border-color 450ms ease, box-shadow 450ms ease;
}

.lamp-glass::before,
.lamp-glass::after {
  position: absolute;
  left: -4px;
  width: 23px;
  height: 3px;
  border-radius: 3px;
  background: #A87525;
  content: "";
}

.lamp-glass::before {
  top: -3px;
}

.lamp-glass::after {
  bottom: -3px;
}

/* Soft tapered beam anchored to the lantern's light-emitting top: the glass cap
   centre sits at ~24px from the left and ~9px from the top of the 70x50 art box,
   so the beam pivots from that exact point (transform-origin at its own base).
   rotate(100deg) projects it outward to the right and slightly downward - away
   from Abhay's portrait (character LEFT of the callout on desktop, stacked
   ABOVE it on mobile) - never upward at his face. */

.lamp-beam {
  position: absolute;
  left: 6px; /* 24px anchor x minus half of the 36px width */
  bottom: 41px; /* 50px box height minus the 9px anchor y */
  z-index: 1;
  width: 36px;
  height: 34px;
  clip-path: polygon(42% 100%, 58% 100%, 96% 2%, 4% 2%);
  background: linear-gradient(0deg, rgba(255, 216, 116, 0.85), rgba(255, 243, 190, 0.3) 68%, rgba(255, 250, 222, 0));
  filter: blur(0.6px) drop-shadow(0 0 7px rgba(255, 212, 100, 0.75));
  transform-origin: 50% 100%;
  transform: rotate(100deg); /* steady beam: tip lands on the ghost ahead-right of the cap */
  opacity: 0;
  transition: opacity 450ms ease;
  pointer-events: none;
}

/* Ghost stays hidden while OFF; when ON it sits inside the beam's illuminated
   area ahead of the lantern, fully within the art box and clear of the copy */

.lamp-ghost {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 0;
  width: 19px;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 250, 213, 0.95));
  transition: opacity 500ms ease;
}

.lamp-ghost img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tiny steady golden sparks inside the beam while the lantern is ON
   (positions follow the rotate(100deg) beam axis from the lantern cap) */

.lamp-art::before,
.lamp-art::after {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: #FFEAA8;
  box-shadow: 0 0 6px 2px rgba(255, 226, 130, 0.8);
  opacity: 0;
  content: "";
  pointer-events: none;
  transition: opacity 500ms ease;
}

.lamp-art::before {
  left: 38px;
  top: 12px;
  width: 3px;
  height: 3px;
}

.lamp-art::after {
  left: 47px;
  top: 14px;
  width: 2px;
  height: 2px;
}

/* ON state (steady - no pulsing or flicker): glass lit, beam at a constant
   glow, ghost revealed in the light, sparks visible. Defaults above = OFF. */

.character-card.is-gadget-on .lamp-glass,
.character-card:has(.character-visual.is-gadget-visible) .lamp-glass {
  border-color: #A87525;
  background: linear-gradient(#FFF6B7, #FFC94E);
  box-shadow: 0 0 12px rgba(255, 204, 77, 0.85), 0 0 26px rgba(255, 190, 60, 0.4);
}

.character-card.is-gadget-on .lamp-beam,
.character-card:has(.character-visual.is-gadget-visible) .lamp-beam {
  opacity: 0.85;
}

.character-card.is-gadget-on .lamp-ghost,
.character-card:has(.character-visual.is-gadget-visible) .lamp-ghost {
  opacity: 1;
}

.character-card.is-gadget-on .lamp-art::before,
.character-card.is-gadget-on .lamp-art::after,
.character-card:has(.character-visual.is-gadget-visible) .lamp-art::before,
.character-card:has(.character-visual.is-gadget-visible) .lamp-art::after {
  opacity: 0.9;
}

.magic-staff {
  position: absolute;
  top: 3px;
  left: 30px;
  z-index: 2;
  width: 5px;
  height: 45px;
  border-radius: 6px;
  background: linear-gradient(180deg, #B9A4F5, #6855AD 65%, #D7C9FF);
  box-shadow: 0 0 10px rgba(161, 139, 231, 0.75);
  transform: rotate(25deg);
}

.magic-staff::before,
.magic-staff::after {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid #E3D8FF;
  border-radius: 50%;
  background: #9B83E1;
  box-shadow: 0 0 9px rgba(201, 185, 255, 0.9);
  content: "";
  transform: translateX(-50%);
}

.magic-staff::before {
  top: -5px;
}

.magic-staff::after {
  bottom: -4px;
  width: 7px;
  height: 7px;
}

/* Dream portal circle recentred on the purification stick's own axis (the stick's
   centre sits at ~32.5px / ~25.5px inside the 70x50 art box) so the circle, stick,
   and its glowing gem end stay aligned at every breakpoint. */

.dream-portal {
  position: absolute;
  top: 5.5px;
  left: 12.5px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(152, 129, 226, 0.7);
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(171, 151, 237, 0.5), 0 0 13px rgba(171, 151, 237, 0.55);
  animation: portal-open 4s ease-in-out infinite;
}

.dream-portal::before,
.dream-portal::after {
  position: absolute;
  inset: 5px -3px;
  border: 1px solid rgba(137, 178, 239, 0.8);
  border-radius: 50%;
  content: "";
  transform: rotate(45deg);
}

.dream-portal::after {
  transform: rotate(-45deg);
}

/* Automatic purification sequence (8s loop, no hover): a ghost drifts in at the
   portal, the stick sprinkles it, the ghost solidifies and stands still, bright
   purification sparkles flash over it, then it dissolves upward and disappears. */

/* Measured stick geometry (70x50 art box): the staff body runs from ~(23,46) up
   to its glowing gem tip at ~(42,5). The ghost sits beyond that tip - left:52px
   leaves a visible ~4px gap past the ~47px gem edge - in front of the stick's
   up-right direction, never over the staff body (z 1 renders above the portal
   rings but under the stick's z 2), inside the callout and clear of the copy. */

.staff-ghost {
  position: absolute;
  left: 52px;
  top: 1px;
  z-index: 1;
  width: 16px;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(171, 151, 237, 0.95));
  animation: purify-ghost-cycle 8s ease-in-out infinite;
}

.staff-ghost img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bright gleam + sparkle flash that hits the ghost when the purification power lands */

.staff-ghost::before,
.staff-ghost::after {
  position: absolute;
  inset: -7px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), rgba(221, 210, 255, 0.55) 42%, transparent 72%);
  opacity: 0;
  content: "";
  pointer-events: none;
  animation: purify-gleam 8s ease-in-out infinite;
}

.staff-ghost::after {
  inset: -4px;
  background:
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.95) 50%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.95) 50%, transparent 55%);
  animation-delay: 0.3s; /* cross-sparkle flares a beat after the glow */
}

.staff-spark {
  position: absolute;
  z-index: 3;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 0 8px 2px #C9B8FF;
}

.staff-spark-one {
  top: 5px;
  left: 39px;
  animation: purify-sprinkle 8s ease-in-out infinite; /* hop from the gem onto the ghost */
}

.staff-spark-two {
  bottom: 5px;
  left: 21px;
  animation: purify-zap-spark 8s ease-in-out infinite; /* flashes with the gleam */
}

/* Small floating sparkles */

.card-sparkle {
  position: absolute;
  width: 22px;
  font-size: 22px;
  pointer-events: none;
  animation: about-twinkle 3s ease-in-out infinite;
}

.sparkle-one {
  top: 18px;
  right: 22px;
  color: #E7BE57;
}

.sparkle-two {
  top: 18px;
  left: 22px;
  color: #AA95DE;
  animation-delay: 1.5s;
}

/* Better together divider */

.together-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 28px auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  max-width: 240px;
  background: #D8C8DD;
}

.together-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.heart-icon {
  color: #F39ABD;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 3px 9px rgba(243, 154, 189, 0.35);
  animation: about-heartbeat 2.4s ease-in-out infinite;
}

.tiny-sparkle {
  display: none;
}

/* Magical closing footer */

.orbit-footer {
  --footer-ink: var(--about-text, #39364F);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 24px 18px;
  color: var(--footer-ink);
  /* Light neutral lavender-gray footer: clearly distinct from the dreamy
     lavender/periwinkle closing CTA above it. */
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.7), transparent 55%),
    linear-gradient(180deg, #FAF8FC 0%, #F0EDF6 55%, #F4F2F8 100%);
  border-top: 1px solid rgba(147, 131, 195, 0.32);
}

.orbit-footer::before,
.orbit-footer::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.orbit-footer::before {
  top: 18%;
  left: -12%;
  width: 54%;
  height: 36%;
  border-radius: 50%;
  background: rgba(255, 220, 232, 0.42);
  filter: blur(72px);
  animation: footer-mist-drift 18s ease-in-out infinite alternate;
}

.orbit-footer::after {
  right: -14%;
  bottom: 4%;
  width: 56%;
  height: 36%;
  border-radius: 50%;
  background: rgba(207, 226, 255, 0.62);
  filter: blur(82px);
  animation: footer-mist-drift 22s ease-in-out -8s infinite alternate-reverse;
}

.orbit-footer__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  margin-inline: auto;
}

.orbit-footer__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orbit-footer__decor span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.orbit-footer__decor img {
  display: block;
  width: 100%;
  height: auto;
}

.orbit-footer__bat {
  width: clamp(38px, 5vw, 62px);
  opacity: 0.5;
}

.orbit-footer__bat--one {
  top: 13%;
  left: 5%;
  animation: footer-bat-glide 15s ease-in-out infinite;
}

.orbit-footer__bat--two {
  top: 42%;
  right: 7%;
  width: clamp(30px, 4vw, 48px);
  animation: footer-bat-glide 19s ease-in-out -7s infinite reverse;
}

.orbit-footer__ghost {
  width: clamp(42px, 5vw, 60px);
  opacity: 0.66;
  filter: drop-shadow(0 0 12px rgba(168, 138, 230, 0.48));
  animation: footer-ghost-float 8s ease-in-out infinite;
}

.orbit-footer__ghost--one {
  top: 38%;
  left: 2.5%;
}

.orbit-footer__ghost--two {
  top: 19%;
  right: 3%;
  width: clamp(36px, 4.4vw, 52px);
  animation-delay: -4s;
  animation-direction: alternate-reverse;
}

.orbit-footer__pumpkin {
  bottom: 7%;
  width: clamp(74px, 10vw, 120px);
  filter: drop-shadow(0 0 12px rgba(255, 176, 75, 0.35));
  animation: footer-pumpkin-glow 5.5s ease-in-out infinite;
}

.orbit-footer__pumpkin--left {
  left: max(12px, calc((100% - 1320px) / 2));
}

.orbit-footer__pumpkin--right {
  right: max(12px, calc((100% - 1320px) / 2));
  animation-delay: -2.7s;
}

.orbit-footer__spark {
  width: 20px;
  opacity: 0.7;
  animation: footer-spark-drift 5s ease-in-out infinite;
}

.orbit-footer__spark--one {
  top: 31%;
  left: 12%;
}

.orbit-footer__spark--two {
  top: 10%;
  right: 13%;
  width: 16px;
  animation-delay: -2.1s;
}

.orbit-footer__cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 62px;
  padding: clamp(30px, 5vw, 52px) 24px;
  overflow: hidden;
  border: 1px solid rgba(168, 138, 230, 0.26);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 232, 163, 0.45), transparent 54%),
    linear-gradient(130deg, rgba(255, 248, 242, 0.9), rgba(255, 220, 232, 0.72) 52%, rgba(220, 207, 255, 0.8));
  box-shadow: 0 20px 46px rgba(91, 58, 133, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}

.orbit-footer__cta::after {
  position: absolute;
  inset: auto 12% -72% 12%;
  z-index: -1;
  height: 100%;
  border-radius: 50%;
  background: rgba(207, 226, 255, 0.64);
  filter: blur(36px);
  content: "";
}

.orbit-footer__eyebrow {
  margin-bottom: 12px;
  color: #72589E;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.orbit-footer__cta h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(27px, 4vw, 43px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -1px;
}

.orbit-footer__cta p {
  max-width: 590px;
  margin: 15px 0 22px;
  color: #625A75;
  font-size: 15px;
  line-height: 1.65;
}

.orbit-footer__cta-button {
  min-height: 48px;
  box-shadow: 0 9px 22px rgba(142, 104, 205, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.orbit-footer__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(142, 104, 205, 0.3);
}

.orbit-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) minmax(105px, 0.7fr) minmax(170px, 1.05fr) minmax(130px, 0.7fr);
  gap: clamp(24px, 4vw, 52px);
  padding: 0 7px 38px;
}

.orbit-footer__brand {
  max-width: 350px;
}

.orbit-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--footer-ink);
  text-decoration: none;
}

.orbit-footer__logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(140, 108, 200, 0.35);
  box-shadow: 0 6px 14px rgba(101, 72, 163, 0.22);
}

.orbit-footer__logo span {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
}

.orbit-footer__tagline {
  margin: 8px 0 9px;
  color: #6548A3;
  font-size: 14px;
  font-weight: 800;
}

.orbit-footer__description,
.orbit-footer__connect p {
  margin: 0;
  color: #625A75;
  font-size: 12px;
  line-height: 1.7;
}

.orbit-footer__friends {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 92px;
  margin-top: 10px;
}

.orbit-footer__friends img {
  width: auto;
  height: 82px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 4px 5px rgba(57, 54, 79, 0.12));
}

.orbit-footer__friends span {
  align-self: center;
  margin-left: 3px;
  color: #8068AC;
  font-size: 10px;
  font-weight: 800;
}

.orbit-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding-top: 9px;
}

.orbit-footer__nav h3 {
  margin: 0 0 5px;
  color: #43375D;
  font-size: 13px;
  font-weight: 900;
}

.orbit-footer__nav a {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: #625A75;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, translate 180ms ease;
}

.orbit-footer__nav a:hover {
  color: #6548A3;
  translate: 3px 0;
}

.orbit-footer__nav a:focus-visible,
.orbit-footer__logo:focus-visible,
.orbit-footer__cta-button:focus-visible {
  outline: 3px solid rgba(101, 72, 163, 0.58);
  outline-offset: 4px;
  border-radius: 5px;
}

.orbit-footer__connect p {
  max-width: 190px;
  margin-top: 2px;
}

.orbit-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 7px 0;
  border-top: 1px solid rgba(101, 72, 163, 0.16);
}

.orbit-footer__bottom p {
  margin: 0;
  color: #756C87;
  font-size: 10px;
}

.orbit-footer__bottom-star {
  color: #A88AE6;
  font-size: 14px;
}

.orbit-footer.has-reveal .footer-reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 20px;
}

.orbit-footer .footer-reveal {
  transition: opacity 700ms ease, translate 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.orbit-footer .orbit-footer__main > :nth-child(2) {
  transition-delay: 90ms;
}

.orbit-footer .orbit-footer__main > :nth-child(3) {
  transition-delay: 170ms;
}

.orbit-footer .orbit-footer__main > :nth-child(4) {
  transition-delay: 250ms;
}

@keyframes footer-mist-drift {
  to { translate: 8% -7%; scale: 1.12; }
}

@keyframes footer-bat-glide {
  0%, 100% { translate: 0 0; rotate: -5deg; }
  35% { translate: 18px -10px; rotate: 4deg; }
  70% { translate: -8px 8px; rotate: -2deg; }
}

@keyframes footer-ghost-float {
  0%, 100% { translate: 0 0; rotate: -4deg; opacity: 0.56; }
  50% { translate: 9px -15px; rotate: 5deg; opacity: 0.82; }
}

@keyframes footer-pumpkin-glow {
  0%, 100% { translate: 0 0; filter: drop-shadow(0 0 9px rgba(255, 176, 75, 0.28)); }
  50% { translate: 0 -7px; filter: drop-shadow(0 0 17px rgba(255, 186, 86, 0.58)); }
}

@keyframes footer-spark-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; opacity: 0.48; scale: 0.86; }
  50% { translate: 5px -11px; rotate: 14deg; opacity: 0.95; scale: 1.12; }
}

@media (max-width: 900px) {
  .orbit-footer__main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }

  .orbit-footer__brand {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .orbit-footer {
    padding: 54px 18px 16px;
  }

  .orbit-footer__cta {
    margin-bottom: 40px;
    padding: 30px 18px;
    border-radius: 24px;
  }

  .orbit-footer__cta h2 {
    font-size: clamp(25px, 7vw, 33px);
    letter-spacing: -0.6px;
  }

  .orbit-footer__cta p {
    margin-block: 12px 18px;
    font-size: 13px;
  }

  .orbit-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
    padding-inline: 0;
  }

  .orbit-footer__brand,
  .orbit-footer__connect {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .orbit-footer__brand {
    max-width: 390px;
    margin-inline: auto;
    text-align: center;
  }

  .orbit-footer__logo {
    justify-content: center;
  }

  .orbit-footer__friends {
    justify-content: center;
  }

  .orbit-footer__nav {
    gap: 4px;
    padding-top: 0;
  }

  .orbit-footer__nav h3 {
    font-size: 12px;
  }

  .orbit-footer__nav a {
    min-height: 36px;
    font-size: 12px;
  }

  .orbit-footer__connect p {
    max-width: 260px;
  }

  .orbit-footer__bat {
    opacity: 0.34;
  }

  .orbit-footer__ghost {
    width: 34px;
  }

  .orbit-footer__ghost--one {
    top: 42%;
    left: 1%;
  }

  .orbit-footer__decor .orbit-footer__ghost--two {
    display: none;
  }

  .orbit-footer__pumpkin {
    bottom: 2%;
    width: 58px;
    opacity: 0.76;
  }

  .orbit-footer__spark--one {
    left: 4%;
  }

  .orbit-footer__spark--two {
    right: 4%;
  }

  .orbit-footer__bottom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding-inline: 0;
    text-align: center;
  }

  .orbit-footer__bottom p {
    font-size: 9px;
  }
}

.teamwork-reveal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 54px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(177, 161, 221, 0.38);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 8% 8%, rgba(255, 231, 174, 0.34), transparent 40%),
    linear-gradient(120deg, #F4EEFF, #EEF5FF 58%, #FFF5F5);
  box-shadow: 0 15px 36px rgba(89, 77, 129, 0.1);
}

.teamwork-copy {
  position: relative;
  min-width: 0;
}

.teamwork-copy h2,
.mission-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.1vw, 37px);
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.teamwork-copy > p {
  margin: 0;
  color: #625A75;
  font-size: 16px;
  line-height: 1.7;
}

.team-magic {
  position: relative;
  width: 116px;
  height: 44px;
  margin-top: 21px;
}

.team-magic-gold,
.team-magic-blue {
  position: absolute;
  top: 19px;
  width: 59px;
  height: 3px;
  border-radius: 50%;
  filter: blur(1px);
  animation: team-magic-flow 2.8s ease-in-out infinite alternate;
}

.team-magic-gold {
  left: 0;
  background: linear-gradient(90deg, transparent, #F4C95D);
  box-shadow: 0 0 12px #F4C95D;
}

.team-magic-blue {
  right: 0;
  background: linear-gradient(90deg, #A997EA, transparent);
  box-shadow: 0 0 12px #A997EA;
  animation-delay: -1.4s;
}

.team-magic > img {
  position: absolute;
  top: 3px;
  left: 46px;
  z-index: 1;
  width: 24px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
  animation: peaceful-spirit 3s ease-in-out infinite;
}

.teamwork-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: #28204C;
  box-shadow: 0 15px 32px rgba(54, 39, 92, 0.2);
  transform: perspective(900px) rotateY(2deg);
  transition: transform 400ms ease, box-shadow 400ms ease;
}

.teamwork-art > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.teamwork-art::after {
  position: absolute;
  inset: 45% 0 0;
  z-index: 0;
  content: "";
  background: linear-gradient(transparent, rgba(25, 19, 47, 0.72));
  pointer-events: none;
}

.teamwork-art figcaption {
  position: absolute;
  right: 16px;
  bottom: 13px;
  left: 16px;
  z-index: 1;
  color: #FFF9EF;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mission-section {
  margin: 56px auto 0;
}

.mission-heading {
  margin-bottom: 21px;
  text-align: center;
}

.mission-heading .teamwork-eyebrow {
  margin-bottom: 7px;
}

.mission-heading h2 {
  margin-bottom: 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mission-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(177, 161, 221, 0.3);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(89, 77, 129, 0.07);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(89, 77, 129, 0.13);
}

.halloween-mission {
  background: linear-gradient(125deg, #FFF8E5, #FFFDF7);
}

.dream-mission {
  background: linear-gradient(125deg, #F1EDFF, #F4F8FF);
}

.mission-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 224, 153, 0.48);
}

.dream-mission .mission-icon {
  background: rgba(200, 190, 245, 0.38);
}

.mission-icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mission-card h3 {
  margin: 2px 0 7px;
  font-size: 17px;
  line-height: 1.3;
}

.mission-card p {
  margin: 0;
  color: #625A75;
  font-size: 14px;
  line-height: 1.6;
}

@keyframes about-web-glow {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 0.86;
  }
}

@keyframes about-twinkle {
  0%,
  100% {
    opacity: 0.65;
    scale: 0.92;
    rotate: 0deg;
  }

  50% {
    opacity: 1;
    scale: 1.1;
    rotate: 12deg;
  }
}

@keyframes about-heartbeat {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.12;
  }
}

.about-page.has-scroll-reveals .about-reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 28px;
}

.about-reveal {
  transition: opacity 750ms ease, translate 750ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.about-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.divyansh-card.about-reveal {
  transition-delay: 180ms;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .opening-art:hover,
  .teamwork-art:hover {
    transform: perspective(900px) rotateY(0) translateY(-4px);
    box-shadow: 0 24px 46px rgba(75, 55, 111, 0.24);
  }

  .opening-art:hover > img,
  .teamwork-art:hover > img {
    transform: scale(1.035);
  }
}

@keyframes intro-copy-arrive {
  from {
    opacity: 0;
    translate: 0 18px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes opening-scene-arrive {
  from {
    opacity: 0.35;
    scale: 1.06;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes opening-scene-drift {
  to {
    scale: 1.055;
  }
}

@keyframes mist-drift {
  to {
    translate: 22px -9px;
    scale: 1.18;
  }
}

@keyframes opening-star-glow {
  0%,
  100% {
    opacity: 0.55;
    scale: 0.8;
  }

  50% {
    opacity: 1;
    scale: 1.2;
  }
}

@keyframes ghost-reveal {
  0%,
  24%,
  100% {
    opacity: 0;
    translate: -8px 6px;
    scale: 0.8;
  }

  38%,
  72% {
    opacity: 0.95;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes character-aura {
  0%,
  100% {
    scale: 0.94;
    box-shadow: 0 0 18px rgba(246, 200, 95, 0.12);
  }

  50% {
    scale: 1.04;
    box-shadow: 0 0 38px rgba(246, 200, 95, 0.34);
  }
}

@keyframes character-hover {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@keyframes portal-open {
  0%,
  100% {
    opacity: 0.55;
    scale: 0.72;
    rotate: -18deg;
  }

  50% {
    opacity: 1;
    scale: 1.08;
    rotate: 18deg;
  }
}

/* Purification cycle keyframes - all four share one 8s timeline:
   12-22% ghost drifts in faintly · 26-41% the stick sprinkles a droplet onto it ·
   38-70% the ghost solidifies and stands still · 56-74% bright gleam + sparkles
   flash over it (the purification power) · 70-82% it dissolves upward and is gone. */

@keyframes purify-ghost-cycle {
  0%,
  12% {
    opacity: 0;
    transform: translateY(7px) scale(0.9);
  }

  22%,
  30% {
    opacity: 0.55;
    transform: translateY(0) scale(0.96);
  }

  38%,
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  82%,
  100% {
    opacity: 0;
    transform: translateY(-7px) scale(1.08);
  }
}

@keyframes purify-sprinkle {
  0%,
  26% {
    opacity: 0.3;
    translate: 0 0;
    scale: 0.7;
  }

  31% {
    opacity: 1;
    translate: 7px 1px;
    scale: 1.25;
  }

  37% {
    opacity: 0.9;
    translate: 13px 3px;
    scale: 1.1;
  }

  41% {
    opacity: 0;
    translate: 17px 4px;
    scale: 0.8;
  }

  45%,
  54% {
    opacity: 0;
    translate: 0 0;
    scale: 0.7;
  }

  59% {
    opacity: 1;
    translate: 0 0;
    scale: 1.6;
  }

  63% {
    opacity: 0.5;
    translate: 0 0;
    scale: 1;
  }

  70%,
  100% {
    opacity: 0.3;
    translate: 0 0;
    scale: 0.7;
  }
}

@keyframes purify-zap-spark {
  0%,
  52% {
    opacity: 0.3;
    scale: 0.7;
  }

  59% {
    opacity: 1;
    scale: 1.7;
  }

  64% {
    opacity: 0.85;
    scale: 1.2;
  }

  72%,
  100% {
    opacity: 0.3;
    scale: 0.7;
  }
}

@keyframes purify-gleam {
  0%,
  56% {
    opacity: 0;
    scale: 0.5;
  }

  62% {
    opacity: 1;
    scale: 1.3;
  }

  67% {
    opacity: 0.75;
    scale: 1.05;
  }

  74%,
  100% {
    opacity: 0;
    scale: 1.55;
  }
}

@keyframes team-magic-flow {
  to {
    opacity: 0.45;
    scale: 0.78 1;
  }
}

@keyframes peaceful-spirit {
  0%,
  100% {
    translate: 0 0;
    scale: 0.94;
  }

  50% {
    translate: 0 -4px;
    scale: 1.08;
  }
}

/* Tablet */

@media (max-width: 800px) {
  .about-page {
    padding: 34px 20px 24px;
  }

  .about-opening {
    gap: 24px;
    margin-bottom: 54px;
  }

  .about-heading h1 {
    font-size: clamp(32px, 4.3vw, 44px);
  }

  .opening-art {
    min-height: 190px;
    border-radius: 24px;
  }

  .about-heading {
    margin-bottom: 0;
  }

  .character-card {
    gap: 14px;
    min-height: 225px;
    padding: 18px;
    border-radius: 22px;
  }

  .character-visual {
    height: 205px;
  }

  .character-image {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    transform: none;
    object-fit: contain;
  }

  .character-info h2 {
    font-size: 25px;
  }

  .character-info p {
    font-size: 14px;
    line-height: 1.6;
  }

  .character-label {
    font-size: 10px;
    padding: 6px 10px;
  }

  .about-spider {
    left: 7%;
  }

  .about-side-decorations {
    opacity: 0.72;
  }

  .side-bat,
  .side-ghost,
  .side-pumpkin {
    width: 36px;
  }

  .side-bat-left,
  .side-ghost-left,
  .side-pumpkin-left {
    left: 0;
  }

  .side-bat-right,
  .side-ghost-right,
  .side-pumpkin-right {
    right: 0;
  }

  .together-divider {
    margin-block: 38px;
  }

  .teamwork-reveal {
    gap: 22px;
    padding: 24px;
  }

  .mission-grid {
    gap: 12px;
  }

  .mission-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    padding: 17px;
  }

  .mission-icon {
    width: 44px;
    height: 44px;
  }

  .mission-icon img {
    width: 30px;
    height: 30px;
  }
}

/* Mobile: stack character art and details to keep both readable */

@media (max-width: 520px) {
  .about-page {
    padding: 28px 14px 22px;
  }

  .about-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    margin-bottom: 45px;
  }

  .about-heading {
    padding-inline: 3px;
    text-align: center;
  }

  .about-heading h1 {
    font-size: clamp(32px, 9vw, 42px);
    letter-spacing: -0.8px;
    line-height: 1.15;
  }

  .about-heading p {
    font-size: 14px;
    line-height: 1.55;
  }

  .about-eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }

  .about-intro {
    margin-bottom: 26px;
  }

  .about-intro h2 {
    font-size: clamp(22px, 6vw, 28px);
    letter-spacing: -0.4px;
  }

  .about-intro h2::after {
    width: 46px;
    height: 3.5px;
    margin-top: 10px;
  }

  .about-intro p {
    margin-top: 12px;
    font-size: 14px;
  }

  .opening-art {
    min-height: 0;
    aspect-ratio: 1.4;
    border-radius: 22px;
    transform: none;
  }

  .opening-caption {
    right: 13px;
    bottom: 11px;
    font-size: 10px;
  }

  .about-web {
    width: 82px;
    top: 0;
  }

  .about-web-left {
    left: 0;
  }

  .about-web-right {
    right: 0;
  }

  .about-side-decorations {
    display: none;
  }

  .about-spider {
    left: 3%;
    width: 25px;
  }

  .about-spider-swing {
    padding-top: 62px;
  }

  .character-image {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    transform: none;
    object-fit: contain;
  }

  .together-divider {
    margin-block: 34px;
  }

  .about-lightning {
    width: 19px;
  }

  .about-lightning-left {
    left: 1%;
  }

  .about-lightning-right {
    right: 1%;
  }

  .about-sparkle-one {
    left: 20%;
  }

  .about-sparkle-three {
    right: 5%;
  }

  .character-card,
  .divyansh-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 14px;
    border-radius: 19px;
  }

  .character-visual {
    grid-row: 1;
    width: 100%;
    height: clamp(220px, 68vw, 290px);
    min-width: 0;
  }

  .character-info {
    grid-row: 2;
  }

  .character-image {
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    animation: none;
  }

  .character-visual .character-halo {
    width: min(230px, 76%);
  }

  .gadget-callout {
    gap: 7px;
    min-height: 54px;
    margin-top: 11px;
    padding: 5px 9px 5px 5px;
    border-radius: 14px;
  }

  .gadget-art {
    flex-basis: 70px;
    width: 70px;
    height: 50px;
    scale: 0.85; /* keep the intrinsic 70x50 art geometry intact; only scale it down */
    transform-origin: left center;
  }

  .gadget-copy > span {
    font-size: 10px;
  }

  .gadget-copy strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .character-halo {
    width: 95%;
  }

  .character-info h2 {
    font-size: 23px;
    line-height: 1.22;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
  }

  .character-info p {
    font-size: 14px;
    line-height: 1.6;
  }

  .character-label {
    font-size: 10px;
    letter-spacing: 0.2px;
    line-height: 1.3;
    padding: 5px 7px;
    margin-bottom: 9px;
    max-width: 100%;
  }

  .card-sparkle {
    font-size: 16px;
  }

  .sparkle-one {
    top: 8px;
    right: 8px;
  }

  .sparkle-two {
    top: 8px;
    left: 8px;
  }

  .card-sparkle {
    width: 16px;
  }

  .together-divider {
    gap: 10px;
    margin: 23px auto;
  }

  .together-content {
    font-size: 14px;
  }

  .heart-icon {
    font-size: 26px;
  }

  .teamwork-reveal {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 38px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .teamwork-copy h2,
  .mission-heading h2 {
    font-size: 25px;
  }

  .teamwork-copy > p {
    font-size: 14px;
    line-height: 1.6;
  }

  .teamwork-art {
    transform: none;
    border-radius: 17px;
  }

  .teamwork-art > img {
    aspect-ratio: 1.35;
  }

  .mission-section {
    margin-top: 40px;
  }

  .mission-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .mission-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .mission-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .mission-card h3 {
    font-size: 15px;
  }

  .mission-card p {
    font-size: 13px;
    line-height: 1.55;
  }

}

/* Very narrow phones */

@media (max-width: 360px) {
  .about-page {
    padding-inline: 10px;
  }

  .about-heading h1 {
    font-size: 28px;
  }

  .about-intro h2 {
    font-size: 21px;
  }

  .about-intro p {
    font-size: 13.5px;
  }

  .opening-art {
    aspect-ratio: 1.2;
  }

  .character-card,
  .divyansh-card {
    gap: 10px;
    padding: 12px;
  }

  .character-visual {
    height: clamp(210px, 72vw, 250px);
  }

  .character-info h2 {
    font-size: 21px;
  }

  .gadget-callout {
    gap: 7px;
    padding-right: 8px;
  }

  .gadget-art {
    flex-basis: 70px;
    width: 70px;
    height: 50px;
    scale: 0.78; /* intrinsic art geometry preserved; scaled uniformly on narrow phones */
    transform-origin: left center;
  }

  .gadget-copy strong {
    font-size: 11px;
  }

  .teamwork-copy h2,
  .mission-heading h2 {
    font-size: 22px;
  }

  .character-label {
    font-size: 9px;
    padding: 5px 7px;
  }

}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .about-page *,
  .about-page *::before,
  .about-page *::after {
    animation: none;
    transition: none;
  }

  .about-page.has-scroll-reveals .about-reveal:not(.is-visible) {
    opacity: 1;
    translate: none;
  }

  .opening-ghost {
    opacity: 1;
  }

  /* The lantern follows its normal ON/OFF state (changes simply become
     instant here). Only the purification ghost is frozen visible, since
     its timed cycle is disabled under reduced motion. */

  .staff-ghost {
    opacity: 1;
    transform: none;
  }

  .character-halo {
    scale: 1;
  }

  .character-card:hover,
  .orbit-footer__cta-button:hover {
    transform: none;
    translate: none;
  }

  .orbit-footer *,
  .orbit-footer *::before,
  .orbit-footer *::after {
    animation: none;
    transition: none;
  }

  .orbit-footer .footer-reveal,
  .orbit-footer.has-reveal .footer-reveal:not(.is-visible) {
    opacity: 1;
    translate: none;
  }
}

@keyframes about-spider-enter {
  from {
    translate: 0 -110px;
  }

  85% {
    translate: 0 -6px;
  }

  to {
    translate: 0 0;
  }
}

@keyframes about-spider-sway {
  0%,
  100% {
    rotate: -1.4deg;
  }

  50% {
    rotate: 1.4deg;
  }
}

@keyframes about-spider-settle {
  0%,
  100% {
    rotate: 0deg;
  }

  30% {
    rotate: 2.2deg;
  }

  60% {
    rotate: -1.2deg;
  }
}

@keyframes about-bolt-glow {
  0%,
  100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 2px rgba(181, 207, 255, 0.35));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 9px rgba(181, 207, 255, 0.6));
  }
}
