#about {
  position: relative;
}

#about[data-pillar-active] {
  isolation: isolate;
  overflow-x: clip;
}

#about[data-pillar-active] > .container {
  position: relative;
  z-index: 1;
}

.pillar-light {
  position: absolute;
  z-index: 0;
  width: var(--beam-width, 190px);
  transform: translateX(-50%);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  mix-blend-mode: screen;
  --ring-diameter: calc(var(--numeral-height, clamp(36px, 3.8vw, 58px)) * 1.42);
}

.pillar-light:not([data-on]) {
  display: none;
}

.pillar-light[data-on] {
  visibility: visible;
  opacity: 1;
}

.pillar-light > i,
.pillar-light > i::before,
.pillar-light > i::after {
  position: absolute;
  display: block;
  pointer-events: none;
}

.pillar-light-shaft {
  inset: 0 0 2px;
  background: center top / 100% 100% no-repeat url("/media/pillar-rose-rays.webp");
}
.pillar-light-shaft,
.pillar-light-dust {
  -webkit-mask: linear-gradient(#000 0 80%, transparent 100%) top center / 100% 128% no-repeat;
  mask: linear-gradient(#000 0 80%, transparent 100%) top center / 100% 128% no-repeat;
}

.pillar-light-source {
  z-index: 2;
  top: 0;
  left: 60.5%;
  width: clamp(52px, 48%, 108px);
  height: 32px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 5px 2.6px at 50% 50%, white 15%, #fff0f7 44%, #ffe4f7a8 76%, transparent),
    radial-gradient(ellipse 32% 18% at 50% 50%, #ffdeefb8 6%, #ffa6d572 38%, transparent 96%),
    radial-gradient(ellipse 49% 49% at 50% 53%, #fca6df70 1%, #f16aac26 48%, transparent 98%);
}

.pillar-light-source::after {
  content: "";
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
  border-radius: 100%;
  background: linear-gradient(90deg, transparent, #ffbddd59 26%, #fff2fb 49%, #ffe4f5c9 55%, transparent);
}

.pillar-light-source::before {
  content: "";
  left: calc(50% - .7px);
  top: 37%;
  width: 1.4px;
  height: 32%;
  background: linear-gradient(transparent, #ffeff7 47%, #ffd9ed82 58%, transparent);
  border-radius: 90%;
}

.pillar-light-dust {
  inset: 5% 3% 5%;
  background:
    radial-gradient(circle at 49% 12%, #fff5fbb0 .55px, transparent 1.35px),
    radial-gradient(circle at 45% 24%, #ffe6f788 .65px, transparent 1.4px),
    radial-gradient(circle at 57% 32%, #ffe5f6a8 .5px, transparent 1.35px),
    radial-gradient(circle at 40% 40%, #f8cbeb8c .6px, transparent 1.3px),
    radial-gradient(circle at 62% 48%, #ffe6f780 .7px, transparent 1.55px),
    radial-gradient(circle at 45% 54%, #ffdaed9c .5px, transparent 1.3px),
    radial-gradient(circle at 28% 65%, #edb3d775 .55px, transparent 1.3px),
    radial-gradient(circle at 71% 71%, #ffdfedb0 .7px, transparent 1.6px),
    radial-gradient(circle at 39% 76%, #ffebf7a6 .6px, transparent 1.4px),
    radial-gradient(circle at 56% 81%, #f8cce474 .65px, transparent 1.4px),
    radial-gradient(circle at 23% 88%, #f9d3e880 .55px, transparent 1.3px),
    radial-gradient(circle at 66% 96%, #fff1fba8 .6px, transparent 1.5px);
}

.pillar-light-target {
  left: 50%;
  bottom: calc(var(--numeral-height, clamp(36px, 3.8vw, 58px)) * .52 + 2px);
  width: var(--ring-diameter);
  height: var(--ring-diameter);
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 52% 64%, #ff94c75e, #e456a323 48%, transparent 72%);
}

.pillar-light-target::before,
.pillar-light-target::after {
  content: "";
  inset: 0;
  border-radius: 50%;
  border: 1px solid #ffabd992;
  border-top-color: #ffdeefc9;
  border-right-color: #e394c572;
  border-bottom-color: #ffe8f5d9;
  box-shadow: 0 0 5px #fc80bc56;
}

.pillar-light-target::after {
  inset: 5px 6px 5px 4px;
  border-color: #ffc6e47e #ffb7dd51 #ffd4ed9c #f7a3d765;
  box-shadow: none;
}

.pillar-light-floor {
  left: 50%;
  bottom: -6px;
  width: 91%;
  height: clamp(13px, 1.35vw, 22px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff0f6d9 0%, #ffb5dcb5 12%, #fa69b279 29%, #d84a962d 54%, transparent 73%);
}

.pillar-light-floor::before {
  content: "";
  inset: 27% 18%;
  border-radius: 50%;
  border: 1px solid #ffdfefb7;
  border-top-color: #ffc2e275;
  box-shadow: 0 0 4px #ff89bfa6, inset 0 -1px 2px #ffc1df69;
}

@keyframes pillar-ray-descent {
  from { -webkit-mask-size: 100% 0%; mask-size: 100% 0%; }
  to { -webkit-mask-size: 100% 128%; mask-size: 100% 128%; }
}
@keyframes pillar-ray-rest {
  from { opacity: .8; }
  to { opacity: 1; }
}
@keyframes pillar-source-ignite {
  from { opacity: .16; transform: translate(-50%, -50%) scale(.36); }
  58% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes pillar-dust-fall {
  from { transform: translateY(-3px); opacity: .38; }
  to { transform: translateY(3px); opacity: .72; }
}
@keyframes pillar-ring-arrival {
  from { transform: translate(-50%, 50%) scale(.74); opacity: 0; }
  62% { opacity: 1; }
  to { transform: translate(-50%, 50%) scale(1); opacity: .86; }
}
@keyframes pillar-floor-arrival {
  from { transform: translateX(-50%) scale(.24, .6); opacity: 0; }
  62% { opacity: 1; }
  to { transform: translateX(-50%) scale(1); opacity: .87; }
}

@media (prefers-reduced-motion: no-preference) {
  .pillar-light[data-on] .pillar-light-shaft {
    animation: pillar-ray-descent .82s cubic-bezier(.35,.05,.49,1) both,
      pillar-ray-rest 4.4s ease-in-out .82s infinite alternate;
  }
  .pillar-light[data-on] .pillar-light-source { animation: pillar-source-ignite .46s ease-out both; }
  .pillar-light[data-on] .pillar-light-dust {
    animation: pillar-ray-descent .82s cubic-bezier(.35,.05,.49,1) both,
      pillar-dust-fall 3.2s ease-in-out .48s infinite alternate both;
  }
  .pillar-light[data-on] .pillar-light-target { animation: pillar-ring-arrival .58s cubic-bezier(.2,.72,.37,1) .56s both; }
  .pillar-light[data-on] .pillar-light-floor { animation: pillar-floor-arrival .67s cubic-bezier(.2,.72,.37,1) .6s both; }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-light-shaft { opacity: .72; }
  .pillar-light-dust { opacity: .4; }
}
