/* A real CSS 3D scene: image planes at different depths, never presented as a face mesh. */
.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  filter: saturate(0.62) brightness(0.62) contrast(1.06);
  z-index: 1;
  opacity: 1;
  scale: 1.06;
  transition: opacity 0.3s ease;
}
.hero-film.is-playing {
  animation: hero-one-take 6.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-film.is-playing.is-paused {
  animation-play-state: paused;
}
@keyframes hero-one-take {
  0% {
    object-position: 50% 35%;
    scale: 1.07;
    filter: saturate(0.54) brightness(0.57) contrast(1.09);
  }
  100% {
    object-position: 52% 42%;
    scale: 1.025;
    filter: saturate(0.7) brightness(0.64) contrast(1.04);
  }
}
.hero-world .world-shade {
  z-index: 2;
}
.hero[data-scene="1"] .hero-film,
.hero[data-scene="2"] .hero-film {
  display: none;
}
.spatial-center > span {
  top: 0;
  bottom: auto;
  pointer-events: none;
}
.spatial-center video {
  object-fit: contain;
  background: #080b08;
}
.hero-film[hidden] {
  display: none;
}
.spatial-viewer {
  --orbit: -12deg;
  --pitch: -5deg;
  background: #111510;
  color: #eeeee5;
  margin: 45px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #92997d55;
}
.spatial-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  font-size: 10px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #eeeee525;
}
.spatial-viewport {
  height: 560px;
  perspective: 1200px;
  perspective-origin: 50% 40%;
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  isolation: isolate;
}
.spatial-viewport:active {
  cursor: grabbing;
}
.spatial-rig {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 440px;
  height: 275px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(var(--pitch)) rotateY(var(--orbit));
  transition: transform 0.12s linear;
}
.spatial-panel {
  position: absolute;
  inset: 0;
  background: #292f23;
  border: 1px solid #eeeee566;
  backface-visibility: hidden;
  box-shadow: 0 20px 70px #0006;
  transform-style: preserve-3d;
}
.spatial-panel img,
.spatial-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spatial-panel > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111510c9;
  color: #eeeee5;
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.06em;
  transform: translateZ(2px);
}
.spatial-center {
  transform: translateZ(90px);
  z-index: 2;
}
.spatial-left {
  transform: translateX(-350px) translateZ(-100px) rotateY(42deg);
  width: 250px;
  height: 340px;
  top: -30px;
}
.spatial-left img {
  object-position: left center;
}
.spatial-right {
  transform: translateX(520px) translateZ(-100px) rotateY(-42deg);
  width: 250px;
  height: 340px;
  top: -30px;
}
.spatial-right img {
  object-position: 50% center;
}
.spatial-axis {
  position: absolute;
  left: -330px;
  right: -330px;
  height: 1px;
  bottom: -80px;
  background: #eeeee544;
  transform: translateZ(-80px);
  transform-style: preserve-3d;
}
.spatial-axis span {
  position: absolute;
  left: 0;
  top: 15px;
  font:
    10px "DM Sans",
    sans-serif;
  letter-spacing: 0.15em;
  color: #b5bca7;
}
.spatial-controls {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 25px 15px;
  max-width: 650px;
  margin: auto;
  font-size: 11px;
}
.spatial-controls input {
  accent-color: #fa4427;
  min-height: 44px;
  padding: 0;
  cursor: ew-resize;
}
.spatial-controls button {
  white-space: nowrap;
  min-height: 44px;
  border-bottom: 1px solid #eeeee555;
  padding: 10px 0;
}
.spatial-note {
  text-align: center;
  padding: 0 20px 22px;
  font-size: 10px;
  color: #a8b099;
}
.hero-pin {
  perspective: 1300px;
}
.hero-cut {
  transform-style: preserve-3d;
}
.choreography .cut-one {
  transform: translate3d(
      calc(var(--mx) * -45px + var(--hero-progress) * -110px),
      calc(var(--my) * -25px + var(--hero-progress) * 130px),
      50px
    )
    rotateX(calc(var(--my) * -18deg)) rotateY(calc(var(--mx) * 25deg))
    rotateZ(-12deg);
}
.choreography .cut-two {
  transform: translate3d(
      calc(var(--mx) * 30px + var(--hero-progress) * 100px),
      calc(var(--my) * 20px + var(--hero-progress) * 100px),
      80px
    )
    rotateX(calc(var(--my) * -20deg)) rotateY(calc(var(--mx) * -25deg))
    rotateZ(8deg);
}
@media (max-width: 900px) {
  .spatial-viewport {
    height: 460px;
    perspective: 1000px;
  }
  .spatial-rig {
    scale: 0.75;
  }
  .spatial-caption {
    font-size: 9px;
  }
  .spatial-left {
    transform: translateX(-285px) translateZ(-140px) rotateY(48deg);
  }
  .spatial-right {
    transform: translateX(475px) translateZ(-140px) rotateY(-48deg);
  }
}
@media (max-width: 600px) {
  .spatial-viewport {
    height: 350px;
    perspective: 800px;
  }
  .spatial-rig {
    width: 320px;
    height: 210px;
    scale: 0.7;
    left: 50%;
    transform: translate(-72%, -50%) rotateX(var(--pitch)) rotateY(var(--orbit));
  }
  .spatial-left {
    width: 180px;
    height: 250px;
    transform: translateX(-190px) translateZ(-130px) rotateY(55deg);
  }
  .spatial-right {
    width: 180px;
    height: 250px;
    transform: translateX(330px) translateZ(-130px) rotateY(-55deg);
  }
  .spatial-caption {
    padding: 18px 15px;
    font-size: 8px;
  }
  .spatial-caption > span:last-child {
    text-align: right;
    max-width: 100px;
  }
  .spatial-controls {
    padding: 0 15px 12px;
    gap: 12px;
    font-size: 10px;
  }
  .spatial-note {
    font-size: 9px;
  }
  .spatial-panel > span {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spatial-rig {
    transition: none;
  }
  .hero-cut {
    transform: none !important;
  }
}
.hero-replay {
  position: absolute;
  z-index: 8;
  right: 5%;
  bottom: 125px;
  border: 1px solid #ffffff70;
  border-radius: 100px;
  background: #12121280;
  color: #fff;
  padding: 12px 20px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.hero-replay[hidden],
.hero-film[hidden] {
  display: none;
}
.hero:not([data-scene="0"]) .hero-replay {
  display: none;
}
.spatial-left img,
.spatial-right img {
  object-position: 50% 25%;
}
.project-worlds .project-visual > img {
  filter: brightness(0.75);
}
.social-collage img {
  object-position: 50% 25%;
}
@media (max-width: 600px) {
  .hero-replay {
    bottom: 110px;
    font-size: 11px;
    padding: 10px 14px;
  }
}
/* Keep the decoded film on a simple composited plane. */
.hero-film {
  filter: none;
}
.hero:has(.hero-film:not([hidden])) .hero-world {
  transform: none;
}
.sequence-section {
  background: #111410;
  color: #eeeee5;
}
.sequence-heading {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px;
}
.sequence-heading > span {
  grid-column: 1/-1;
  font-size: 11px;
  letter-spacing: 0.13em;
}
.sequence-heading h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(50px, 7vw, 110px);
  line-height: 0.92;
  font-weight: 700;
}
.sequence-heading h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #ff472d;
  font-size: 0.75em;
}
.sequence-heading p {
  max-width: 270px;
  justify-self: end;
  line-height: 1.6;
}
.action-frame {
  position: relative;
  background: #000;
}
.action-film {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.action-frame > span {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #111b;
  padding: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.cast-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 55px 0 24px;
  gap: 20px;
  font-size: 12px;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cast-grid figure {
  margin: 0;
  overflow: hidden;
}
.cast-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.5s;
}
.cast-grid figure:hover img {
  transform: scale(1.035);
}
.cast-grid figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 10px;
}
.cast-grid figcaption span {
  font-size: 10px;
  letter-spacing: 0.08em;
}
.cast-grid figcaption b {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
}
@media (max-width: 600px) {
  .sequence-heading {
    grid-template-columns: 1fr;
  }
  .sequence-heading p {
    justify-self: start;
  }
  .cast-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .cast-grid img {
    max-height: 540px;
  }
  .cast-heading {
    align-items: start;
  }
  .cast-heading p {
    max-width: 170px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cast-grid img {
    transition: none;
  }
}

.story-world {
  padding: 0;
  overflow: hidden;
  background: #e4e4d7;
}
.story-intro {
  min-height: 65vh;
}
.story-link {
  display: inline-block;
  padding: 15px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid;
}
.story-act {
  position: relative;
  padding: 100px 6%;
}
.act-copy {
  position: relative;
  z-index: 2;
}
.act-copy > span {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.act-copy h3,
.making-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(65px, 8vw, 130px);
  font-weight: 600;
  line-height: 0.95;
  margin: 30px 0;
  letter-spacing: -0.035em;
}
.act-copy h3 em,
.making-title em {
  font-family: Georgia, serif;
  font-size: 0.72em;
  font-weight: 400;
  color: #f0442c;
}
.act-copy p {
  font-size: 14px;
  line-height: 1.7;
}
.story-film {
  position: relative;
  width: 76%;
  margin-top: 70px;
}
.story-film video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.story-film > span {
  display: block;
  font-size: 10px;
  padding-top: 16px;
  letter-spacing: 0.1em;
}
.story-portrait {
  margin: 0;
  position: relative;
  z-index: 2;
}
.story-portrait img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.story-portrait figcaption {
  font-size: 9px;
  letter-spacing: 0.13em;
  padding: 13px 0;
}
.portrait-first {
  position: absolute;
  width: 23%;
  right: 6%;
  top: 100px;
  transform: rotate(5deg);
}
.portrait-first img {
  aspect-ratio: 3/4;
}
.act-two {
  background: #10130f;
  color: #eeeede;
  min-height: 1350px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  align-items: start;
}
.casino-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.act-two .act-copy {
  grid-column: 2/10;
  padding-top: 40px;
}
.portrait-haydeh {
  grid-column: 1/4;
  grid-row: 2;
  transform: rotate(-6deg);
  margin-top: 50px;
}
.portrait-woman {
  grid-column: 9/13;
  grid-row: 2;
  transform: rotate(5deg);
}
.portrait-red {
  grid-column: 5/8;
  grid-row: 3;
  margin-top: -100px;
  transform: rotate(-3deg);
}
.portrait-haydeh img,
.portrait-woman img,
.portrait-red img {
  aspect-ratio: 3/4;
}
.encounter-line {
  position: absolute;
  bottom: 80px;
  left: 6%;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(70px, 15vw, 240px);
  opacity: 0.1;
  letter-spacing: -0.04em;
}
.act-three {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 70px;
  align-items: center;
  background: #181b16;
  color: #eeeede;
  padding-top: 130px;
}
.portrait-man {
  width: 80%;
  transform: rotate(-4deg);
}
.portrait-man img {
  aspect-ratio: 3/4;
}
.act-three .action-frame {
  grid-column: 1/-1;
  margin-top: 30px;
}
.story-making {
  padding-top: 100px;
  padding-bottom: 100px;
}
.making-title {
  margin-bottom: 70px;
}
@media (max-width: 700px) {
  .story-act {
    padding: 70px 6%;
  }
  .portrait-first {
    width: 30%;
    top: 80px;
    right: 5%;
  }
  .act-one .act-copy {
    max-width: 65%;
  }
  .act-copy h3,
  .making-title {
    font-size: clamp(48px, 10vw, 72px);
  }
  .story-film {
    width: 100%;
    margin-top: 50px;
  }
  .act-two {
    min-height: unset;
    gap: 20px;
    padding-bottom: 100px;
  }
  .act-two .act-copy {
    grid-column: 1/-1;
  }
  .portrait-haydeh {
    grid-column: 1/6;
  }
  .portrait-woman {
    grid-column: 8/13;
    margin-top: 110px;
  }
  .portrait-red {
    grid-column: 4/9;
    margin-top: 0;
  }
  .act-three {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .portrait-man {
    width: 48%;
    margin-left: 45%;
  }
  .act-three .act-copy {
    margin-top: -30px;
  }
  .story-portrait figcaption {
    font-size: 8px;
    line-height: 1.6;
  }
  .encounter-line {
    bottom: 25px;
  }
}
