.shell--project-showroom .fargah-viewer__screen {
  background:
    radial-gradient(circle at 50% 24%, rgba(213, 173, 82, 0.13), transparent 34rem),
    linear-gradient(180deg, #080806, #030302 72%);
}

.shell--project-showroom .fargah-footer,
.shell--project-showroom .ai-support,
.shell--project-showroom .back-to-top {
  display: none !important;
}

.project-showroom {
  --hall-gold: #d7ad52;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(108px, 13vh, 146px) 0 clamp(22px, 4vh, 42px);
  color: #f8f5ef;
  outline: none;
  isolation: isolate;
}

.project-showroom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.82)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 34%, rgba(0, 0, 0, 0.56));
}

.project-showroom__aura {
  position: absolute;
  top: 20%;
  left: 50%;
  z-index: -2;
  width: min(82vw, 1180px);
  aspect-ratio: 1.9;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(213, 173, 82, 0.2), transparent 68%);
  filter: blur(58px);
  opacity: 0.7;
  pointer-events: none;
}

.project-showroom__watermark {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: -1;
  width: min(72vw, 1080px);
  max-height: 64vh;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0.055;
  filter: grayscale(1) brightness(1.7) contrast(0.9);
  pointer-events: none;
  user-select: none;
}

.project-showroom__intro {
  position: relative;
  z-index: 12;
  width: min(90vw, 860px);
  margin: 0 auto clamp(14px, 2.2vh, 24px);
  text-align: center;
}

.project-showroom__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--hall-gold);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-showroom__eyebrow::before,
.project-showroom__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.project-showroom__intro h1,
.project-showroom__intro h2 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.06;
  font-weight: 780;
  text-wrap: balance;
}

.project-showroom__intro p {
  max-width: 620px;
  margin: 10px auto 0;
  color: rgba(248, 245, 239, 0.64);
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  line-height: 1.8;
}

.mirror-hall {
  position: relative;
  width: 100%;
  height: clamp(390px, 58svh, 680px);
  perspective: 1500px;
  perspective-origin: 50% 48%;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.mirror-hall.is-dragging {
  cursor: grabbing;
}

.mirror-hall__track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.mirror-project {
  --hall-x: 0px;
  --hall-z: 0px;
  --hall-rotate: 0deg;
  --hall-scale: 1;
  --hall-opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(520px, 58vw, 960px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transform:
    translate(-50%, -50%)
    translate3d(var(--hall-x), 0, var(--hall-z))
    rotateY(var(--hall-rotate))
    scale(var(--hall-scale));
  transform-origin: center;
  opacity: var(--hall-opacity);
  color: inherit;
  background: #0b0a08;
  box-shadow: 0 38px 94px rgba(0, 0, 0, 0.62);
  transition:
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    filter 420ms ease,
    box-shadow 420ms ease;
  will-change: transform, opacity;
  pointer-events: none;
  filter: saturate(0.42) brightness(0.42) blur(1px);
}

.mirror-project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(221, 186, 106, 0.18),
    inset 0 -4px 0 rgba(215, 173, 82, 0.84);
}

.mirror-project.is-near {
  pointer-events: auto;
}

.mirror-project.is-active {
  z-index: 10 !important;
  filter: saturate(1) brightness(1);
  box-shadow:
    0 48px 120px rgba(0, 0, 0, 0.78),
    0 0 70px rgba(205, 160, 57, 0.13);
}

.mirror-project img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mirror-project.is-active:hover img {
  transform: scale(1.025);
}

.mirror-project__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 2, 2, 0.18), transparent 48%),
    linear-gradient(180deg, transparent 36%, rgba(2, 2, 2, 0.9) 100%);
}

.mirror-project__number {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(215, 173, 82, 0.34);
  border-radius: 50%;
  background: rgba(7, 7, 5, 0.64);
  color: var(--hall-gold);
  font: 800 0.68rem/1 Inter, sans-serif;
  backdrop-filter: blur(12px);
}

.mirror-project__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 22px;
  padding: clamp(68px, 10vw, 128px) clamp(22px, 4vw, 52px) clamp(24px, 3vw, 42px);
}

.mirror-project__meta {
  grid-column: 1;
  color: var(--hall-gold);
  font-size: 0.72rem;
  font-weight: 750;
}

.mirror-project__content strong {
  grid-column: 1;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2.35rem);
  line-height: 1.35;
}

.mirror-project__cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(215, 173, 82, 0.36);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease, background 180ms ease;
}

.mirror-project.is-active .mirror-project__cta {
  opacity: 1;
  transform: translateY(0);
}

.mirror-project.is-active .mirror-project__cta:hover {
  color: #151007;
  background: var(--hall-gold);
}

.mirror-hall__control {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 11, 8, 0.76);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(215, 173, 82, 0.24);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.mirror-hall__control:hover,
.mirror-hall__control:focus-visible {
  color: #151007;
  background: var(--hall-gold);
  transform: translateY(-50%) scale(1.06);
  outline: none;
}

.mirror-hall__control svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.mirror-hall__control--previous {
  inset-inline-start: clamp(14px, 3.4vw, 56px);
}

.mirror-hall__control--next {
  inset-inline-end: clamp(14px, 3.4vw, 56px);
}

[dir="rtl"] .mirror-hall__control svg {
  transform: scaleX(-1);
}

.project-showroom__status {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(100px, 280px) auto;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(90vw, 760px);
  margin: 4px auto 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
}

.project-showroom__counter {
  direction: ltr;
  font-family: Inter, sans-serif;
}

.project-showroom__counter b {
  color: var(--hall-gold);
}

.project-showroom__progress {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.project-showroom__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--hall-gold);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-showroom__empty {
  width: min(90vw, 620px);
  margin: 18vh auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.64);
}

[data-theme="light"].shell--project-showroom .fargah-viewer__screen {
  background:
    radial-gradient(circle at 50% 24%, rgba(169, 121, 36, 0.14), transparent 34rem),
    linear-gradient(180deg, #f8f5f0, #eef4df);
}

[data-theme="light"] .project-showroom {
  color: #17140f;
}

[data-theme="light"] .project-showroom::before {
  background:
    linear-gradient(90deg, rgba(248, 245, 240, 0.72), transparent 22%, transparent 78%, rgba(248, 245, 240, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 50%, rgba(238, 244, 223, 0.76));
}

[data-theme="light"] .project-showroom__watermark {
  opacity: 0.05;
  filter: grayscale(1) sepia(0.5) contrast(1.1);
}

[data-theme="light"] .project-showroom__intro h1 {
  color: #17140f;
}

[data-theme="light"] .project-showroom__intro h2 {
  color: #17140f;
}

.project-showroom--embedded {
  min-height: auto;
  padding-block: clamp(76px, 10vw, 128px);
  border-block: 1px solid rgba(215, 173, 82, 0.12);
}

.project-showroom--embedded .mirror-hall {
  height: clamp(420px, 62svh, 690px);
}

[data-theme="light"] .project-showroom__intro p,
[data-theme="light"] .project-showroom__status {
  color: rgba(23, 20, 15, 0.64);
}

[data-theme="light"] .project-showroom__progress {
  background: rgba(23, 20, 15, 0.16);
}

[data-theme="light"] .mirror-project {
  box-shadow: 0 34px 84px rgba(61, 48, 24, 0.22);
}

[data-theme="light"] .mirror-project.is-active {
  box-shadow: 0 42px 100px rgba(61, 48, 24, 0.28), 0 0 54px rgba(169, 121, 36, 0.13);
}

@media (max-width: 767.98px) {
  .project-showroom {
    padding-top: 94px;
  }

  .project-showroom__intro {
    width: min(88vw, 520px);
    margin-bottom: 2px;
  }

  .project-showroom__intro h1,
  .project-showroom__intro h2 {
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }

  .project-showroom__intro p {
    margin-top: 7px;
    line-height: 1.65;
  }

  .project-showroom__watermark {
    width: 120vw;
    opacity: 0.04;
  }

  .mirror-hall {
    height: min(60svh, 560px);
  }

  .mirror-project {
    width: min(82vw, 390px);
    aspect-ratio: 4 / 5;
  }

  .mirror-project__content {
    display: grid;
    grid-template-columns: 1fr;
    padding: 62px 20px 24px;
  }

  .mirror-project__meta,
  .mirror-project__content strong,
  .mirror-project__cta {
    grid-column: 1;
    grid-row: auto;
  }

  .mirror-project__content strong {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
  }

  .mirror-project__cta {
    justify-self: start;
    min-height: 36px;
    padding: 7px 12px;
  }

  .mirror-hall__control {
    width: 42px;
    height: 42px;
  }

  .mirror-hall__control--previous {
    inset-inline-start: 8px;
  }

  .mirror-hall__control--next {
    inset-inline-end: 8px;
  }

  .project-showroom__status {
    grid-template-columns: auto minmax(80px, 1fr);
    width: min(86vw, 420px);
  }

  .project-showroom__hint {
    display: none;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .project-showroom {
    min-height: 100svh;
    padding-top: 70px;
    padding-bottom: 8px;
  }

  .project-showroom__intro {
    margin-bottom: 0;
  }

  .project-showroom__eyebrow,
  .project-showroom__intro p {
    display: none;
  }

  .project-showroom__intro h1,
  .project-showroom__intro h2 {
    font-size: clamp(1.4rem, 4.4vw, 2rem);
  }

  .mirror-hall {
    height: 65svh;
  }

  .mirror-project {
    width: min(62vw, 560px);
    aspect-ratio: 16 / 9;
  }

  .mirror-project__content {
    padding: 44px 18px 16px;
  }

  .mirror-project__content strong {
    font-size: 1rem;
  }

  .mirror-project__cta,
  .mirror-project__meta {
    font-size: 0.58rem;
  }

  .mirror-project__number {
    top: 10px;
    inset-inline-start: 10px;
    width: 28px;
    height: 28px;
  }

  .project-showroom__status {
    margin-top: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mirror-project,
  .mirror-project img,
  .project-showroom__progress i {
    transition-duration: 1ms;
  }
}
