/* ============================================================
   CREATIVE IMAGE CORRIDOR — narrative hero (user reference)
   Scroll-driven perspective corridor + shared card choreography.
   ============================================================ */
.page-scroll {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
}
.page-scroll::-webkit-scrollbar { display: none; }
.page-scroll.is-transition-locked { overflow-y: hidden; scroll-behavior: auto; scroll-snap-type: none; }

.hero-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(23,23,19,.14) 1.2px, transparent 1.35px);
  background-size: 20px 20px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 50% 43%, rgba(255,255,255,.85), rgba(241,240,236,0) 42%);
  pointer-events: none;
}
.motion-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(23,23,19,.14) 1.2px, transparent 1.35px);
  background-size: 20px 20px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.motion-screen::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: radial-gradient(circle at 50% 43%, rgba(255,255,255,.85), rgba(241,240,236,0) 42%);
  pointer-events: none;
}
.display-heading {
  position: absolute;
  top: clamp(72px, 9vh, 98px);
  left: 50%;
  z-index: 20;
  width: min(1040px, 88vw);
  opacity: 0;
  transform: translate(-50%, -34px) scale(.97);
  text-align: center;
}
.display-screen.is-active .display-heading {
  animation: display-heading-in 900ms cubic-bezier(.16,1,.3,1) 120ms both;
}
.display-heading p,
.marketplace-kicker {
  margin: 0 0 14px;
  color: rgba(23,23,19,.48);
  font-family: var(--f-mono), monospace;
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.display-heading h2,
.marketplace-copy h2,
.featured-copy h2 {
  margin: 0;
  font-family: var(--f-body), sans-serif;
  font-size: clamp(58px, 5.1vw, 98px);
  font-weight: 560;
  line-height: .92;
  letter-spacing: -.065em;
}
.display-heading h2 em,
.marketplace-copy h2 em,
.featured-copy h2 em {
  color: var(--terracotta);
  font-style: normal;
}

.shared-card-stage {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
  transition: opacity 260ms ease-out;
  visibility: visible;
}
.shared-card-stage.is-hidden { opacity: 0; visibility: hidden; }
.shared-card-stage.is-fading-out { opacity: 0; }
.placeholder-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(138px, 10.5vw, 202px);
  aspect-ratio: 1;
  border-radius: 16px;
  background-color: var(--card-color);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
  will-change: transform, opacity;
}
.shared-card {
  --fourth-x: calc(43.2vw - 180px);
  --fourth-y: calc(39vh - 204px);
  top: calc(51% + 24px);
  z-index: calc(20 + var(--card-order));
  width: 360px;
}
.shared-card-stage.is-second-enter .shared-card { animation: display-card-enter 3s both; }
.shared-card-stage.is-closing .shared-card { animation: display-card-close 1s cubic-bezier(.4,0,.2,1) both; }
.shared-card-stage.is-holding .shared-card { transform: translate(-50%,-50%) rotate(0deg) scale(1); }
.shared-card-stage.is-third-expand .shared-card { animation: shared-card-third-expand 1050ms cubic-bezier(.55,0,.2,1) var(--card-delay) both; }
.shared-card-stage.is-third-return .shared-card { animation: shared-card-third-return 1050ms cubic-bezier(.16,1,.3,1) var(--card-delay) both; }
.shared-card-stage.is-third-closing .shared-card { animation: shared-card-third-close 1s cubic-bezier(.4,0,.2,1) both; }
.shared-card-stage.is-fourth-expand .shared-card,
.shared-card-stage.is-fourth-closing .shared-card {
  transform: translate(calc(-50% + var(--fourth-x)), calc(-50% + var(--fourth-y))) rotate(0deg) scale(1);
}
.shared-card-stage.is-fourth-expand .shared-card:not(:last-child),
.shared-card-stage.is-fourth-closing .shared-card:not(:last-child) { opacity: 0; }
.shared-card-stage.is-fourth-expand .shared-card:last-child {
  z-index: 50;
  transform-origin: 100% 100%;
  animation: shared-card-fourth-expand 1100ms cubic-bezier(.16,1,.3,1) both;
}
.shared-card-stage.is-fourth-closing .shared-card:last-child {
  z-index: 50;
  transform-origin: 100% 100%;
  animation: shared-card-fourth-close 900ms cubic-bezier(.4,0,.2,1) both;
}
.display-caption {
  position: absolute;
  bottom: clamp(64px, 8vh, 88px);
  left: 50%;
  width: min(530px, 82vw);
  transform: translateX(-50%);
  text-align: center;
  animation: display-caption-in 620ms cubic-bezier(.16,1,.3,1) 2.55s both;
}
.display-screen.is-closing .display-caption { animation: display-caption-out 300ms ease-in both; }
.display-caption > p {
  margin: 0 auto 18px;
  color: rgba(23,23,19,.7);
  font-size: 14px;
  line-height: 1.5;
}
.marketplace-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1b1b18;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.marketplace-action:hover { background: var(--pine); transform: translateY(-1px); }
.marketplace-copy {
  position: absolute;
  top: clamp(100px, 14vh, 152px);
  left: clamp(70px, 9vw, 174px);
  z-index: 30;
  width: min(720px, 48vw);
  opacity: 0;
  transform: translateY(54px);
}
.marketplace-screen.is-active .marketplace-copy { animation: marketplace-copy-in 950ms cubic-bezier(.16,1,.3,1) 140ms both; }
.marketplace-screen.is-closing .marketplace-copy { animation: marketplace-copy-out 360ms ease-in both; }
.marketplace-copy h2 { font-size: clamp(58px, 4.7vw, 90px); line-height: .94; }
.marketplace-description {
  max-width: 420px;
  margin: 28px 0 20px;
  color: rgba(23,23,19,.62);
  font-size: 14px;
  line-height: 1.55;
}
.featured-copy {
  position: absolute;
  top: 22.8vh;
  left: clamp(70px, 9vw, 174px);
  z-index: 30;
  width: min(720px, 48vw);
  opacity: 0;
  transform: translateY(42px);
}
.featured-screen.is-active .featured-copy { animation: featured-copy-in 850ms cubic-bezier(.16,1,.3,1) 430ms both; }
.featured-copy h2 { font-size: clamp(58px, 4.7vw, 90px); line-height: .94; }
.featured-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

@keyframes display-heading-in {
  from { opacity: 0; transform: translate(-50%,-34px) scale(.97); }
  to { opacity: 1; transform: translate(-50%,0) scale(1); }
}
@keyframes display-card-enter {
  0% { opacity: 1; transform: translate(-50%, calc(-50% + 62vh)) rotate(0deg) scale(1.1); animation-timing-function: linear; }
  33.333% { opacity: 1; transform: translate(-50%,-50%) rotate(15deg) scale(1); animation-timing-function: cubic-bezier(.4,0,.2,1); }
  100% { opacity: 1; transform: translate(calc(-50% + var(--card-x)), calc(-50% + var(--card-y))) rotate(var(--card-rotation)) scale(1); }
}
@keyframes display-card-close {
  from { opacity: 1; transform: translate(calc(-50% + var(--card-x)), calc(-50% + var(--card-y))) rotate(var(--card-rotation)) scale(1); }
  to { opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1); }
}
@keyframes display-caption-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes display-caption-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 12px); }
}
@keyframes marketplace-copy-in {
  from { opacity: 0; transform: translateY(54px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marketplace-copy-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-28px); }
}
@keyframes shared-card-third-expand {
  from { opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1); }
  to { opacity: 1; transform: translate(calc(-50% + var(--third-x)), calc(-50% + var(--third-y))) rotate(var(--third-rotation)) scale(1); }
}
@keyframes shared-card-third-return {
  from { opacity: 1; transform: translate(calc(-50% + var(--fourth-x)), calc(-50% + var(--fourth-y))) rotate(0deg) scale(1); }
  to { opacity: 1; transform: translate(calc(-50% + var(--third-x)), calc(-50% + var(--third-y))) rotate(var(--third-rotation)) scale(1); }
}
@keyframes shared-card-third-close {
  from { opacity: 1; transform: translate(calc(-50% + var(--third-x)), calc(-50% + var(--third-y))) rotate(var(--third-rotation)) scale(1); }
  to { opacity: 1; transform: translate(calc(-50% + var(--fourth-x)), calc(-50% + var(--fourth-y))) rotate(0deg) scale(1); }
}
@keyframes shared-card-fourth-expand {
  from { opacity: 1; transform: translate(calc(-50% + var(--fourth-x)), calc(-50% + var(--fourth-y))) rotate(0deg) scale(1); }
  to { opacity: 1; transform: translate(calc(-50% + var(--fourth-x)), calc(-50% + var(--fourth-y))) rotate(0deg) scale(var(--fourth-scale)); }
}
@keyframes shared-card-fourth-close {
  from { opacity: 1; transform: translate(calc(-50% + var(--fourth-x)), calc(-50% + var(--fourth-y))) rotate(0deg) scale(var(--fourth-scale)); }
  to { opacity: 1; transform: translate(calc(-50% + var(--fourth-x)), calc(-50% + var(--fourth-y))) rotate(0deg) scale(1); }
}
@keyframes featured-copy-in {
  from { opacity: 0; transform: translateY(42px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Narrative header (prototype .site-header/.brand renamed to avoid collisions) */
.narrative-header {
  position: absolute;
  top: clamp(20px, 2.3vh, 28px);
  left: clamp(24px, 2.5vw, 48px);
  right: clamp(24px, 2.5vw, 48px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.narrative-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23,23,19,.14);
  border-radius: 4px;
  background: rgba(241,240,236,.72);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(23,23,19,.1);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.narrative-mark {
  width: 17px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.narrative-mark::after {
  display: block;
  width: 5px;
  height: 5px;
  margin: 2px auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.narrative-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.narrative-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid rgba(23,23,19,.14);
  background: rgba(241,240,236,.72);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms ease;
}
.narrative-links a:hover { background: rgba(241,240,236,1); }
.narrative-links .is-buy {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  font-weight: 600;
}
.narrative-links .is-buy:hover { background: var(--terracotta-lt); }

.hero-copy {
  position: absolute;
  top: clamp(88px, 10.5vh, 114px);
  left: 50%;
  z-index: 210;
  width: min(920px, 90vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 10px;
  color: rgba(23,23,19,.57);
  font-family: var(--f-mono), monospace;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--f-display), Georgia, serif;
  font-size: clamp(54px, 5vw, 96px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.corridor {
  position: absolute;
  top: 21.5%;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 55%;
  perspective: 850px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}
.corridor-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34vw;
  height: 22vw;
  border-radius: 50%;
  background: rgba(255,255,255,.46);
  filter: blur(55px);
  transform: translate(-50%,-50%);
}
.center-aperture {
  --open: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: clamp(210px, 15vw, 288px);
  height: clamp(54px, 5.6vw, 108px);
  border-radius: 8px;
  background: #171715;
  transform: translate(-50%,-50%) scaleX(var(--open));
  transform-origin: center;
  will-change: transform, opacity;
}
.color-card {
  --x: 0px;
  --scale: .27;
  --rotate: 0deg;
  --birth: 0;
  --base-shift: -50%;
  --origin-x: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 12.5vw, 240px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background-color: #171715;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
  opacity: 0;
  transform: translate3d(calc(var(--base-shift) + var(--x)), -50%, 0) rotateY(var(--rotate)) scale(var(--scale)) scale(var(--birth));
  transform-origin: var(--origin-x) 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.card-index {
  position: absolute;
  right: 8%;
  bottom: 7%;
  color: rgba(255,255,255,.75);
  font-family: var(--f-mono), monospace;
  font-size: 9px;
  letter-spacing: .08em;
}
.hero-footnote {
  position: absolute;
  bottom: clamp(28px, 4.8vh, 52px);
  left: 50%;
  z-index: 220;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(520px, 82vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.hero-footnote p {
  margin: 0 0 13px;
  font-size: 14px;
  line-height: 1.5;
}
.hero-footnote span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 15px;
  border: 1px solid rgba(23,23,19,.17);
  border-radius: 999px;
  background: rgba(241,240,236,.68);
  backdrop-filter: blur(8px);
  color: rgba(23,23,19,.6);
  font-family: var(--f-mono), monospace;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Narrative + funnel seam */
.funnel { position: relative; z-index: 2; }

@media (max-width: 760px) {
  .hero-shell { min-height: 560px; background-size: 16px 16px; }
  .motion-screen { min-height: 560px; background-size: 16px 16px; }
  .narrative-header { top: 16px; left: 16px; right: 16px; }
  .narrative-links { flex-wrap: wrap; justify-content: flex-end; }
  .narrative-brand, .narrative-links a { min-height: 38px; padding: 0 12px; font-size: 11px; }
  .narrative-links .link-label { display: none; }
  .hero-copy { top: 86px; width: 92vw; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 66px); line-height: .92; white-space: normal; }
  .corridor { top: 27%; height: 54%; }
  .color-card { width: clamp(140px, 39vw, 210px); }
  .hero-footnote { bottom: 24px; }
  .marketplace-copy, .featured-copy { top: 16vh; left: 6vw; width: 88vw; }
  .marketplace-copy h2, .featured-copy h2 { font-size: clamp(44px, 9.5vw, 66px); }
}
