.shift {
  background: var(--kite-paper);
}

.shift__track {
  position: relative;
  /* height set in JS from rail width */
}

.shift__sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  overflow: hidden;
  padding: 4.5rem 0 2rem;
}

.shift__label {
  padding-inline: var(--kite-gutter);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(12, 12, 12, 0.4);
}

.shift__viewport {
  overflow: hidden;
  width: 100%;
}

.shift__rail {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  padding-inline: var(--kite-gutter);
  will-change: transform;
}

.shift__panel {
  position: relative;
  flex: 0 0 auto;
  width: min(72vw, 38rem);
  height: min(58vh, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.5rem;
  overflow: hidden;
  color: var(--kite-ink);
  background: #e8ecf8;
}

.shift__panel--ink {
  background: var(--kite-ink);
  color: #f7f7f5;
}

.shift__panel--blue {
  background: var(--kite-blue);
  color: #fff;
}

.shift__panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.shift__panel--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 247, 245, 0.05) 0%,
    rgba(247, 247, 245, 0.55) 45%,
    rgba(247, 247, 245, 0.92) 100%
  );
  pointer-events: none;
}

.shift__panel-num,
.shift__panel-title,
.shift__panel-text,
.shift__panel-cta {
  position: relative;
  z-index: 1;
}

.shift__panel-num {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.45;
}

.shift__panel-title {
  max-width: 12ch;
  margin-bottom: 0.55rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.shift__panel-text {
  max-width: 22rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.65;
}

.shift__panel--ink .shift__panel-text,
.shift__panel--blue .shift__panel-text {
  opacity: 0.72;
}

.shift__panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: var(--nav-chip-h, 2.4rem);
  margin-top: 1.15rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--kite-ink);
  text-decoration: none;
}

.shift__progress {
  display: flex;
  gap: 0.4rem;
  padding-inline: var(--kite-gutter);
}

.shift__dot {
  width: 1.65rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.12);
  transition: background 0.3s ease, width 0.3s ease;
}

.shift__dot.is-on {
  width: 2.4rem;
  background: var(--kite-blue);
}

@media (max-width: 720px) {
  .shift__panel {
    width: min(85vw, 22rem);
    height: min(52vh, 24rem);
  }
}
