/* Editorial chapter openings; no track transforms or scroll interception. */
.cinematic-preview .cinematic-heading-band {
  position: relative;
  isolation: isolate;
  --cinematic-band-ink: #10242b;
  --cinematic-band-gold: #e8d7af;
  --cinematic-band-cyan: #a6ddd4;
}

.cinematic-preview .cinematic-band-surface {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: transparent;
  border-bottom: 1px solid rgb(23 50 56 / 30%);
}

.cinematic-preview [data-cinematic-band="work"] { min-height: 148px; }
.cinematic-preview [data-cinematic-band="career"] {
  min-height: 120px;
  padding-bottom: 8px;
}

.cinematic-preview .cinematic-band-surface::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 4px;
  background: linear-gradient(90deg, #315f59, #aa884c 76%, #f3eedf);
}

.cinematic-preview .cinematic-band-surface::after {
  content: attr(data-sequence);
  position: absolute;
  right: 0;
  top: -8px;
  font: 600 clamp(120px, 16vw, 240px) / 0.75 var(--font-display, "Cormorant Garamond", serif);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgb(16 36 43 / 0.2);
}

.cinematic-preview .cinematic-heading-band :is(#build-title, #timeline-title) {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--cinematic-band-ink);
  -webkit-text-stroke: 0.25px currentColor;
}

.cinematic-preview .cinematic-heading-band #build-title {
  font-size: clamp(64px, 9vw, 128px);
}

.cinematic-preview .cinematic-band-plate {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  display: block;
  opacity: 0;
  transform: translateX(-135%) skewX(-18deg);
  transform-origin: bottom left;
  background: linear-gradient(90deg, #8bcfc5 0%, #fdf0cb 58%, #fefbf0 86%, #c69442 88%, #d3ad64 92%, #81c6bb 100%);
  box-shadow: 10px 0 0 rgb(16 36 43 / 0.12), -1px 0 0 rgb(255 255 255 / 0.65);
}

.cinematic-preview .cinematic-band-seam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 3px;
  display: block;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #17433f, #996518 45%, #fff8dc 63%, #1b7169);
}

.cinematic-preview [data-cinematic-transition-state="entering"] .cinematic-band-plate {
  animation: cinematic-plate-entry 600ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
  will-change: transform, opacity;
}

.cinematic-preview [data-cinematic-transition-state="entering"] .cinematic-band-seam {
  animation: cinematic-seam-entry 600ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
  will-change: transform, opacity;
}

@keyframes cinematic-plate-entry {
  0% { opacity: 0; transform: translateX(-135%) skewX(-18deg); }
  10% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translateX(310%) skewX(-18deg); }
}

@keyframes cinematic-seam-entry {
  0% { opacity: 0; transform: scaleX(0); }
  12% { opacity: 1; }
  74% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@media (max-width: 480px) {
  .cinematic-preview [data-cinematic-band="work"] { min-height: 104px; }
  .cinematic-preview [data-cinematic-band="career"] { min-height: 76px; }
  .cinematic-preview .cinematic-band-surface::after { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-preview .cinematic-band-plate,
  .cinematic-preview .cinematic-band-seam {
    animation: none !important;
    opacity: 0 !important;
    will-change: auto !important;
  }
}

@media print {
  .cinematic-preview .cinematic-band-surface { display: none; }
  .cinematic-preview .cinematic-heading-band :is(#build-title, #timeline-title) { color: #111; -webkit-text-stroke: 0; text-shadow: none; }
}
