.prism-showcase {
  --prism-active: #d98aff;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 88px) 0 42px;
  text-align: center;
  scroll-margin-top: 13px;
}

.prism-heading { position: relative; z-index: 1; }
.prism-heading h2 {
  font-family: var(--sans);
  font-size: clamp(39px, 6.5vw, 88px);
  font-weight: 700;
  letter-spacing: -.068em;
  line-height: .98;
}
.prism-heading p { margin-top: 10px; color: #d9eded; font-size: clamp(14px, 2vw, 23px); }

.prism-console {
  --stage-size: min(100%, 740px);
  position: relative;
  container-type: inline-size;
  max-width: 740px;
  margin: 13px auto 0;
  isolation: isolate;
}

.prism-focal {
  position: relative;
  aspect-ratio: 1;
  isolation: isolate;
}
.prism-focal picture, .prism-focal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.prism-focal picture {
  mask-image: radial-gradient(ellipse 66% 71% at 50% 45%, black 55%, transparent 93%);
}
.prism-focal::after {
  content: '';
  position: absolute;
  inset: 49% 12% 6%;
  z-index: -1;
  filter: blur(42px);
  background: color-mix(in srgb, var(--prism-active) 27%, transparent);
  opacity: .66;
  transform: translateY(0) scaleY(1);
  transition: background-color 400ms ease;
  animation: prism-breathe 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.prism-rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}

.prism-rim-touch {
  pointer-events: stroke;
  touch-action: none;
  cursor: grab;
}

.prism-dragging .prism-rim-touch { cursor: grabbing; }

.prism-rim-glint {
  stroke: var(--teal-soft);
  stroke-width: .56;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  opacity: .76;
  filter: drop-shadow(0 0 3px var(--teal));
  animation: prism-sweep 6.5s linear infinite;
  transition: stroke-width 200ms ease, opacity 200ms ease;
}

.prism-dragging .prism-rim-glint {
  stroke-width: 1;
  opacity: 1;
  animation: none;
  stroke-dashoffset: var(--rim-offset, 0);
}

@keyframes prism-sweep {
  to { stroke-dashoffset: -100; }
}

.prism-tile {
  position: absolute;
  left: 30.5%;
  top: 25.5cqw;
  width: 37%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: end;
  padding: 8px;
  overflow: hidden;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--tool-light) 90%, white);
  border-radius: clamp(10px, 2.25cqw, 20px);
  isolation: isolate;
  background: #090b18;
  box-shadow: inset 0 0 15px color-mix(in srgb, var(--tool-light) 41%, transparent),
              0 0 14px color-mix(in srgb, var(--tool-light) 75%, transparent),
              0 0 43px color-mix(in srgb, var(--tool-light) 42%, transparent),
              0 17px 28px #000a;
  transform-origin: center;
}
.prism-tile:hover,
.prism-tile:focus-visible {
  border-color: var(--teal);
}

.prism-tile > .icon {
  position: absolute;
  top: 6%;
  right: 6%;
  width: clamp(12px, 3cqw, 20px);
  height: clamp(12px, 3cqw, 20px);
  border-radius: 3px;
  color: white;
  background: #071421c7;
  padding: 2px;
}

.prism-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.prism-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, #08081642 63%, #080816f2 100%);
}
.prism-tile strong {
  color: #fcf9ff;
  text-shadow: 0 1px 9px #000;
  font-size: clamp(12px, 4.4cqw, 30px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.055em;
  padding-bottom: 4%;
}
#tool-design-studio .prism-tile img, #tool-business-systems .prism-tile img { object-position: center; }

.prism-tabs {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: -12% auto 0;
  padding: 4px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  border: 1px solid #b6dae74a;
  border-radius: 18px;
  background: linear-gradient(120deg, #142a34bf, #110e22aa 54%, #2f1f23c2);
  box-shadow: inset 0 1px 0 #eefbff32, 0 8px 30px #0009;
}
@supports (backdrop-filter: blur(10px)) {
  .prism-tabs { backdrop-filter: blur(12px) saturate(.88); }
}
.prism-tab {
  position: relative;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 4px clamp(9px, 1.45vw, 18px);
  min-height: 44px;
  border-radius: 13px;
  color: #dfedef;
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 650;
  line-height: 1.15;
}
.prism-tab > span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--tool-light);
  box-shadow: 0 0 10px var(--tool-light);
}
.prism-tab[aria-selected="true"] {
  color: white;
  background: #0b393f;
  box-shadow: inset 0 -2px 0 var(--teal), inset 0 1px 0 #ffffff34;
}
.prism-tab:hover { color: #fff; }
.prism-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

.prism-description {
  width: min(100%, 560px);
  margin: 15px auto 0;
}
.prism-description p { min-height: 2.5em; display: grid; place-items: center; margin-bottom: 7px; color: #cde2e5; font-size: 14px; }
.prism-showcase .prism-visit {
  width: 100%;
  gap: 12px;
  justify-content: space-between;
  border: 1px solid var(--teal-outline);
  border-radius: 8px 16px 8px 16px;
  color: #f6f8ff;
  background: linear-gradient(110deg, #06434bbf, #0a2932ba 57%, #082027c4);
  box-shadow: inset 0 1px 0 #ffffff40, 0 0 24px #00f8ed46;
  font-size: clamp(14px, 1.6vw, 19px);
  font-weight: 650;
}
.prism-visit:hover { color: var(--teal); border-color: var(--teal); }
.prism-visit .icon { color: var(--teal); }
.prism-service-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin-top: 14px;
  color: #bafff3;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  font-weight: 600;
}
.prism-service-link .icon { width: 16px; height: 16px; }

@keyframes prism-breathe {
  to { opacity: .91; transform: translateY(10px) scaleY(.92); }
}

@media (max-width: 680px) {
  .prism-showcase { padding: 25px 0 26px; }
  .prism-heading p { margin-top: 8px; }
  .prism-console { margin-top: 7px; }
  .prism-tab { padding-inline: 8px; min-height: 44px; }
  .prism-tabs { margin-top: -10%; }
  .prism-description p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .prism-focal::after, .prism-rim-glint { animation: none; transition: none; }
  .prism-rim-glint { opacity: .5; }
}
