/* Scroll sequence — pinned canvas, scroll-tied frame playback. */

.seq-wrap {
  position: relative;
  height: 100vh;
  background: var(--bg-base);
}

.seq-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-base);
}

/* ---- Background video stack ---- */
.seq-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.seq-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  pointer-events: none;
  background: var(--bg-base);
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- Side masks — fade only under whichever text panel is on screen ---- */
.seq-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity;
}
.seq-mask-left {
  background:
    linear-gradient(to right, var(--bg-base) 0%, var(--bg-base) 30%, rgba(244, 239, 230, 0.55) 50%, transparent 72%),
    linear-gradient(to top, rgba(244, 239, 230, 0.35) 0%, transparent 28%);
}
.seq-mask-right {
  background:
    linear-gradient(to left, var(--bg-base) 0%, var(--bg-base) 30%, rgba(244, 239, 230, 0.55) 50%, transparent 72%),
    linear-gradient(to top, rgba(244, 239, 230, 0.35) 0%, transparent 28%);
}

/* ---- Text panels ---- */
.seq-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 5;
  will-change: opacity;
}
.seq-panel-left {
  left: 0;
  width: 56%;
  padding: 140px max(40px, calc((100vw - 1280px) / 2 + 32px)) 60px;
}
.seq-panel-right {
  right: 0;
  width: 50%;
  padding: 140px 6vw 60px max(40px, 4vw);
}

.seq-text {
  max-width: 560px;
  width: 100%;
}

.seq-h2 {
  font-size: clamp(36px, 4.0vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--ink);
  margin: 16px 0 22px;
}
.seq-h2 .italic {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.seq-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
}

.seq-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seq-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.seq-bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.seq-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  max-width: 320px;
}

.seq-cta {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Progress indicator ---- */
.seq-progress {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.seq-progress-track {
  width: 1px;
  height: 200px;
  background: var(--line);
  position: relative;
}
.seq-progress-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: var(--gold);
}
.seq-progress-stages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.seq-progress-stages .on { color: var(--gold-deep, var(--gold)); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line-cue 2.4s ease-in-out infinite;
}
@keyframes scroll-line-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Hero overrides inside the pinned panel ---- */
.seq-panel-left .hero {
  position: static;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  background: none;
  width: 100%;
  overflow: visible;
}
.seq-panel-left .hero-inner {
  display: block;
  height: auto;
  min-height: 0;
  max-width: none;
  padding: 0;
  margin: 0;
}
.seq-panel-left .hero-text { max-width: 620px; }
.seq-panel-left .scroll-cue { display: none; }
.seq-panel-left .hero-scales-wrap { display: none; }

@media (max-width: 900px) {
  .seq-wrap { height: auto; }
  .seq-pin { position: relative; height: auto; min-height: 100vh; }
  .seq-panel { position: relative; width: 100%; padding: 60px 24px; height: auto; }
  .seq-video, .seq-mask { display: none; }
  .seq-progress, .scroll-cue { display: none; }
}
