.tenant-showcase {
  --tenant-bg: #090d15;
  --tenant-text: #e1e8f4;
  --tenant-muted: #a5b0c2;
  --tenant-edge: #76849d4d;
  --tenant-route: #788ca170;
  --tenant-pulse: #c5eeff;
  --tenant-shadow: #0009;
  --tenant-pitch: 11deg;
  --tenant-yaw: -13deg;
  --tenant-roll: -3deg;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  color: var(--tenant-text);
}

.tenant-showcase-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.75rem) clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.2rem, 3vw, 2.25rem) clamp(1rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.25rem);
  border: 1px dashed var(--tenant-edge);
  border-radius: 1.1rem;
  background:
    radial-gradient(ellipse at 52% 24%, #59479539, transparent 50%),
    radial-gradient(ellipse at 22% 78%, #127e7930, transparent 40%),
    radial-gradient(ellipse at 80% 76%, #195f9d35, transparent 43%),
    var(--tenant-bg);
}

.studio-page .studio-shell .tenant-showcase h2 {
  grid-column: 1 / -1;
  justify-self: center;
  color: var(--tenant-muted);
  font-size: clamp(.75rem, 1.45vw, .95rem);
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.tenant-island {
  position: relative;
  z-index: 1;
  min-width: 0;
  --tenant-island-accent: #a995ff;
}

.tenant-application { grid-column: 1 / -1; }
.tenant-foundation { --tenant-island-accent: #76d4ca; }
.tenant-collaboration { --tenant-island-accent: #89c9ff; }

.tenant-island-scene {
  position: relative;
  aspect-ratio: 1.27;
  perspective: 1100px;
  perspective-origin: 50% 48%;
}

.tenant-application .tenant-island-scene {
  width: min(100%, 61rem);
  margin-inline: auto;
  aspect-ratio: 1.97;
}

.tenant-capture {
  position: absolute;
  z-index: var(--layer);
  inset: var(--y) auto auto var(--x);
  width: var(--width);
  margin: 0;
  overflow: hidden;
  border-radius: clamp(3px, .65vw, 8px);
  background: #101722;
  box-shadow: 0 0 0 1px #8b9ab64d, 2px 3px 0 #1e2632, 0 1.25rem 2.25rem var(--tenant-shadow);
  transform: translateZ(var(--depth)) rotateX(var(--tenant-pitch)) rotateY(var(--tenant-yaw))
    rotateZ(calc(var(--tenant-roll) + var(--rotation))) scale(var(--scale));
}

.tenant-capture img {
  position: absolute;
  display: block;
  max-width: none;
}

.tenant-landmark {
  position: absolute;
  z-index: 6;
  top: 1%;
  left: 46%;
  display: block;
  width: clamp(2.1rem, 5.8vw, 4.7rem);
  height: auto;
  filter: drop-shadow(0 .6rem .7rem var(--tenant-shadow));
}

.tenant-application .tenant-landmark { width: clamp(2.6rem, 7.8vw, 6.2rem); }
.tenant-collaboration .tenant-landmark { left: 16%; }

.tenant-data-plane {
  position: absolute;
  inset: 8% 0 3%;
  transform: rotateX(var(--tenant-pitch)) rotateY(var(--tenant-yaw)) rotateZ(var(--tenant-roll));
  background-image: linear-gradient(#62c3c110 1px, transparent 1px), linear-gradient(90deg, #62c3c110 1px, transparent 1px);
  background-size: 22px 22px;
}

.tenant-data-plane svg,
.tenant-data-plane ul {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tenant-data-plane svg path {
  fill: none;
  stroke: #5bcdc4a0;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.tenant-data-plane ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tenant-data-plane li {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: .2em;
  border: 1px solid #4d938e87;
  border-radius: 4px;
  background: linear-gradient(150deg, #1b393c, #0f2028);
  color: #ddf0ef;
  box-shadow: 2px 3px 0 #152c34, 0 8px 15px var(--tenant-shadow);
  font-size: clamp(.63rem, 1.25vw, .95rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.tenant-data-plane .tenant-entity-anchor {
  background: linear-gradient(150deg, #25575a, #14313a);
  border-color: #7ac8bf;
}

.tenant-island-caption {
  padding-top: .45rem;
  text-align: center;
}

.tenant-island-caption > p {
  max-width: 42ch;
  margin: .55rem auto 0;
  color: var(--tenant-muted);
  font-size: clamp(.875rem, 1.4vw, 1rem);
  line-height: 1.5;
}

.tenant-island-caption .tenant-platform {
  margin: 0 auto .4rem;
  color: var(--tenant-island-accent);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .06em;
}

.studio-page .studio-shell .tenant-island h3 {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 650;
}

.studio-page .studio-shell .tenant-application h3 {
  font-size: clamp(1.45rem, 3.6vw, 2.7rem);
}

.tenant-connections {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tenant-intelligence {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(14rem, 1fr) 1fr;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.6rem);
}

.tenant-intelligence-stack {
  grid-column: 2;
  position: relative;
  display: grid;
  justify-items: center;
  gap: .65rem;
  padding: 1.55rem 0;
  perspective: 950px;
  background: radial-gradient(ellipse, #9f56fa36, transparent 72%);
}

.tenant-intelligence-plate {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 3.3rem;
  padding: .45rem 1rem;
  border: 1px solid #bb9af29e;
  border-radius: .65rem;
  line-height: 1.15;
  text-align: center;
  transform: rotateX(19deg) rotateY(-12deg) rotateZ(-3deg);
}

.tenant-iq-plate {
  z-index: 1;
  width: 68%;
  display: flex;
  justify-content: center;
  gap: .45rem;
  border-color: transparent;
  background:
    radial-gradient(ellipse at 22% 0%, #956cce82, transparent 65%) padding-box,
    linear-gradient(120deg, #31234f, #392465 56%, #231735) padding-box,
    linear-gradient(140deg, #8b68b8 4%, #e1ccfb 22%, #7657a5 48%, #392751 71%, #9672c2) border-box;
  box-shadow: inset 0 1px #f2deff38, inset 0 -1px #150e25b3, 0 4px #261836, 0 10px 25px #7f50cb48;
  color: #f7edff;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -.025em;
}

.tenant-iq-plate svg {
  flex: none;
  width: .95em;
  height: .95em;
  fill: none;
  stroke: #ecd7ff;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.studio-page .studio-shell .tenant-project-plate {
  width: 87%;
  background: linear-gradient(105deg, #152139, #253963);
  border-color: #849cf6b0;
  box-shadow: 0 5px #101b35, 0 12px 24px var(--tenant-shadow);
  color: #edf1ff;
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
}

.tenant-intelligence-copy {
  max-width: 34ch;
  color: var(--tenant-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.tenant-intelligence-copy p { margin: 0; }

.tenant-intelligence-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  color: var(--tenant-text);
  font-size: .78rem;
}

.tenant-intelligence-copy li::before {
  content: "";
  display: inline-block;
  width: .33rem;
  height: .33rem;
  margin: 0 .35rem .1rem 0;
  border-radius: 50%;
  background: #a995ff;
}

.tenant-connections path {
  fill: none;
  stroke: var(--tenant-route);
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.tenant-connections .tenant-light-pulse {
  stroke: var(--tenant-pulse);
  stroke-dasharray: 2 98;
  stroke-linecap: round;
  opacity: .7;
}

.tenant-light-pulse:nth-child(4) { animation-delay: -2.5s; }
.tenant-light-pulse:nth-child(6) { animation-delay: -5s; }
.tenant-connections-mobile { display: none; }

.tenant-showcase > figcaption {
  margin: .8rem auto 0;
  max-width: 72ch;
  color: #a5b0c2;
  font-size: .8rem;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .tenant-light-pulse { animation: tenant-pulse 9s linear infinite; }
}

@keyframes tenant-pulse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}

@media (prefers-color-scheme: light) {
  .tenant-showcase {
    --tenant-bg: #e6edf5;
    --tenant-text: #182535;
    --tenant-muted: #40536c;
    --tenant-edge: #5b6c8388;
    --tenant-route: #3d597c77;
    --tenant-pulse: #245882;
    --tenant-shadow: #20345255;
  }

  .tenant-application { --tenant-island-accent: #55339e; }
  .tenant-foundation { --tenant-island-accent: #176b65; }
  .tenant-collaboration { --tenant-island-accent: #145687; }
  .tenant-data-plane svg path { stroke: #286b6ba0; }
}

@media (max-width: 700px) {
  .tenant-showcase-scene {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.35rem;
  }

  .tenant-application .tenant-island-scene { aspect-ratio: 1.73; }
  .tenant-island-scene { max-width: 30rem; margin-inline: auto; }
  .tenant-foundation .tenant-island-scene,
  .tenant-collaboration .tenant-island-scene { width: 95%; }
  .tenant-capture { --tenant-pitch: 8deg; --tenant-yaw: -9deg; }
  .tenant-intelligence { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .tenant-intelligence-stack { grid-column: 1; width: min(100%, 16rem); justify-self: center; }
  .tenant-intelligence-copy { justify-self: center; text-align: center; }
  .tenant-intelligence-copy ul { justify-content: center; }
  .tenant-connections { display: none; }
  .tenant-connections-mobile { display: block; }
}
