/* =========================================================
   TRINAY v5 layer: loads after trinay.css
   1. Site-wide fixes (header, wordmark, menu affordance, cursor, transitions, hover scale)
   2. Services page (v5-svc-*)
   3. Studio page (v5-st-*)
   Every class is prefixed v5- so nothing in trinay.css is overridden by accident.
   ========================================================= */

/* ---------- 1. Site-wide ---------- */

/* Header: real Trinay wordmark (outlined SVG), bigger, optically aligned with the mark */
.hdr .wordmark--svg {
  display: block;
  margin: 0;
  letter-spacing: 0;
  line-height: 0;
}
.hdr .wordmark--svg img {
  /* height: clamp(18px, 1.55vw, 28px); */
  height: clamp(18px, 3vw, 42px);
  width: auto;
}
.hdr__menu {
  width: clamp(30px, 2.1vw, 40px);
  height: clamp(30px, 2.1vw, 40px);
}
/* Header hides on scroll down, returns on scroll up; gets a soft backdrop once the page has scrolled */
.hdr.is-scrolled::before {
  opacity: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}
.hdr {
  transition: transform 0.7s var(--ease);
}

/* Menu button affordance: label slides out on hover, ring pulses once in a while so it reads as a button */
.hdr__menu .v5-hint {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translate(-6px, -50%);
  font: 500 11px var(--f-ui);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease);
}
.hdr__menu:hover .v5-hint,
.hdr__menu:focus-visible .v5-hint {
  opacity: 1;
  transform: translate(0, -50%);
}
.menu-open .hdr__menu .v5-hint {
  opacity: 0;
}
.hdr__menu::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 234, 0.55);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
.hdr__menu.v5-pulse::after {
  animation: v5-pulse 1.6s var(--ease) 1;
}
@keyframes v5-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
.hdr__menu .mark {
  transition:
    transform 0.6s var(--ease),
    opacity 0.4s var(--ease);
}
.hdr__menu:hover .mark {
  transform: rotate(-90deg) scale(0.92);
}

/* Footer brand */
.foot__brand .v5-wm {
  height: auto;
  width: 190px;
  display: block;
}
.foot__about em {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.25em;
  color: var(--bone);
}

/* Cards grow a little on hover/press (Vruti's note) */
.v5-lift {
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
  will-change: transform;
}
@media (hover: hover) {
  .v5-lift:hover {
    transform: scale(1.03);
  }
}
.v5-lift:active {
  transform: scale(1.02);
}

/* Custom cursor (fine pointers only; the system cursor stays visible) */
.v5-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: normal;
}
.v5-cursor__dot,
.v5-cursor__ring {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
}
.v5-cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--ember);
}
.v5-cursor__ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(242, 239, 234, 0.5);
  display: grid;
  place-items: center;
  transition:
    width 0.45s var(--ease),
    height 0.45s var(--ease),
    margin 0.45s var(--ease),
    background 0.3s,
    border-color 0.3s;
}
.v5-cursor__ring span {
  font: 600 10px var(--f-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity 0.25s;
}
.v5-cursor.is-label .v5-cursor__ring {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--bone);
  border-color: var(--bone);
}
.v5-cursor.is-label .v5-cursor__ring span {
  opacity: 1;
}
.v5-cursor.is-hidden {
  opacity: 0;
}
@media (hover: none), (pointer: coarse) {
  .v5-cursor {
    display: none;
  }
}

/* Page transition curtain (only when JS is on; content is never hidden without JS) */
.v5-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
  transform: translateY(0);
  pointer-events: none;
}
.v5-curtain svg {
  width: 54px;
  height: 54px;
  color: var(--bone);
  opacity: 0.9;
}
.v5-curtain.is-out {
  transform: translateY(-101%);
  transition: transform 1s var(--ease) 0.1s;
}
.v5-curtain.is-in {
  transform: translateY(101%);
}
.v5-curtain.is-cover {
  transform: translateY(0);
  transition: transform 0.6s var(--ease);
}
html:not(.v5-js) .v5-curtain {
  display: none;
}

/* Reveal helpers */
.v5-js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s var(--ease),
    transform 1.2s var(--ease);
}
.v5-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.v5-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.v5-words .w > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.v5-words.is-in .w > i {
  transform: none;
}

/* Video helpers */
.v5-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v5-tap {
  position: absolute;
  inset: auto 16px 16px auto;
  z-index: 3;
  display: none;
  padding: 9px 14px;
  border-radius: 40px;
  font: 600 11px var(--f-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
.v5-blocked .v5-tap {
  display: inline-block;
}

.v5-section {
  position: relative;
  padding: clamp(96px, 12vw, 200px) var(--edge);
}
.v5-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.v5-head .display {
  font-size: clamp(48px, 6.4vw, 120px);
}
.v5-head p.v5-sub {
  max-width: 440px;
  margin: 0;
  color: var(--bone-76);
  font-size: 17px;
}
.v5-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.v5-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

/* ---------- 2. Services ---------- */

/* Hero: a drifting wall of the studio's own films */
.v5-svc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
}
.v5-wall {
  position: absolute;
  inset: -12% -10% -12% 18%;
  perspective: 1600px;
}
.v5-wall__plane {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  transform: rotateX(16deg) rotateY(-14deg) rotateZ(-6deg);
  transform-style: preserve-3d;
  transition: transform 1.4s var(--ease);
}
.v5-wall__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: v5-drift 46s linear infinite;
}
.v5-wall__col:nth-child(2) {
  animation-duration: 58s;
  animation-direction: reverse;
  margin-top: -18%;
}
.v5-wall__col:nth-child(3) {
  animation-duration: 52s;
  margin-top: -8%;
}
.v5-wall__col:nth-child(4) {
  animation-duration: 64s;
  animation-direction: reverse;
  margin-top: -26%;
}
@keyframes v5-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.v5-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  flex: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.v5-tile img,
.v5-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v5-svc-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #000 0%,
      rgba(0, 0, 0, 0.92) 26%,
      rgba(0, 0, 0, 0.35) 58%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 22%);
}
.v5-svc-hero__copy {
  position: absolute;
  left: var(--edge);
  bottom: clamp(120px, 15vh, 190px);
  z-index: 3;
  max-width: 760px;
}
.v5-svc-hero__copy h1 {
  font-size: clamp(64px, 8.6vw, 168px);
}
.v5-svc-hero__copy p.v5-for {
  margin: 28px 0 0;
  font: 400 clamp(17px, 1.3vw, 22px)/1.45 var(--f-ui);
  color: var(--bone);
  max-width: 520px;
}
.v5-chips {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 44px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.v5-chip {
  font: 500 12px var(--f-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 40px;
  border: 1px solid rgba(242, 239, 234, 0.3);
  color: var(--bone);
  background: rgba(10, 10, 12, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.5s var(--ease);
}
.v5-chip:hover,
.v5-chip.is-on {
  background: var(--bone);
  color: #000;
}
.v5-chip:hover {
  transform: translateY(-2px);
}
.v5-scrollcue {
  position: absolute;
  right: var(--edge);
  bottom: 50px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.v5-scrollcue i {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--bone), transparent);
  animation: v5-cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes v5-cue {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* Worlds: index + playing stage */
.v5-worlds {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.5fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: start;
}
#worlds {
  padding-top: clamp(80px, 9vw, 150px);
}
#worlds .v5-head {
  margin-bottom: clamp(28px, 3vw, 48px);
}
.v5-wlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.v5-wlist li {
  border-top: 1px solid var(--line);
}
.v5-wlist li:last-child {
  border-bottom: 1px solid var(--line);
}
.v5-wlist button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: clamp(14px, 1.3vw, 22px) 0;
  text-align: left;
  color: rgba(242, 239, 234, 0.42);
  transition: color 0.4s;
}
.v5-wlist button .n {
  font: 500 12px var(--f-ui);
  letter-spacing: 0.2em;
}
.v5-wlist button .t {
  font: 300 clamp(26px, 2.5vw, 46px)/1 var(--f-display);
  text-transform: uppercase;
  transition: transform 0.6s var(--ease);
}
.v5-wlist button .t em {
  font-family: var(--f-serif);
  font-style: italic;
  text-transform: none;
  font-size: 1.1em;
}
.v5-wlist button:hover {
  color: var(--bone-76);
}
.v5-wlist button:hover .t {
  transform: translateX(8px);
}
.v5-wlist button.is-on {
  color: var(--bone);
}
.v5-wlist button.is-on .n {
  color: var(--ember);
}
.v5-wlist button .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ember);
  transform-origin: left;
  transform: scaleX(0);
}
.v5-stage-wrap {
  min-width: 0;
}
.v5-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0d;
  cursor: pointer;
  touch-action: pan-y;
}
.v5-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.8s var(--ease),
    transform 1.6s var(--ease);
  transform: scale(1.04);
}
.v5-stage video.is-on {
  opacity: 1;
  transform: none;
}
.v5-stage__ticks {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.v5-stage__ticks i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.v5-stage__ticks i b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.v5-stage__ticks i.done b {
  width: 100%;
}
.v5-stage__sound {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 40px;
  font: 500 13px var(--f-ui);
  color: #fff;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.v5-stage__sound span.c {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bone);
  color: #000;
  display: grid;
  place-items: center;
}
.v5-stage__sound .ic {
  width: 16px;
  height: 16px;
}
.v5-winfo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-top: 30px;
  min-height: 190px;
}
.v5-winfo .label {
  color: var(--ember);
}
.v5-winfo h3 {
  font-size: clamp(40px, 4vw, 76px);
  margin-top: 14px;
}
.v5-winfo p {
  margin: 16px 0 0;
  color: var(--bone-76);
  max-width: 560px;
}
.v5-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.v5-tags li {
  font: 500 11px var(--f-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--bone-76);
}
.v5-winfo .v5-swap {
  transition:
    opacity 0.45s var(--ease),
    transform 0.6s var(--ease);
}
.v5-winfo.is-swapping .v5-swap {
  opacity: 0;
  transform: translateY(14px);
}

/* Format Ladder (pinned) */
.v5-ladder {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 60px;
  padding: var(--hdr) var(--edge) 60px;
}
.v5-ladder h2 {
  font-size: clamp(48px, 5.6vw, 104px);
}
.v5-stops {
  margin-top: 44px;
}
.v5-stop {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  opacity: 0.32;
  transition: opacity 0.5s var(--ease);
}
.v5-stop.is-on {
  opacity: 1;
}
.v5-stop .r {
  font: 600 12px var(--f-ui);
  letter-spacing: 0.16em;
  color: var(--ember);
  padding-top: 6px;
}
.v5-stop b {
  display: block;
  font: 300 clamp(24px, 2vw, 34px)/1 var(--f-display);
  text-transform: uppercase;
}
.v5-stop span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--bone-76);
}
.v5-ladder__stage {
  position: relative;
  height: min(66vh, 620px);
  display: grid;
  place-items: center;
}
.v5-ladder__frame {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 50px 140px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.v5-ladder__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 50%;
}
.v5-ladder__ratio {
  position: absolute;
  left: 50%;
  bottom: -54px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.v5-ladder__ratio span {
  font: 600 11px var(--f-ui);
  letter-spacing: 0.14em;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--bone-55);
  transition: all 0.4s;
}
.v5-ladder__ratio span.is-on {
  background: var(--ember);
  border-color: var(--ember);
  color: #000;
}

/* Doors */
.v5-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
  perspective: 1400px;
}
.v5-door {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0d;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition:
    transform 0.8s var(--ease),
    border-color 0.4s;
}
.v5-door:hover {
  border-color: rgba(255, 107, 26, 0.6);
}
.v5-door__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.v5-door__media img,
.v5-door__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.2s var(--ease),
    opacity 0.6s;
}
.v5-door__media video {
  opacity: 0;
}
.v5-door:hover .v5-door__media video {
  opacity: 1;
}
.v5-door:hover .v5-door__media img {
  transform: scale(1.06);
}
.v5-door__body > .label {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--bone-55);
}
.v5-door__body {
  padding: 26px 26px 28px;
}
.v5-door h3 {
  font-size: clamp(34px, 2.8vw, 52px);
}
.v5-door ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.v5-door li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--bone-76);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.v5-door li b {
  font-weight: 500;
  color: var(--bone);
}
.v5-door__go {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 12px var(--f-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.v5-door__go .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease);
}
.v5-door:hover .v5-door__go .ic {
  transform: translateX(6px);
}

/* Process line */
.v5-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 44px);
  padding-top: 46px;
}
.v5-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}
.v5-steps__line {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
}
.v5-step .n {
  font: 200 clamp(56px, 5vw, 96px)/1 var(--f-display);
  color: var(--bone);
}
.v5-step h4 {
  margin: 14px 0 0;
  font: 300 clamp(26px, 2.1vw, 36px)/1 var(--f-display);
  text-transform: uppercase;
}
.v5-step p {
  margin: 12px 0 0;
  color: var(--bone-76);
  font-size: 16px;
}
.v5-step::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0;
  transition: opacity 0.4s;
}
.v5-step {
  position: relative;
}
.v5-step.is-in::before {
  opacity: 1;
}

/* CTA with film behind */
.v5-cta {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}
.v5-cta video,
.v5-cta img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v5-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.86) 72%
    ),
    linear-gradient(0deg, #000 0%, transparent 30%);
}
.v5-cta__copy {
  position: relative;
  z-index: 2;
}
.v5-cta h2 {
  font-size: clamp(72px, 10vw, 190px);
  margin-top: 20px;
}
.v5-cta__actions {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.v5-cta__actions .link {
  font-size: 17px;
  border-bottom: 1px solid var(--bone-55);
  padding-bottom: 3px;
}

/* ---------- 3. Studio ---------- */
.v5-st-hero {
  padding: calc(var(--hdr) + clamp(40px, 7vw, 120px)) var(--edge) 0;
  background: #000;
}
.v5-st-hero__copy {
  text-align: center;
}
.v5-st-hero h1 {
  font-size: clamp(60px, 8.4vw, 168px);
}
.v5-st-hero .v5-ci {
  margin-top: 30px;
  font: 500 clamp(13px, 1.05vw, 17px) var(--f-ui);
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  color: var(--bone);
}
.v5-st-hero__band {
  margin: clamp(56px, 7vw, 110px) auto 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  position: relative;
  transform-origin: 50% 0;
}
.v5-st-hero__band img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
}

.v5-cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 24px);
}
.v5-city {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0d;
}
.v5-city img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  transition:
    transform 1.4s var(--ease),
    filter 0.8s;
  filter: saturate(0.85) brightness(0.82);
}
.v5-city:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.92);
}
.v5-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0) 55%
  );
}
.v5-city__copy {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
}
.v5-city__name {
  font: 500 13px var(--f-ui);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.v5-city__time {
  font: 200 clamp(64px, 6.6vw, 124px)/0.9 var(--f-display);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.v5-city__time .c {
  animation: v5-blink 2s steps(1) infinite;
}
@keyframes v5-blink {
  50% {
    opacity: 0.25;
  }
}
.v5-city__role {
  margin-top: 10px;
  font: 500 12px var(--f-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-76);
}
@media (hover: hover) {
  .v5-city__role {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.6s var(--ease);
  }
  .v5-city:hover .v5-city__role {
    opacity: 1;
    transform: none;
  }
}

.v5-avp {
  display: flex;
  gap: clamp(10px, 1vw, 18px);
  height: min(78vh, 760px);
}
.v5-avp__p {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0d;
  cursor: pointer;
  transition: flex 1s var(--ease);
}
.v5-avp__p.is-on {
  flex: 2.4;
}
.v5-avp__p video,
.v5-avp__p img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.45);
  transition:
    filter 1s var(--ease),
    transform 1.6s var(--ease);
  transform: scale(1.06);
}
.v5-avp__p.is-on video,
.v5-avp__p.is-on img {
  filter: none;
  transform: none;
}
.v5-avp__p::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 50%
  );
}
.v5-avp__copy {
  position: absolute;
  left: clamp(20px, 2vw, 36px);
  right: clamp(20px, 2vw, 36px);
  bottom: clamp(22px, 2.4vw, 40px);
  z-index: 2;
}
.v5-avp__copy .label {
  color: var(--ember);
}
.v5-avp__copy h3 {
  font-size: clamp(44px, 5.4vw, 104px);
  margin-top: 12px;
  white-space: nowrap;
  transform-origin: 0 100%;
  transform: scale(0.52);
  transition: transform 1s var(--ease);
}
.v5-avp__p.is-on .v5-avp__copy h3 {
  transform: none;
}
.v5-avp__copy p {
  margin: 14px 0 0;
  max-width: 420px;
  color: var(--bone);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease) 0.1s,
    transform 0.8s var(--ease) 0.1s;
}
.v5-avp__p.is-on .v5-avp__copy p {
  opacity: 1;
  transform: none;
}

.v5-manifesto {
  padding: clamp(120px, 16vw, 260px) var(--edge);
  text-align: center;
}
.v5-manifesto p.serif {
  margin: 0 auto;
  max-width: 1280px;
  font: 400 clamp(38px, 4.6vw, 88px)/1.08 var(--f-serif);
  letter-spacing: -0.015em;
}
.v5-manifesto .wd {
  opacity: 0.16;
  transition: opacity 0.3s;
}
.v5-manifesto .wd.on {
  opacity: 1;
}
.v5-manifesto .wd.grad {
  opacity: 0.16;
}
.v5-manifesto .wd.grad.on {
  opacity: 1;
}
.v5-manifesto .label {
  margin-top: 44px;
}

.v5-pipe {
  position: relative;
  overflow: hidden;
}
.v5-pipe__head {
  padding: clamp(96px, 10vw, 160px) var(--edge) 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.v5-pipe__head h2 {
  font-size: clamp(52px, 6.4vw, 120px);
}
.v5-pipe__count {
  font: 200 clamp(40px, 3.4vw, 64px)/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.v5-pipe__count span {
  color: var(--bone-55);
}
.v5-pipe__track {
  display: flex;
  gap: clamp(16px, 1.6vw, 28px);
  padding: 0 var(--edge) 20px;
  width: max-content;
}
.v5-pcard {
  width: clamp(300px, 34vw, 620px);
  flex: none;
}
.v5-pcard__vis {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d10;
  border: 1px solid var(--line);
}
.v5-pcard__vis img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v5-pcard__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 22px;
}
.v5-pcard__meta .label:first-child {
  color: var(--ember);
}
.v5-pcard h3 {
  font-size: clamp(40px, 3.6vw, 68px);
  margin-top: 10px;
}
.v5-pcard p {
  margin: 12px 0 0;
  color: var(--bone-76);
  max-width: 460px;
  font-size: 16px;
}
.v5-pipe__bar {
  margin: 40px var(--edge) clamp(80px, 8vw, 140px);
  height: 1px;
  background: var(--line);
  position: relative;
}
.v5-pipe__bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
}
/* stage visuals */
.v5-sb {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: #e9e5dd;
}
.v5-sb img {
  position: relative !important;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v5-sb img:first-child {
  grid-row: span 2;
}
.v5-script {
  position: absolute;
  inset: 0;
  background: #f4f1ea;
  color: #111;
  padding: 9% 12%;
  font:
    400 clamp(11px, 0.95vw, 15px)/1.5 "Courier New",
    Courier,
    monospace;
}
.v5-script .sl {
  font-weight: 700;
  text-transform: uppercase;
}
.v5-script .ch {
  margin: 14px 0 0 38%;
  text-transform: uppercase;
}
.v5-script .dl {
  margin: 2px 18% 0 22%;
}
.v5-script .ac {
  margin-top: 12px;
}
.v5-script .pg {
  position: absolute;
  right: 9%;
  top: 6%;
}
.v5-look {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding: 8px;
  background: #0d0d10;
}
.v5-look img {
  position: relative !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.v5-look .sw {
  grid-column: span 3;
  display: flex;
  gap: 6px;
  height: 34px;
}
.v5-look .sw i {
  flex: 1;
  border-radius: 4px;
}
.v5-split {
  position: absolute;
  inset: 0;
}
.v5-split img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v5-split img.top {
  clip-path: inset(0 0 0 var(--x, 50%));
}
.v5-split .h {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x, 50%);
  width: 1px;
  background: #fff;
}
.v5-split .h::after {
  content: "⟷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
}
.v5-fmts {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.v5-fmts span {
  font: 600 10px var(--f-ui);
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.v5-nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.v5-nums b {
  display: block;
  font: 200 clamp(72px, 8vw, 150px)/0.9 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.v5-nums span {
  display: block;
  margin-top: 14px;
}

.v5-team {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 24px);
}
.v5-person {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0d;
  border: 1px dashed rgba(242, 239, 234, 0.22);
}
.v5-person__ph {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, #1a1a1f 0%, #0b0b0d 70%);
}
.v5-person__ph span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px dashed rgba(242, 239, 234, 0.35);
  display: grid;
  place-items: center;
  font: 300 30px var(--f-display);
  color: var(--bone-55);
}
.v5-person__b {
  padding: 18px 20px 20px;
}
.v5-person__b b {
  display: block;
  font: 300 22px/1 var(--f-display);
  text-transform: uppercase;
}
.v5-person__b .label {
  display: block;
  margin-top: 8px;
  color: var(--ember);
  font-size: 11px;
}
.v5-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--bone-55);
}

.v5-twodoors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.v5-twodoors a {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 4vw, 72px);
  transition: flex 0.9s var(--ease);
}
.v5-twodoors a img,
.v5-twodoors a video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transition:
    filter 0.8s var(--ease),
    transform 1.6s var(--ease);
}
.v5-twodoors a:hover img,
.v5-twodoors a:hover video {
  filter: brightness(0.75);
  transform: scale(1.04);
}
.v5-twodoors a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 60%);
}
.v5-twodoors .in {
  position: relative;
  z-index: 2;
}
.v5-twodoors h2 {
  font-size: clamp(56px, 6.4vw, 124px);
  margin-top: 16px;
}
.v5-twodoors .v5-door__go {
  margin-top: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .v5-wall__plane {
    grid-template-columns: repeat(3, 1fr);
  }
  .v5-wall__col:nth-child(4) {
    display: none;
  }
  .v5-team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .v5-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .v5-avp__copy h3 {
    transform: none;
    white-space: normal;
  }
  .v5-worlds {
    grid-template-columns: 1fr;
  }
  .v5-wlist {
    position: relative;
    top: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--edge) * -1);
    padding: 0 var(--edge) 4px;
    -webkit-overflow-scrolling: touch;
  }
  .v5-wlist::-webkit-scrollbar {
    display: none;
  }
  .v5-wlist li,
  .v5-wlist li:last-child {
    border: 0;
    flex: none;
  }
  .v5-wlist button {
    display: block;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 30px;
  }
  .v5-wlist button .n {
    display: none;
  }
  .v5-wlist button .t {
    font: 500 12px var(--f-ui);
    letter-spacing: 0.16em;
  }
  .v5-wlist button .t em {
    font: inherit;
  }
  .v5-wlist button.is-on {
    background: var(--bone);
    color: #000;
    border-color: var(--bone);
  }
  .v5-wlist button .bar {
    display: none;
  }
  .v5-winfo {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .v5-ladder {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: calc(var(--hdr) + 10px);
    align-content: start;
  }
  .v5-ladder h2 {
    font-size: 44px;
  }
  .v5-stops {
    margin-top: 18px;
  }
  .v5-stop {
    display: none;
    padding: 12px 0;
  }
  .v5-stop.is-on {
    display: grid;
  }
  .v5-ladder__stage {
    height: 48vh;
  }
  .v5-doors,
  .v5-steps,
  .v5-cities,
  .v5-nums,
  .v5-twodoors {
    grid-template-columns: 1fr;
  }
  .v5-steps::before,
  .v5-steps__line {
    display: none;
  }
  .v5-step {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .v5-step::before {
    display: none;
  }
  .v5-city {
    aspect-ratio: 16 / 11;
  }
  .v5-avp {
    flex-direction: column;
    height: auto;
  }
  .v5-avp__p {
    flex: none;
    height: 30vh;
    transition: height 1s var(--ease);
  }
  .v5-avp__p.is-on {
    flex: none;
    height: 56vh;
  }
  .v5-pipe__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .v5-pipe__track::-webkit-scrollbar {
    display: none;
  }
  .v5-pcard {
    width: 82vw;
    scroll-snap-align: start;
  }
  .v5-pipe__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .v5-twodoors {
    min-height: 0;
  }
  .v5-twodoors a {
    min-height: 56vh;
  }
}
@media (max-width: 767px) {
  .v5-wall {
    inset: -6% -40% 20% -30%;
  }
  .v5-wall__plane {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    transform: rotateX(18deg) rotateZ(-8deg);
  }
  .v5-wall__col {
    gap: 10px;
  }
  .v5-tile {
    border-radius: 8px;
  }
  .v5-svc-hero__shade {
    background: linear-gradient(
      0deg,
      #000 0%,
      rgba(0, 0, 0, 0.9) 42%,
      rgba(0, 0, 0, 0.35) 70%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }
  .v5-svc-hero__copy {
    bottom: 150px;
    right: var(--edge);
  }
  .v5-svc-hero__copy h1 {
    font-size: 64px;
  }
  .v5-chips {
    bottom: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: calc(var(--edge) * -1);
  }
  .v5-chips::-webkit-scrollbar {
    display: none;
  }
  .v5-chip {
    flex: none;
    font-size: 11px;
    padding: 10px 14px;
  }
  .v5-scrollcue {
    display: none;
  }
  .v5-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v5-person__ph span {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
  .v5-person__b b {
    font-size: 21px;
  }
  .v5-st-hero .v5-ci {
    letter-spacing: 0.38em;
    margin-right: -0.38em;
  }
  .v5-st-hero__band {
    aspect-ratio: 4 / 3;
  }
  .hdr__menu .v5-hint {
    display: none;
  }
  .label {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v5-wall__col,
  .v5-scrollcue i,
  .v5-city__time .c {
    animation: none;
  }
  .v5-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .v5-words .w > i {
    transform: none;
  }
  .v5-manifesto .wd {
    opacity: 1;
  }
}

/* =========================================================
   HERO GRADIENT TEXT ANIMATION
   ========================================================= */
.v5-st-hero h1 em.grad {
  display: inline-block;
  animation: v5-fade-up 1.2s var(--ease) 0.2s both;
  /* Force GPU rendering to prevent gradient flicker */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

@keyframes v5-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure the word "Cinematic" animates smoothly with the mask */
.v5-st-hero h1 .v5-words .w {
  transform: translateZ(0);
  backface-visibility: hidden;
}
