/* Pergola showcase — self-running 3D presentation (no controls). */
.pshow { --ps-accent: #2f6b4f; --ps-radius: 14px; position: relative; margin: 0 0 1.5rem; font: inherit; color: inherit; }
.pshow-heading { margin: 0 0 .4em; }
.pshow-intro { margin: 0 0 1em; max-width: 60ch; }
.pshow-frame {
  position: relative; width: 100%; aspect-ratio: var(--ps-aspect, 16 / 9); max-height: var(--ps-max-h, 720px);
  border-radius: var(--ps-radius); overflow: hidden; background: #dde6ee; isolation: isolate;
}
.pshow-stage, .pshow-stage canvas, .pshow-fade { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.pshow-stage canvas { pointer-events: none; touch-action: auto; }
.pshow-fade { pointer-events: none; opacity: 0; z-index: 1; }

.pshow-caption {
  position: absolute; left: clamp(12px, 3%, 28px); bottom: clamp(14px, 4%, 30px); z-index: 2;
  max-width: min(78%, 460px); padding: .7em 1em .75em; border-radius: 10px;
  background: rgba(17, 22, 28, .58); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
.pshow-caption.is-in { opacity: 1; transform: none; }
.pshow-caption__title { display: block; font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.15rem); line-height: 1.25; }
.pshow-caption__sub { display: block; margin-top: .15em; font-size: clamp(.8rem, 1.3vw, .95rem); opacity: .85; font-variant-numeric: tabular-nums; }
.pshow-caption__sub:empty { display: none; }

.pshow-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, .25); }
.pshow-progress span { display: block; height: 100%; background: var(--ps-accent); transform-origin: 0 50%; transform: scaleX(0); }

.pshow-cta {
  position: absolute; right: clamp(12px, 3%, 28px); bottom: clamp(14px, 4%, 30px); z-index: 3;
  padding: .7em 1.2em; border-radius: 999px; background: var(--ps-accent); color: #fff !important; text-decoration: none !important;
  font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: transform .2s ease, filter .2s ease;
}
.pshow-cta:hover, .pshow-cta:focus-visible { transform: translateY(-1px); filter: brightness(1.08); }

.pshow-loader {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.pshow.is-loading .pshow-loader { opacity: 1; }
.pshow-loader::after {
  content: ""; width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(47, 107, 79, .25); border-top-color: var(--ps-accent); animation: pshow-spin .9s linear infinite;
}
@keyframes pshow-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .pshow-frame { aspect-ratio: var(--ps-aspect-mobile, 4 / 5); }
  .pshow-caption { max-width: calc(100% - 24px); }
  .pshow-cta { left: 12px; right: auto; top: 12px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pshow-caption, .pshow-fade { transition: none !important; }
}
