/* Concept 01: centred hero. The stack stays pinned and fans out into a horizontal work rail. */

.scene {
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ---------- hero copy ---------- */
.hero-copy {
  position: absolute;
  inset: calc(var(--nav-h) + clamp(12px, 5.3vh, 48px)) 0 auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(16px, 2.6vh, 24px);
  will-change: transform, opacity;
  animation: rise 1.1s var(--ease) backwards;
}

.hero-copy .display {
  font-size: clamp(44px, min(6.1vw, 10.5vh), 88px);
}

.hero-copy .lede {
  font-size: clamp(16px, min(1.67vw, 2.9vh), 24px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- cards: positioned from their centre by concept.js ---------- */
.cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cards .card {
  position: absolute;
  left: 0;
  top: 0;
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  pointer-events: auto;
  will-change: transform, opacity;
  -webkit-user-select: none;
  user-select: none;
}

.glow {
  left: var(--stack-cx);
  top: var(--stack-cy);
  --glow: calc(var(--stack-w) * 0.84);
}

/* ---------- client names either side of the stack ---------- */
.flank {
  position: absolute;
  top: var(--stack-cy);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flank-l {
  right: calc(50% + var(--stack-w) * 0.86);
  align-items: flex-end;
}

.flank-r {
  left: calc(50% + var(--stack-w) * 0.86);
}

.flank li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.42;
  cursor: pointer;
  transition: opacity 0.6s var(--ease);
}

.flank-l li {
  align-items: flex-end;
}

.flank-l .logo {
  -webkit-mask-position: right center;
  mask-position: right center;
}

.flank li.is-active,
.flank li:hover {
  opacity: 1;
}

.flank small {
  font-family: var(--ui);
  font-size: 12px;
  line-height: 16px;
  color: var(--mute);
}

/* ---------- rail chrome ---------- */
.rail-head,
.rail-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
}

.rail-head {
  top: calc(var(--nav-h) + 20px);
}

.rail-foot {
  bottom: 30px;
}

.rail-bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rail-bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

@media (max-width: 860px) {
  .flank {
    display: none;
  }
}

/* ---------- reduced motion: no pinning, a plain swipeable row ---------- */
.scene.is-static {
  height: auto !important;
}

.scene.is-static .stage {
  position: static;
  height: auto;
  overflow: visible;
  padding: calc(var(--nav-h) + 40px) 0 40px;
}

.scene.is-static .hero-copy {
  position: static;
  animation: none;
}

.scene.is-static .cards {
  position: static;
  display: flex;
  gap: 20px;
  margin-top: 56px;
  padding: 0 var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  pointer-events: auto;
}

.scene.is-static .cards .card {
  position: static;
  margin: 0;
  flex: none;
  --card-w: min(300px, 72vw);
  scroll-snap-align: start;
}

.scene.is-static .flank,
.scene.is-static .glow,
.scene.is-static .rail-head,
.scene.is-static .rail-foot {
  display: none;
}
