.scene-stage {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  aspect-ratio: 6 / 5;
  container-type: inline-size;
  isolation: isolate;
}

.scene-stage__glow {
  position: absolute;
  inset: 8% 4% 0;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 184, 148, .2), rgba(0, 184, 148, .07) 55%, transparent 100%);
}

.scene-stage__part {
  position: absolute;
  z-index: 1;
  display: block;
  height: auto;
  max-width: none;
}

.scene-stage__part--float-a {
  animation: scene-float 6.5s ease-in-out infinite;
}

.scene-stage__part--float-b {
  animation: scene-float 8s ease-in-out -2s infinite;
}

.scene-stage__part--float-c {
  animation: scene-float 7.2s ease-in-out -4s infinite;
}

.scene-stage__part--float-slow {
  animation: scene-drift 11s ease-in-out infinite;
}

.glass-panel {
  animation: scene-rise .8s var(--ease-out) backwards;
}

.glass-panel__bg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(11, 59, 51, .14));
}

.glass-panel__body {
  position: absolute;
  inset: 14% 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45em;
  padding: 9% 12%;
  box-sizing: border-box;
  transform-origin: 0 0;
  color: var(--color-text-primary);
  font-size: clamp(10px, 2.35cqw, 17px);
  line-height: 1.25;
  opacity: 0;
  animation: scene-show 0s 1.4s forwards;
}

.glass-panel__body.is-mapped {
  inset: auto;
  left: 0;
  top: 0;
  opacity: 1;
  animation: scene-fade .5s var(--ease-out) .25s backwards;
}

.glass-panel__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: .65em;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 .4em 1em rgba(0, 122, 99, .3);
}

.glass-panel__icon .icon {
  width: 1.3em;
  height: 1.3em;
}

.glass-panel__figure {
  flex: none;
  display: block;
  width: 3.6em;
  height: auto;
  margin-bottom: .2em;
}

.glass-panel__title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  font-weight: 800;
  font-size: 1.12em;
  letter-spacing: -.01em;
}

.glass-panel__text {
  color: var(--color-text-secondary);
  font-size: .86em;
}

.scene-device__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(11, 59, 51, .16));
}

.scene-device__screen {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform-origin: 0 0;
  background: linear-gradient(160deg, #fff 0%, #eef6f3 100%);
  font-size: min(1.6cqw, 13px);
}

.scene-device__screen:not(.is-mapped) > * {
  display: none;
}

.scene-device--laptop-silver .scene-device__screen {
  clip-path: polygon(30.36% 3.69%, 96.88% 13.12%, 94.71% 69.52%, 28.1% 54.23%);
}

.scene-device--laptop-dark .scene-device__screen {
  clip-path: polygon(4.13% 8.31%, 53.94% 11.85%, 61.2% 64.58%, 11.39% 73.12%);
}

.scene-device--laptop-front .scene-device__screen {
  clip-path: polygon(2.72% 10.26%, 56.32% 4.66%, 63.46% 59.58%, 9.99% 71.11%);
}

.scene-device--laptop-mac .scene-device__screen {
  clip-path: polygon(12.47% 5.52%, 87.88% 5.52%, 87.88% 74.41%, 12.47% 74.41%);
}

.scene-device--phone-front .scene-device__screen {
  clip-path: polygon(5.98% 2.43%, 94.02% 2.43%, 94.02% 97.4%, 5.98% 97.4%);
}

.scene-device--phone-side .scene-device__screen {
  clip-path: polygon(12.84% 2.74%, 68.19% 7.84%, 94.15% 95.28%, 35.09% 92.62%);
}

.scene-device__screen.is-mapped {
  inset: auto;
  left: 0;
  top: 0;
  clip-path: none;
}

.scene-screen {
  position: absolute;
  inset: 0;
  display: block;
}

.scene-screen--brand {
  padding: 7% 8%;
}

.scene-screen__mark {
  display: flex;
  align-items: center;
  gap: .4em;
  color: var(--color-text-primary);
  font-size: 1em;
}

.scene-screen__mark .icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--color-brand-600);
}

.scene-screen__lines {
  display: flex;
  flex-direction: column;
  gap: .7em;
  width: 52%;
  margin-top: 14%;
}

.scene-screen__lines span {
  display: block;
  height: .75em;
  border-radius: var(--radius-pill);
  background: #dfe9e6;
}

.scene-screen__lines span:first-child {
  height: 1.5em;
  width: 90%;
  background: var(--color-text-primary);
  opacity: .85;
}

.scene-screen__lines span:last-child {
  width: 70%;
}

.scene-screen__badge {
  position: absolute;
  right: 9%;
  top: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 18%;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 1em 2em rgba(0, 122, 99, .35);
}

.scene-screen__badge .icon {
  width: 55%;
  height: 55%;
}

.scene-screen--phone {
  padding: 22% 9% 8%;
  font-size: .9em;
}

.scene-screen--phone .scene-screen__lines {
  width: 90%;
  margin-top: 16%;
}

.scene-screen--phone .scene-screen__badge {
  position: static;
  width: 46%;
  margin-top: 18%;
}

.scene-screen--grid {
  padding: 6%;
  display: flex;
  flex-direction: column;
  gap: 6%;
}

.scene-screen__bar {
  display: block;
  height: 8%;
  border-radius: var(--radius-pill);
  background: #dfe9e6;
}

.scene-screen__tiles {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6%;
}

.scene-screen__tiles span {
  border-radius: 10%;
  background: linear-gradient(150deg, #e6f3ef, #cfe6df);
}

.scene-screen__tiles span:nth-child(2),
.scene-screen__tiles span:nth-child(4) {
  background: var(--gradient-brand);
  opacity: .9;
}

.scene-screen--shots {
  background: var(--color-dark-bg);
}

.scene-screen__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}

.scene-screen__shot.is-active {
  opacity: 1;
}

.scene-screen--blank {
  background: linear-gradient(160deg, #fff, #e8f3ef);
}

.device-shot {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  container-type: inline-size;
}

.device-shot .scene-device {
  position: relative;
  display: block;
}

.device-shot .scene-device__frame {
  width: 100%;
  height: auto;
  object-fit: fill;
}

.case-card__media--device {
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  background: radial-gradient(80% 70% at 50% 60%, #e3f2ec 0%, var(--color-surface-subtle) 75%);
}

.case-card__media--device .device-shot {
  width: min(84cqw, 136cqh);
  transition: transform 1.1s var(--ease-out);
}

.case-card:hover .case-card__media--device .device-shot {
  transform: scale(1.04);
}

.case-card:hover .device-shot img {
  transform: none;
}

.case-feature__visual--device {
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: auto;
  min-height: 330px;
  padding: 28px 40px;
}

.case-feature__visual--device .device-shot {
  max-width: 440px;
}

.case-feature__visual--device .case-feature__brand {
  display: none;
}

.case-feature__visual--device .case-feature__metric {
  position: static;
  background: var(--color-brand-50);
  backdrop-filter: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
}

.case-feature__visual--device .case-feature__metric b {
  display: inline;
  font-size: var(--text-h4-size, 20px);
}

.scene-stage--home .scene-stage__part--cubes {
  left: 1%;
  top: 4%;
  width: 31%;
  z-index: 1;
}

.scene-stage--home .scene-stage__part--db {
  left: 75%;
  top: 0;
  width: 24%;
  z-index: 1;
}

.scene-stage--home .scene-stage__part--laptop {
  left: 15%;
  top: 10%;
  width: 70%;
  z-index: 2;
}

.scene-stage--home .scene-stage__part--ball {
  left: 58%;
  top: 1%;
  width: 6.5%;
  z-index: 3;
}

.scene-stage--home .scene-stage__part--dot {
  left: 93%;
  top: 52%;
  width: 4.5%;
  z-index: 3;
}

.scene-badge {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .65em 1.1em .65em .65em;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 1em;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 .9em 2.2em rgba(11, 59, 51, .14);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  font-size: clamp(10px, 2.15cqw, 14px);
  line-height: 1.25;
  white-space: nowrap;
  z-index: 4;
}

.scene-badge__icon {
  width: 2.5em;
  height: 2.5em;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: .75em;
  background: var(--color-brand-50);
  color: var(--color-brand-600);
}

.scene-badge__icon svg {
  width: 1.35em;
  height: 1.35em;
}

.scene-badge__body {
  display: flex;
  flex-direction: column;
  gap: .15em;
}

.scene-badge__title {
  font-weight: 700;
  color: var(--color-text-primary);
}

.scene-badge__text {
  font-size: .86em;
  color: var(--color-text-muted);
}

.scene-stage--home .scene-stage__part--note-a {
  left: 0;
  top: 47%;
}

.scene-stage--home .scene-stage__part--note-b {
  right: 0;
  top: 24%;
}

.scene-stage--home .scene-stage__part--note-c {
  left: 36%;
  top: 83%;
}

.scene-stage--services,
.scene-stage--blog,
.scene-stage--contacts,
.scene-stage--about {
  aspect-ratio: 3 / 2;
}

.scene-stage__part--art {
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1;
}

.scene-stage--portfolio .scene-stage__part--laptop {
  left: 1%;
  top: 17%;
  width: 82%;
  z-index: 2;
}

.scene-stage--portfolio .scene-stage__part--phone {
  left: 74%;
  top: 34%;
  width: 19%;
  z-index: 3;
}

.scene-stage--portfolio .scene-stage__part--ball {
  left: 82%;
  top: 7%;
  width: 13%;
  z-index: 1;
}

.scene-stage--portfolio .scene-stage__part--pearl {
  left: 2%;
  top: 19%;
  width: 11%;
  z-index: 3;
}

.scene-stage--portfolio .scene-stage__part--dot {
  left: 90%;
  top: 86%;
  width: 5%;
  z-index: 4;
}

@keyframes scene-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9%);
  }
}

@keyframes scene-drift {
  0%, 100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-2%, -3%);
  }
}

@keyframes scene-rise {
  from {
    opacity: 0;
    transform: translateY(8%);
  }
}

@keyframes scene-fade {
  from {
    opacity: 0;
  }
}

@keyframes scene-show {
  to {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .scene-stage__part--dot,
  .scene-stage__part--drop {
    display: none;
  }
}

@container (max-width: 460px) {
  .scene-stage--home .scene-stage__part--note-b {
    display: none;
  }

  .scene-stage--home .scene-stage__part--note-c {
    left: auto;
    right: 0;
  }

  .glass-panel__body {
    gap: .3em;
    font-size: clamp(8px, 3cqw, 13px);
  }

  .glass-panel__text {
    display: none;
  }

  .glass-panel__title {
    font-size: .98em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-stage__part,
  .glass-panel,
  .glass-panel__body,
  .glass-panel__body.is-mapped {
    animation: none;
  }

  .glass-panel__body {
    opacity: 1;
  }
}
