.urban-crystal-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.urban-crystal-effects {
  --crystal-cut: polygon(51% 0, 93% 36%, 82% 80%, 54% 100%, 18% 84%, 5% 40%);
  --crystal-proportion: .53;
  --crystal-base: var(--crystal-y);
  --crystal-position: var(--crystal-x);
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  pointer-events: none;
}

.urban-crystal-effects[hidden], .urban-crystal-caption .urban-crystal-switch[hidden],
.property-gallery:has([data-hide-crystal]:checked) .urban-crystal-effects {
  display: none;
}

.urban-crystal-kite {
  --crystal-cut: polygon(57% 0, 98% 37%, 77% 86%, 37% 100%, 0 58%, 15% 24%);
  --crystal-proportion: .8;
}

.urban-crystal-crest {
  --crystal-cut: polygon(55% 0, 70% 21%, 91% 24%, 100% 60%, 77% 93%, 49% 100%, 12% 85%, 3% 48%, 19% 25%);
  --crystal-proportion: .75;
}

.urban-crystal-obelisk {
  --crystal-cut: polygon(57% 0, 89% 22%, 92% 82%, 55% 100%, 10% 87%, 12% 25%);
  --crystal-proportion: .49;
}

.urban-crystal-gem {
  width: var(--crystal-width);
  aspect-ratio: var(--crystal-proportion);
  transform: translateX(-50%) rotate(var(--crystal-turn));
  transform-origin: center bottom;
  filter: drop-shadow(2px 6px 3px #142a3ab9) drop-shadow(0 0 6px rgb(var(--crystal-light) / .54));
  z-index: 1;
}

.urban-crystal-diamond {
  --crystal-cut: polygon(50% 0, 100% 49%, 48% 100%, 0 48%);
  --crystal-proportion: .74;
}

.urban-crystal-twin {
  --crystal-cut: polygon(28% 1%, 50% 24%, 56% 41%, 76% 19%, 96% 41%, 100% 76%, 59% 100%, 10% 83%, 0 45%);
  --crystal-proportion: .83;
}

.urban-crystal-shard {
  --crystal-cut: polygon(73% 0, 100% 48%, 77% 90%, 40% 100%, 4% 81%, 25% 41%);
  --crystal-proportion: .65;
}

.urban-crystal-prism {
  --crystal-cut: polygon(35% 0, 77% 7%, 97% 34%, 83% 83%, 52% 100%, 5% 77%, 0 22%);
  --crystal-proportion: .91;
}

.urban-crystal-effects:not(.urban-crystal-gallery) { --crystal-width: clamp(23px, 10%, 51px); }
.urban-crystal-gallery { --crystal-width: clamp(34px, 7.2%, 96px); }

.urban-crystal-gem,
.urban-crystal-waves,
.urban-crystal-rays {
  position: absolute;
  left: var(--crystal-position);
  bottom: var(--crystal-base);
  display: block;
}

.urban-crystal-object {
  position: absolute;
  inset: 0;
  clip-path: var(--crystal-cut);
  background:
    linear-gradient(58deg, rgb(var(--crystal-light) / .9), transparent 32%, #f5fffe52 60%, #effffcfa),
    conic-gradient(from 18deg at 51% 49%, #f5fffd, rgb(var(--crystal-light)), #20536a 37%, #122943 54%, #85a9ba 68%, #e1fff5 77%, rgb(var(--crystal-light)) 89%, #e4fff6);
}

.urban-crystal-object::before,
.urban-crystal-object::after {
  content: "";
  position: absolute;
  inset: 0;
}

.urban-crystal-object::before {
  clip-path: polygon(50% 0, 92% 34%, 60% 59%, 54% 99%, 44% 70%, 42% 31%);
  background: linear-gradient(65deg, #e5fff7, #21455f 38%, rgb(var(--crystal-light)) 54%, #effffd 67%, rgb(var(--crystal-light) / .2));
}

.urban-crystal-object::after {
  clip-path: polygon(1% 36%, 34% 55%, 54% 100%, 43% 64%, 24% 19%);
  background: linear-gradient(59deg, #edfffa, #24516b 51%, rgb(var(--crystal-light)) 72%, #fff);
}

.urban-crystal-waves {
  width: clamp(75px, 38%, 475px);
  aspect-ratio: 4.25;
  transform: translate(-50%, 53%) rotate(calc(var(--crystal-turn) * .38));
  border-radius: 49% 53% 48% 46%;
  background: radial-gradient(ellipse, rgb(var(--crystal-light) / .69), rgb(var(--crystal-light) / .23) 39%, transparent 69%);
  outline: 1px solid rgb(var(--crystal-light) / .5);
  outline-offset: -4px;
  mix-blend-mode: screen;
}

.urban-crystal-waves::before,
.urban-crystal-waves::after {
  content: "";
  position: absolute;
  inset: 16% 12%;
  border: 1px solid rgb(var(--crystal-light) / .76);
  border-radius: 44% 53% 48% 50%;
  box-shadow: 0 0 6px rgb(var(--crystal-light) / .46), inset 0 0 8px rgb(var(--crystal-light) / .18);
}

.urban-crystal-waves::after {
  inset: 33% 28%;
  transform: rotate(-3deg);
  border-color: rgb(233 255 253 / .88);
}

.urban-crystal-rays {
  width: clamp(105px, 44%, 575px);
  height: 54%;
  transform: scaleX(var(--crystal-direction)) translate(-1%, 4%);
  transform-origin: left bottom;
  mask-image: linear-gradient(to top, #000 25%, #000c 64%, transparent 99%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 5px rgb(var(--crystal-light) / .9)) drop-shadow(0 0 12px rgb(var(--crystal-light) / .56));
}

.urban-crystal-rays path {
  stroke: rgb(var(--crystal-light) / .85);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.urban-crystal-rays path:nth-child(2) { stroke: rgb(232 255 253 / .82); stroke-width: .9; }
.urban-crystal-rays path:nth-child(3) { stroke-width: .8; }
.urban-crystal-scheme { opacity: .88; }

@media (max-width: 680px) {
  .property-scenic:has(.project-ar-gallery) .urban-crystal-gallery { --crystal-base: max(22%, var(--crystal-y)); }
}

.urban-crystal-placeholder,
.property-card-image-pending.urban-crystal-surface {
  background:
    radial-gradient(ellipse at 67% 6%, #427a83 0, #244c5c 47%, #142a3a 100%);
}

.urban-crystal-placeholder::before,
.property-card-image-pending.urban-crystal-surface::before {
  content: "";
  position: absolute;
  inset: 15% 19% 25%;
  border: 1px solid rgb(193 230 232 / .18);
  background:
    repeating-linear-gradient(90deg, transparent 0 13%, rgb(193 230 232 / .14) 13% 13.6%, transparent 13.6% 26%),
    repeating-linear-gradient(180deg, transparent 0 18%, rgb(193 230 232 / .13) 18% 18.8%, transparent 18.8% 26%);
  transform: perspective(280px) rotateX(16deg) rotateZ(-5deg);
}

.urban-crystal-pending-label {
  position: relative;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 4px;
  color: #eaf6f7;
  background: #142a3a;
  font-size: .78rem;
}

.urban-crystal-placeholder .urban-crystal-pending-label {
  position: absolute;
  top: 8%;
  left: 6%;
}

.urban-crystal-surface :is(.property-gallery-tabs, .project-ar-gallery, .property-gallery-visit) { z-index: 2; }
.urban-crystal-surface.property-leader-with-image > :is(.leader-index, div),
.developer-hero-projects .urban-crystal-surface > span { z-index: 2; }
.urban-crystal-surface.property-leader-with-image > div { position: relative; }

.property-gallery .urban-crystal-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  text-align: start;
}

.urban-crystal-caption .urban-crystal-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  padding-inline-end: 5px;
  color: #34586b;
  font-size: .78rem;
  font-weight: 550;
  cursor: pointer;
}

.urban-crystal-switch input { width: 14px; height: 14px; margin: 0; accent-color: #086b73; }
.urban-crystal-switch input:focus-visible { outline: 2px solid #086b73; outline-offset: 3px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .urban-crystal-surface:hover > .urban-crystal-effects:not([hidden]) .urban-crystal-waves {
    animation: urban-crystal-waterlight 1.5s ease-out both;
  }

  @keyframes urban-crystal-waterlight {
    0% { opacity: .68; scale: .88; }
    58% { opacity: 1; scale: 1.07; }
    100% { opacity: .83; scale: 1; }
  }
}
