/* Registration rules and individual destinations share each category's ink. */
#projects {
  background:
    radial-gradient(ellipse at 10% 0%, #34234b55, transparent 43%),
    linear-gradient(150deg, #141022, #100c1b 62%, #160f25);
}
#projects .showcase-index-row {
  --index-ink: #b29aff;
  --index-rule: #8776a7;
  position: relative;
  isolation: isolate;
  border-top-color: #6d5b815c;
}
#projects [data-category="business-tools"] { --index-ink: #cd93fb; }
#projects [data-category="personal-apps"] { --index-ink: #ed9bd8; }
#projects [data-category="industry-solutions"] { --index-ink: #a3b6ff; }

#projects .showcase-index-row::before,
#projects .showcase-index-row::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  pointer-events: none;
  transform-origin: left center;
}
#projects .showcase-index-row::before {
  background: linear-gradient(90deg, var(--index-ink) 0 21px, var(--index-rule) 21px, #5e52634f 68%, transparent);
}
#projects .showcase-index-row::after {
  background: linear-gradient(90deg, transparent, var(--index-ink), #fff5fd, transparent);
  opacity: 0;
}
#projects .showcase-index-row h3 {
  padding-left: 14px;
  position: relative;
  max-width: 25ch;
  line-height: 1.45;
  color: var(--index-ink);
}
#projects .showcase-index-row h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  height: .66em;
  width: 3px;
  background: var(--index-ink);
}
#projects .showcase-index-row h3 a:focus-visible,
#projects .showcase-index-row li a:focus-visible,
.showcase-contact a:focus-visible {
  outline: 2px solid #f1cbff;
  outline-offset: 2px;
}
#projects .showcase-index-row li {
  min-width: 0;
}
#projects .showcase-index-row li a {
  --index-wash: 0%;
  --index-opacity: 0;
  --index-arrow: 0px;
  position: relative;
  isolation: isolate;
  gap: 14px;
  padding-inline: 9px 8px;
  color: #f2edf8;
  background: transparent;
  border-radius: 3px;
}
#projects .showcase-index-row li a::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 2px 0;
  z-index: -1;
  border-radius: inherit;
  opacity: var(--index-opacity);
  background: linear-gradient(90deg, #a790ed29, #ad8df011 70%, transparent);
  clip-path: inset(0 calc(100% - var(--index-wash)) 0 0);
}
#projects .showcase-index-row li a::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 9px;
  bottom: 4px;
  top: auto;
  right: 8px;
  height: 1px;
  opacity: var(--index-opacity);
  transform-origin: left;
  transform: scaleX(calc(var(--index-opacity) * .98));
  background: linear-gradient(90deg, var(--index-ink), transparent 90%);
}
#projects .showcase-index-row li a > span:last-child {
  flex: none;
  min-width: 21px;
  text-align: center;
  color: var(--index-ink);
  transform: translate(var(--index-arrow), calc(-1 * var(--index-arrow)));
}
#projects .showcase-index-row li a:focus-visible {
  --index-wash: 100%;
  --index-opacity: 1;
  --index-arrow: 2px;
  color: white;
}
@media (hover: hover) {
  #projects .showcase-index-row li a:hover {
    --index-wash: 100%;
    --index-opacity: 1;
    --index-arrow: 2px;
    color: white;
  }
}

/* Two offset contour sheets cross above the horizon at the end of the page. */
.showcase-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block-color: #b287cf70;
  background:
    linear-gradient(92deg, #140d22 1%, #1f1030f7 36%, #230e3ad9 64%, #291039a6),
    url('prism-field.webp') center 74% / cover, #241030;
  padding-block: clamp(62px, 7.8vw, 126px);
}
.showcase-contact > .showcase-shell { position: relative; z-index: 1; }
.showcase-contact h2 { max-width: min(62%, 23ch); }
.showcase-contact .showcase-actions { max-width: min(72%, 54rem); }
.showcase-contact::before,
.showcase-contact::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset-inline-end: -8%;
  top: -44%;
  width: min(64%, 1060px);
  height: 184%;
  border-radius: 50%;
  transform-origin: 64% 44%;
  -webkit-mask-image: radial-gradient(ellipse at 55% 55%, #000 21%, #000d 43%, #0006 60%, transparent 76%);
  mask-image: radial-gradient(ellipse at 55% 55%, #000 21%, #000d 43%, #0006 60%, transparent 76%);
}
.showcase-contact::before {
  opacity: .88;
  transform: perspective(900px) rotateY(-26deg) rotateZ(-17deg) skewX(-12deg);
  background: repeating-radial-gradient(ellipse at 54% 44%,
    transparent 0 6px, #b681fa78 6.5px, #d3aeffcd 7.25px, transparent 8.25px 11.5px);
}
.showcase-contact::after {
  top: -56%;
  inset-inline-end: -14%;
  height: 196%;
  opacity: .80;
  transform: perspective(870px) rotateY(-33deg) rotateZ(14deg) skewX(14deg);
  background: repeating-radial-gradient(ellipse at 51% 53%,
    transparent 0 9px, #f080cc75 9.5px, #ffacdcce 10.5px, transparent 11.25px 14px);
}

@media (prefers-reduced-motion: no-preference) {
  #projects .showcase-index-row:is(.estuary-entered, .lower-in-view)::before {
    animation: index-rule-in .87s cubic-bezier(.15,.7,.2,1) both;
  }
  #projects .showcase-index-row.lower-in-view::after {
    animation: index-rule-scan 1s ease-out both;
  }
  #projects .showcase-index-row.lower-in-view h3 {
    animation: index-heading-register .60s cubic-bezier(.16,.72,.24,1) both;
  }
  #projects .showcase-index-row.lower-in-view li {
    animation: index-type-register .52s cubic-bezier(.15,.72,.25,1) backwards;
    animation-delay: calc(var(--index-order, 0) * 33ms + 70ms);
  }
  #projects .showcase-index-row li:nth-child(2) { --index-order: 1; }
  #projects .showcase-index-row li:nth-child(3) { --index-order: 2; }
  #projects .showcase-index-row li:nth-child(4) { --index-order: 3; }
  #projects .showcase-index-row li:nth-child(5) { --index-order: 4; }
  #projects .showcase-index-row li:nth-child(6) { --index-order: 5; }
  #projects .showcase-index-row li:nth-child(7) { --index-order: 6; }
  #projects .showcase-index-row li:nth-child(8) { --index-order: 7; }
  #projects .showcase-index-row li:nth-child(n+9) { --index-order: 8; }
  #projects .showcase-index-row li a::before {
    transition: opacity .20s, clip-path .35s cubic-bezier(.17,.75,.23,1);
  }
  #projects .showcase-index-row li a::after,
  #projects .showcase-index-row li a > span:last-child { transition: transform .27s ease, opacity .22s; }

  .showcase-contact.lower-in-view::before {
    animation: contact-crest 4.6s cubic-bezier(.19,.73,.18,1) both;
  }
  .showcase-contact.lower-in-view::after {
    animation: contact-echo 4.8s cubic-bezier(.20,.69,.20,1) both;
  }
  .showcase-contact.lower-in-view h2 {
    animation: index-heading-register .72s cubic-bezier(.16,.72,.24,1) both;
  }
}
@keyframes index-rule-in {
  from { transform: scaleX(.03); }
  to { transform: scaleX(1); }
}
@keyframes index-rule-scan {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  24% { clip-path: inset(0 64% 0 2%); opacity: .85; }
  76% { clip-path: inset(0 9% 0 63%); opacity: .62; }
  100% { clip-path: inset(0 0 0 100%); opacity: 0; }
}
@keyframes index-heading-register {
  from { transform: translateX(-10px); opacity: .68; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes index-type-register {
  from { transform: translateY(7px); opacity: .54; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes contact-crest {
  from { transform: perspective(900px) rotateY(-41deg) rotateZ(-33deg) skewX(-19deg) scale(.94); opacity: .42; }
  to { transform: perspective(900px) rotateY(-26deg) rotateZ(-17deg) skewX(-12deg); opacity: .88; }
}
@keyframes contact-echo {
  from { transform: perspective(870px) rotateY(-18deg) rotateZ(32deg) skewX(20deg) scale(1.11); opacity: .26; }
  to { transform: perspective(870px) rotateY(-33deg) rotateZ(14deg) skewX(14deg); opacity: .8; }
}
@media (max-width: 720px) {
  #projects .showcase-index-row h3 { padding-left: 11px; max-width: none; }
  #projects .showcase-index-row li a { padding-inline: 5px; }
  .showcase-contact { padding-block: clamp(84px,22vw,116px) 45px; }
  .showcase-contact::before, .showcase-contact::after {
    inset-inline-end: -29%;
    top: -45%;
    width: 99%;
    height: 116%;
  }
  .showcase-contact::after {
    inset-inline-end: -36%;
    top: -52%;
  }
  .showcase-contact h2, .showcase-contact .showcase-actions { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #projects .showcase-index-row *, #projects .showcase-index-row::before,
  #projects .showcase-index-row::after, .showcase-contact *, .showcase-contact::before,
  .showcase-contact::after { animation: none; transition: none; }
}
