/* Experience prototype demos — scoped; does not alter live site sections */

.exp-proto-band {
  background: linear-gradient(180deg, var(--paper-deep) 0%, #fff 28%, var(--paper-deep) 100%);
  border-top: 1px solid rgba(26, 21, 32, 0.08);
  border-bottom: 1px solid rgba(26, 21, 32, 0.08);
}

.exp-proto-band__intro {
  max-width: 40rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.exp-proto-band__note {
  max-width: 34rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

.exp-proto {
  margin-bottom: 3.5rem;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: calc(var(--radius) + 0.2rem);
  background: #fff;
  border: 1px solid rgba(26, 21, 32, 0.08);
  box-shadow: 0 16px 40px rgba(26, 21, 32, 0.06);
}

.exp-proto:last-child {
  margin-bottom: 0;
}

.exp-proto__header {
  margin-bottom: 1.5rem;
}

.exp-proto__badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(196, 92, 62, 0.1);
  border-radius: 999px;
}

.exp-proto__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.exp-proto__lead {
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 42rem;
}

.exp-proto__video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(26, 21, 32, 0.72);
  border-radius: 0.35rem;
}

.exp-proto__video-fallback--large {
  min-height: clamp(14rem, 40vw, 22rem);
  border-radius: calc(var(--radius) + 0.15rem);
}

/* Option A */

.exp-proto-a__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(165deg, #1a1520 0%, #2a2230 100%);
  border-radius: calc(var(--radius) + 0.1rem);
  color: #fff;
}

.exp-proto-a__preview-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.45;
  margin: 0;
  opacity: 0.88;
}

.exp-proto-a__overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(12, 10, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.exp-proto-a__overlay[hidden] {
  display: none;
}

.exp-proto-a__stage {
  position: relative;
  width: min(100%, 56rem);
  min-height: clamp(18rem, 62vh, 34rem);
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.2rem);
  background: #120f16;
  isolation: isolate;
}

.exp-proto-a__video,
.exp-proto-b__video {
  position: absolute;
  inset: 18%;
  z-index: 0;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transform: scale(0.88);
  transition:
    inset 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-proto-a__script,
.exp-proto-b__script {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(18rem, 62vh, 34rem);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.exp-proto-a__line,
.exp-proto-b__line {
  max-width: 28rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.exp-proto-a__stage.is-revealing .exp-proto-a__video,
.exp-proto-a__stage.is-revealed .exp-proto-a__video,
.exp-proto-b__stage.is-revealing .exp-proto-b__video,
.exp-proto-b__stage.is-revealed .exp-proto-b__video {
  inset: 0;
  opacity: 1;
  transform: scale(1);
}

.exp-proto-a__stage.is-revealing .exp-proto-a__script,
.exp-proto-a__stage.is-revealed .exp-proto-a__script,
.exp-proto-b__stage.is-revealing .exp-proto-b__script,
.exp-proto-b__stage.is-revealed .exp-proto-b__script {
  opacity: 0;
  transform: translateY(-1.25rem);
  pointer-events: none;
}

.exp-proto-a__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.65rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease;
}

.exp-proto-a__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Option B */

.exp-proto-b__hint {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.exp-proto-b__shell {
  position: relative;
  border-radius: calc(var(--radius) + 0.1rem);
  background: #120f16;
}

.exp-proto-b__sticky {
  position: sticky;
  top: 5.5rem;
  z-index: 2;
}

.exp-proto-b__stage {
  position: relative;
  min-height: clamp(16rem, 46vh, 24rem);
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.1rem);
}

.exp-proto-b__track {
  position: relative;
  z-index: 0;
  margin-top: 0;
  pointer-events: none;
}

.exp-proto-b__spacer {
  height: 50vh;
  min-height: 12rem;
}

.exp-proto-b__spacer:first-child {
  height: 40vh;
}

.exp-proto-b__spacer:last-child {
  height: 34vh;
}

/* Option C */

.exp-proto-c__frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.15rem);
  background: #120f16;
}

.exp-proto-c__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.exp-proto-c__play {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 12px 32px rgba(26, 21, 32, 0.28);
}

.exp-proto-c__frame.is-playing .exp-proto-c__play {
  opacity: 0;
  pointer-events: none;
}

body.exp-proto-scroll-lock {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .exp-proto-b__sticky {
    top: 4.5rem;
  }

  .exp-proto-b__spacer {
    height: 56vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-proto-a__video,
  .exp-proto-b__video,
  .exp-proto-a__script,
  .exp-proto-b__script {
    transition: none;
  }
}
