#about { position: relative; }
#about[data-pillar-active] { z-index: 5; }
.pillar-list .pillar-trigger {
  position: absolute;
  inset: -2px 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  cursor: pointer;
  appearance: none;
}
.pillar-list .pillar-trigger:focus-visible {
  outline: 2px solid #f5acd4;
  outline-offset: 4px;
}

.pillar-card,
.pillar-wire {
  position: absolute;
}
.pillar-card[hidden],
.pillar-wire[hidden] {
  display: none !important;
}

.pillar-card {
  z-index: 22;
  isolation: isolate;
  box-sizing: border-box;
  width: clamp(330px, 30vw, 390px);
  max-width: calc(100vw - 24px);
  max-height: var(--pillar-max-height, none);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ad6995 #241322;
  border: 1px solid #af658f;
  border-radius: 22px;
  padding: 22px 23px 21px;
  color: #fff2fa;
  background:
    radial-gradient(ellipse 19% 8px at 51% 0%, rgb(255 204 232 / 68%), transparent 92%),
    radial-gradient(ellipse 5px 17% at 0 48%, rgb(254 178 220 / 31%), transparent 94%),
    radial-gradient(ellipse 22% 9px at 58% 100%, rgb(255 186 222 / 58%), transparent 95%),
    radial-gradient(ellipse at 6% -25%, rgb(242 156 211 / 21%), transparent 52%),
    radial-gradient(ellipse at 104% 89%, rgb(189 68 146 / 19%), transparent 55%),
    linear-gradient(126deg, #341c30, #1c101d 53%, #361c31);
  box-shadow:
    inset 0 1px 0 rgb(255 222 242 / 36%),
    inset 0 -1px 0 rgb(249 159 210 / 27%),
    0 14px 38px -10px rgb(10 3 13 / 90%),
    -3px -2px 18px -8px rgb(247 123 195 / 38%),
    4px 5px 21px -11px rgb(245 105 195 / 45%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--sans, Arial, sans-serif);
  text-align: left;
  pointer-events: auto;
}

/* Mask the reflection to the rounded rim, leaving the dark glass behind the text. */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .pillar-card::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background:
      radial-gradient(ellipse 20% 10px at 51% 0%, #fffaff 8%, #ffcee8 38%, transparent 96%),
      radial-gradient(ellipse 9px 20% at 0 47%, #ffe7f7 6%, transparent 100%),
      radial-gradient(ellipse 20% 9px at 58% 100%, #fff3fb 6%, #efa7cf 50%, transparent 98%),
      conic-gradient(from 178deg at 48% 49%,
      #b86d9c 0deg, #9b526f 25deg, #f7c5df 51deg, #aa6396 66deg,
      #885375 107deg, #faddf0 139deg, #fff4f9 147deg, #c781af 156deg,
      #975b83 207deg, #f6bfdf 237deg, #a96087 254deg,
      #86496f 283deg, #fcd9ed 314deg, #b86d9c 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}

.pillar-card-head {
  position: relative;
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
}
.pillar-card-symbol {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 49px;
  height: 49px;
  padding: 4px;
  margin-top: 1px;
  color: #f6b4de;
  border: 1px solid #cf90b6;
  border-radius: 12px;
  background:
    linear-gradient(143deg, rgb(255 215 242 / 17%), transparent 36%, rgb(77 26 62 / 45%) 59%, rgb(211 115 171 / 14%)),
    #3a2135;
  box-shadow: inset 0 1px 0 #f6c7df, inset 1px 0 0 rgb(230 152 195 / 25%),
    inset 0 -2px 3px rgb(35 12 30 / 80%), 0 2px 5px #140b13, 0 0 8px rgb(233 123 191 / 20%);
}
.pillar-card-symbol svg { display: block; width: 100%; height: 100%; }
.pillar-card-title {
  margin: 0;
  padding-inline-end: 15px;
  color: #f7cade;
  font: 400 clamp(1.24rem, 1.75vw, 1.55rem) / 1.16 var(--serif, Georgia, serif);
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 1px 2px #100510;
}
.pillar-card-copy {
  margin: .42rem 0 0;
  color: #eee0e9;
  font: 400 .875rem / 1.46 var(--sans, Arial, sans-serif);
  overflow-wrap: break-word;
}
.pillar-card-list {
  list-style: none;
  margin: 15px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid rgb(207 138 179 / 24%);
  display: grid;
  gap: .57rem;
}
.pillar-card-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  column-gap: 9px;
  align-items: start;
  padding: 0;
  color: #f5e7ef;
  font: 480 .865rem / 1.38 var(--sans, Arial, sans-serif);
  overflow-wrap: break-word;
}
.pillar-card-list > li::before {
  content: "";
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin-top: .15rem;
  border: 1px solid #eeb0d2;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 15%, rgb(255 218 238 / 16%), transparent 68%);
  box-shadow: 0 0 4px rgb(251 139 209 / 16%);
}
.pillar-card-list > li::after {
  content: "";
  position: absolute;
  top: .45rem;
  left: 3.4px;
  box-sizing: border-box;
  width: 7px;
  height: 3.8px;
  border-left: 1.4px solid #ffe1f2;
  border-bottom: 1.4px solid #ffe1f2;
  transform: rotate(-45deg);
}
.pillar-card-foot {
  margin: 15px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgb(197 125 168 / 19%);
  color: #d7afc8;
  text-align: center;
  font: italic 400 .80rem / 1.4 Georgia, serif;
}
.pillar-close {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #dfb5cf;
  background: transparent;
  cursor: pointer;
}
.pillar-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.pillar-close:is(:hover, :focus-visible) { color: #fff2f9; background: rgb(242 157 206 / 10%); }
.pillar-close:focus-visible { outline: 2px solid #ffc6ec; outline-offset: -3px; }

.pillar-wire {
  z-index: 21;
  overflow: visible;
  pointer-events: none;
  color: #eda6cf;
}
.pillar-wire path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px rgb(247 128 201 / 63%));
}
.pillar-wire-end {
  fill: #ffe4f6;
  stroke: #e99bc5;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px #ed82c0);
}

@media (prefers-reduced-motion: no-preference) {
  .pillar-card[data-on] { animation: pillar-glass-arrive .24s ease-out .17s both; }
  .pillar-card[data-on]::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(174deg, transparent 0%, rgb(251 182 226 / 5%) 34%,
      rgb(255 218 241 / 14%) 50%, rgb(244 161 210 / 5%) 61%, transparent 100%);
    background-size: 100% 34%;
    background-repeat: no-repeat;
    animation: pillar-glass-reflection .93s cubic-bezier(.25,.48,.45,1) .17s both;
  }
  .pillar-wire[data-on] path[pathLength="1"] {
    stroke-dasharray: 1;
    animation: pillar-wire-draw .29s ease-out .12s both;
  }
  .pillar-wire[data-on] .pillar-wire-end { animation: pillar-node-arrive .28s ease-out .12s both; }
  .pillar-wire[data-on] .pillar-wire-end:last-child { animation-delay: .28s; }
  @keyframes pillar-glass-arrive { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pillar-glass-reflection {
    from { background-position: 50% -66%; opacity: 0; }
    18% { opacity: 1; }
    78% { opacity: .76; }
    to { background-position: 50% 156%; opacity: 0; }
  }
  @keyframes pillar-wire-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pillar-node-arrive { from { opacity: .05; } to { opacity: 1; } }
}
@media (max-width: 500px) {
  .pillar-card { width: 360px; padding: 19px 18px 17px; border-radius: 15px; }
  .pillar-card-head { grid-template-columns: 42px minmax(0, 1fr); column-gap: 11px; }
  .pillar-card-symbol { width: 42px; height: 42px; border-radius: 10px; padding: 3px; }
  .pillar-close { width: 39px; height: 39px; top: 0; right: 0; }
  .pillar-card-title { padding-inline-end: 22px; }
}
@media (forced-colors: active) {
  .pillar-card { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
  .pillar-card::before, .pillar-card::after { display: none; }
  .pillar-card-title, .pillar-card-copy, .pillar-card-list > li, .pillar-card-foot { color: CanvasText; text-shadow: none; }
  .pillar-card-list { border-color: CanvasText; }
  .pillar-card-list > li::before, .pillar-card-list > li::after { border-color: CanvasText; box-shadow: none; }
  .pillar-close { color: ButtonText; }
  .pillar-close:focus-visible { outline-color: Highlight; }
  .pillar-wire { color: CanvasText; }
  .pillar-wire-end { fill: CanvasText; stroke: Canvas; filter: none; }
}
