/* The blue stage belongs to the product story, including the static fallback. */
.sw-public .sw-cinema-hero { padding-top: clamp(48px,7vw,104px); padding-bottom: 72px; }
.sw-cinema-hero :is(.sw-home-layout,.sw-service-layout) { display: block; }
.sw-cinema-hero .sw-home-intro,
.sw-cinema-hero .sw-service-layout > div:first-child { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0 72px; align-items: start; margin-bottom: 56px; }
.sw-cinema-hero .sw-home-intro h1,
.sw-cinema-hero .sw-service-layout > div:first-child > h1 { grid-column: 1; grid-row: 1 / span 3; max-width: 15ch; font-size: clamp(48px,5.2vw,76px); line-height: 1.05; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.sw-cinema-hero .sw-home-intro > :not(h1),
.sw-cinema-hero .sw-service-layout > div:first-child > :not(h1) { grid-column: 2; }
.sw-cinema-hero .sw-lead { font-size: 20px; line-height: 1.6; }
.sw-cinema-hero :is(.sw-home-notes,.sw-service-notes) { max-width: 780px; margin: 32px auto 0; }
.sw-cinema-track { position: relative; width: calc(100vw - 48px); margin-left: calc((100% - 100vw)/2 + 24px); margin-block: 0 40px; }
.sw-cinema-pin { position: relative; isolation: isolate; overflow: clip; background: #0066cc; border-radius: 24px; padding: 112px 56px 92px; }
.sw-cinema-caption { position: absolute; inset: 30px 36px auto; display: flex; gap: 24px; color: #fff; font-family: 'SW Manrope',var(--sw-font); font-size: clamp(18px,2.2vw,30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; }
.sw-cinema-caption span { opacity: .9; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.sw-cinema-caption span:first-child { opacity: 1; }
.sw-cinema-world { display: grid; place-items: center; position: relative; perspective: 1600px; }
.sw-cinema-world > [data-motion-stage] { position: relative; z-index: 1; width: min(660px,100%); margin: 0; padding: 28px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 32px 64px rgba(29,29,31,.22); transform-origin: 50% 50%; }
.sw-cinema-world > .sw-transcript { padding-top: 28px; }
.sw-cinema-world > .sw-distribution { padding: 28px; }
.sw-cinema-world > .sw-site-map { padding: 28px; }
.sw-cinema-deck { position: absolute; inset: 0; margin: auto; width: min(660px,100%); height: 90%; border-radius: 16px; background: #fff; opacity: .16; transform: translate(-48px,18px) rotate(-8deg); pointer-events: none; }
.sw-cinema-deck::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: translate(88px,-28px) rotate(14deg); }
.sw-cinema-world .sw-demo__verdict { padding: 22px; background: #eaf4ff; border-radius: 12px; }
.sw-cinema-piece { position: relative; transform-origin: 50% 50%; }
.sw-cinema-piece.is-paper { background: #fff; border-radius: 12px; box-shadow: 0 16px 28px rgba(29,29,31,.13); }
.sw-cinema-world .sw-site-map__canvas { overflow: visible; }
.sw-cinema-world .sw-table { background: #fff; }
.sw-cinema-hint { visibility: hidden; }
.sw-cinema-track.is-animated .sw-cinema-hint { visibility: visible; }
.sw-cinema-controls { position: absolute; inset: auto 36px 28px; display: flex; gap: 28px; align-items: center; justify-content: space-between; color: #fff; font-size: 14px; line-height: 1.5; }
.sw-cinema-controls a { display: inline-flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; white-space: nowrap; }
.sw-cinema-controls a:hover { text-decoration: underline; }
.sw-cinema-controls a:focus-visible { outline-color: #fff; }
.sw-cinema-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sw-cinema-progress { flex: 1; height: 1px; background: rgba(255,255,255,.35); max-width: 300px; }
.sw-cinema-progress > span { display: block; height: 2px; background: #fff; transform: scaleX(1); transform-origin: left; }
.sw-cinema-track.is-pinned .sw-cinema-pin { position: sticky; top: 88px; height: calc(100svh - 112px); display: grid; place-items: center; overflow: clip; }
.sw-cinema-track.is-pinned .sw-cinema-world { width: 100%; }
#cinema-end { scroll-margin-top: 100px; }
::view-transition { background: #0066cc; }
::view-transition-old(root) { animation: sw-cinema-out 550ms cubic-bezier(.77,0,.175,1) both; }
::view-transition-new(root) { animation: sw-cinema-in 650ms cubic-bezier(.77,0,.175,1) both; }
@keyframes sw-cinema-out { to { opacity: 0; transform: translateX(-6%) scale(.96); } }
@keyframes sw-cinema-in { from { clip-path: inset(0 100% 0 0); transform: translateX(6%); } to { clip-path: inset(0); transform: translateX(0); } }
@media (max-width: 1050px) {
  .sw-cinema-hero .sw-home-intro,.sw-cinema-hero .sw-service-layout > div:first-child { gap: 0 36px; }
  .sw-cinema-hero .sw-home-intro h1,.sw-cinema-hero .sw-service-layout > div:first-child > h1 { font-size: clamp(42px,5vw,60px); }
}
@media (max-width: 760px) {
  .sw-public .sw-cinema-hero { padding-top: 36px; }
  .sw-cinema-hero .sw-home-intro,.sw-cinema-hero .sw-service-layout > div:first-child { display: block; margin-bottom: 36px; }
  .sw-cinema-hero .sw-home-intro h1,.sw-cinema-hero .sw-service-layout > div:first-child > h1 { font-size: 42px; max-width: 17ch; margin-bottom: 24px; text-wrap: initial; }
  .sw-cinema-hero .sw-lead { font-size: 18px; }
  .sw-cinema-track { width: calc(100vw - 16px); margin-left: calc((100% - 100vw)/2 + 8px); }
  .sw-cinema-pin { padding: 100px 20px 92px; border-radius: 16px; }
  .sw-cinema-caption { inset: 22px 20px auto; flex-wrap: wrap; gap: 4px 14px; font-size: 17px; }
  .sw-cinema-world > [data-motion-stage] { padding: 18px; }
  .sw-cinema-world .sw-demo__quote { padding: 14px; }
  .sw-cinema-world .sw-demo__quote p { font-size: 20px; }
  .sw-cinema-world .sw-demo__verdict { padding: 16px; font-size: 15px; }
  .sw-cinema-deck { width: 85%; transform: translate(-8px,4px) rotate(-4deg); }
  .sw-cinema-deck::before { transform: translate(14px,-8px) rotate(7deg); }
  .sw-cinema-controls { inset: auto 20px 22px; gap: 12px; flex-wrap: wrap; font-size: 13px; }
  .sw-cinema-hint { flex-basis: 100%; }
  .sw-cinema-progress { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root) { animation: sw-cinema-fade-out 100ms ease both; }
  ::view-transition-new(root) { animation: sw-cinema-fade-in 100ms ease both; }
  .sw-cinema-track.is-animated .sw-cinema-hint { visibility: hidden; }
}
@keyframes sw-cinema-fade-out { to { opacity: 0; } }
@keyframes sw-cinema-fade-in { from { opacity: 0; } }
