/* HAN's six-scene rhythm, using images and words already present in PUM. */
.pum-closing {
  --pum-closing-top: 86px;
  position: relative;
  height: auto;
  min-height: 0;
  padding-top: var(--pum-closing-top);
  overflow: hidden;
  background: #111;
  color: #f5f5f5;
  scroll-margin-top: 70px;
}
.pum-closing::after { content: ''; display: block; width: 100%; aspect-ratio: 16 / 9; }
.pum-closing-frame, .pum-closing-shade { position: absolute; inset: var(--pum-closing-top) 0 0; }
.pum-closing-frame { background-position: center; background-size: cover; animation-duration: 28.075s; animation-timing-function: linear; animation-iteration-count: infinite; animation-play-state: paused; }
.pum-closing-frame-one { background-image: url('assets/seowon-new-hero-01.webp'); --auto-motion-name: pum-han-scene-one; animation-name: var(--auto-motion-name); }
.pum-closing-frame-two { background-image: url('assets/seowon-new-hero-02.webp'); --auto-motion-name: pum-han-scene-two; animation-name: var(--auto-motion-name); }
.pum-closing-frame-three { background-image: url('assets/seowon-new-hero-03.webp'); --auto-motion-name: pum-han-scene-three; animation-name: var(--auto-motion-name); }
.pum-closing-frame-four { background-image: url('assets/seowon-new-hero-04.webp'); --auto-motion-name: pum-han-scene-four; animation-name: var(--auto-motion-name); }
.pum-closing-frame-five { background-image: url('assets/seowon-new-philosophy-preview-01.jpg'); --auto-motion-name: pum-han-scene-five; animation-name: var(--auto-motion-name); }
.pum-closing-frame-six { background-image: url('assets/seowon-new-home-feature.webp'); --auto-motion-name: pum-han-scene-six; animation-name: var(--auto-motion-name); }
.pum-closing-shade { background: linear-gradient(180deg,rgba(10,10,9,.78) 0%,rgba(10,10,9,.66) 26%,rgba(10,10,9,.46) 58%,rgba(10,10,9,.18) 86%,transparent 100%),linear-gradient(0deg,rgba(0,0,0,.25),transparent 22%); }
.pum-closing-title { position: absolute; z-index: 2; top: calc(var(--pum-closing-top) + 20.5vw); left: 50%; width: max-content; max-width: calc(100% - 56px); transform: translate(-50%,-50%); text-align: center; color: #f5f5f5; pointer-events: none; animation-duration: 28.075s; animation-timing-function: linear; animation-iteration-count: infinite; animation-play-state: paused; }
.pum-closing-title small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.7; }
.pum-closing-title strong { display: block; margin: 15px 0; font-size: clamp(42px,7vw,110px); font-weight: 700; line-height: 1.1; letter-spacing: -.055em; word-break: keep-all; }
.pum-closing-title-one { --auto-motion-name: pum-han-title-one; animation-name: var(--auto-motion-name); }
.pum-closing-title-two { --auto-motion-name: pum-han-title-two; animation-name: var(--auto-motion-name); }
.pum-closing-title-three { --auto-motion-name: pum-han-title-three; animation-name: var(--auto-motion-name); }
.pum-closing-title-four { --auto-motion-name: pum-han-title-four; animation-name: var(--auto-motion-name); }
.pum-closing-title-five { --auto-motion-name: pum-han-title-five; animation-name: var(--auto-motion-name); }
.pum-closing-title-six { --auto-motion-name: pum-han-title-six; animation-name: var(--auto-motion-name); }
.pum-closing-title-three strong, .pum-closing-title-four strong, .pum-closing-title-five strong { animation-duration: 28.075s; animation-timing-function: ease-out; animation-iteration-count: infinite; animation-play-state: paused; }
.pum-closing-title-three strong { --auto-motion-name: pum-han-reveal-three; animation-name: var(--auto-motion-name); }
.pum-closing-title-four strong { --auto-motion-name: pum-han-reveal-four; animation-name: var(--auto-motion-name); }
.pum-closing-title-five strong { --auto-motion-name: pum-han-reveal-five; animation-name: var(--auto-motion-name); }
.pum-closing.is-playing .pum-closing-frame,
.pum-closing.is-playing .pum-closing-title,
.pum-closing.is-playing .pum-closing-title strong { animation-play-state: running; }
@keyframes pum-han-scene-one { 0%,16% { opacity: 1; transform: scale(1.04); } 18%,98% { opacity: 0; transform: scale(1); } 100% { opacity: 1; transform: scale(1.04); } }
@keyframes pum-han-scene-two { 0%,16% { opacity: 0; } 18%,35% { opacity: 1; } 38%,100% { opacity: 0; } }
@keyframes pum-han-scene-three { 0%,35% { opacity: 0; } 38%,52% { opacity: 1; } 54%,100% { opacity: 0; } }
@keyframes pum-han-scene-four { 0%,52% { opacity: 0; } 54%,65% { opacity: 1; } 68%,100% { opacity: 0; } }
@keyframes pum-han-scene-five { 0%,65% { opacity: 0; } 68%,84% { opacity: 1; } 86%,100% { opacity: 0; } }
@keyframes pum-han-scene-six { 0%,84% { opacity: 0; } 86%,98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pum-han-title-one { 0%,16% { opacity: 1; } 17%,99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pum-han-title-two { 0%,17% { opacity: 0; } 18%,35% { opacity: 1; } 36.5%,100% { opacity: 0; } }
@keyframes pum-han-title-three { 0%,36.5% { opacity: 0; } 38%,52% { opacity: 1; } 53%,100% { opacity: 0; } }
@keyframes pum-han-title-four { 0%,53% { opacity: 0; } 54%,65% { opacity: 1; } 66.5%,100% { opacity: 0; } }
@keyframes pum-han-title-five { 0%,66.5% { opacity: 0; } 68%,84% { opacity: 1; } 85%,100% { opacity: 0; } }
@keyframes pum-han-title-six { 0%,85% { opacity: 0; } 86%,98% { opacity: 1; } 99%,100% { opacity: 0; } }
@keyframes pum-han-reveal-three { 0%,36.5% { clip-path: inset(0 100% 0 0); } 38%,100% { clip-path: inset(0 0 0 0); } }
@keyframes pum-han-reveal-four { 0%,53% { clip-path: inset(0 100% 0 0); } 54%,100% { clip-path: inset(0 0 0 0); } }
@keyframes pum-han-reveal-five { 0%,66.5% { clip-path: inset(0 100% 0 0); } 68%,100% { clip-path: inset(0 0 0 0); } }
@media (max-width: 700px) {
  .pum-closing { --pum-closing-top: 0px; }
  .pum-closing-title { top: 28.125vw; }
  .pum-closing-title small { font-size: 8px; }
  .pum-closing-title strong { margin: 8px 0; font-size: clamp(22px,6.4vw,44px); line-height: 1.15; }
}
@media (prefers-reduced-motion: reduce) {
  /* This gallery remains automatic at the explicit request of the owner. */
  .pum-closing .pum-closing-frame,
  .pum-closing .pum-closing-title,
  .pum-closing .pum-closing-title-three strong,
  .pum-closing .pum-closing-title-four strong,
  .pum-closing .pum-closing-title-five strong {
    animation: var(--auto-motion-name) 28.075s linear infinite paused !important;
  }
  .pum-closing .pum-closing-title-three strong,
  .pum-closing .pum-closing-title-four strong,
  .pum-closing .pum-closing-title-five strong { animation-timing-function: ease-out !important; }
  .pum-closing.is-playing .pum-closing-frame,
  .pum-closing.is-playing .pum-closing-title,
  .pum-closing.is-playing .pum-closing-title-three strong,
  .pum-closing.is-playing .pum-closing-title-four strong,
  .pum-closing.is-playing .pum-closing-title-five strong { animation-play-state: running !important; }
}
