/**
 * 성장사례 게시판 모션
 * easing: cubic-bezier(.22, 1, .36, 1)
 */

:root {
  --cs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cs-dur: 1s;
  --cs-rise: 36px;
}

.cs-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.cs-line-inner { display: block; }

html.js-motion .cs-line-inner {
  translate: 0 110%;
  transition: translate var(--cs-dur) var(--cs-ease);
}
html.js-motion .is-reveal .cs-line-inner {
  translate: 0 0;
  transition-delay: calc(0.08s + 0.12s * var(--i, 0));
}

/* list */
html.js-motion .cases-hero .cases-hero-breadcrumb,
html.js-motion .cases-hero .clinic-visit-eyebrow,
html.js-motion .cases-board-list #bo_cate,
html.js-motion .cases-card-item,
html.js-motion .cases-board-view .youtube-board-view__header,
html.js-motion .cases-board-view .youtube-board-view__toolbar,
html.js-motion .cases-view-highlight,
html.js-motion .cases-board-view #bo_v_img,
html.js-motion .cases-board-view #bo_v_con,
html.js-motion .cases-view-cta,
html.js-motion .cases-board-view .youtube-board-view__nav {
  opacity: 0;
  transform: translateY(var(--cs-rise));
  transition: opacity var(--cs-dur) var(--cs-ease), transform var(--cs-dur) var(--cs-ease);
}

html.js-motion .cases-hero.is-reveal .cases-hero-breadcrumb,
html.js-motion .cases-hero.is-reveal .clinic-visit-eyebrow,
html.js-motion .cases-board-list.is-reveal #bo_cate,
html.js-motion .cases-board-list #bo_cate.is-reveal,
html.js-motion .cases-card-item.is-reveal,
html.js-motion .cases-board-list.is-reveal .cases-card-item,
html.js-motion .cases-board-view.is-reveal .youtube-board-view__header,
html.js-motion .cases-board-view.is-reveal .youtube-board-view__toolbar,
html.js-motion .cases-view-highlight.is-reveal,
html.js-motion .cases-board-view #bo_v_atc.is-reveal .cases-view-highlight,
html.js-motion .cases-board-view #bo_v_img.is-reveal,
html.js-motion .cases-board-view #bo_v_atc.is-reveal #bo_v_img,
html.js-motion .cases-board-view #bo_v_con.is-reveal,
html.js-motion .cases-board-view #bo_v_atc.is-reveal #bo_v_con,
html.js-motion .cases-view-cta.is-reveal,
html.js-motion .cases-board-view .youtube-board-view__nav.is-reveal {
  opacity: 1;
  transform: none;
}

html.js-motion .cases-card-item .cases-card__image-inner {
  clip-path: inset(8% 8% 8% 8%);
  transition: clip-path 1.15s var(--cs-ease);
}
html.js-motion .cases-card-item.is-reveal .cases-card__image-inner,
html.js-motion .cases-board-list.is-reveal .cases-card__image-inner {
  clip-path: inset(0);
}
html.js-motion .cases-card-item .cases-card__image img {
  transform: scale(1.05);
  transition: transform 1.25s var(--cs-ease);
}
html.js-motion .cases-card-item.is-reveal .cases-card__image img,
html.js-motion .cases-board-list.is-reveal .cases-card__image img {
  transform: scale(1);
}

/* delays — list hero */
html.js-motion .cases-hero.is-reveal .cases-hero-breadcrumb { transition-delay: 0.05s; }
html.js-motion .cases-hero.is-reveal .clinic-visit-eyebrow { transition-delay: 0.16s; }
html.js-motion .cases-hero.is-reveal .cs-line-inner { transition-delay: calc(0.24s + 0.12s * var(--i, 0)); }

/* delays — list cards */
html.js-motion .cases-board-list.is-reveal #bo_cate,
html.js-motion .cases-board-list #bo_cate.is-reveal { transition-delay: 0.08s; }
html.js-motion .cases-board-list.is-reveal .cases-card-item,
html.js-motion .cases-card-item.is-reveal { transition-delay: calc(0.1s + 0.06s * var(--i, 0)); }

/* delays — view */
html.js-motion .cases-board-view.is-reveal .youtube-board-view__header { transition-delay: 0.08s; }
html.js-motion .cases-board-view.is-reveal .cs-line-inner { transition-delay: calc(0.14s + 0.1s * var(--i, 0)); }
html.js-motion .cases-board-view.is-reveal .youtube-board-view__toolbar { transition-delay: 0.28s; }
html.js-motion .cases-board-view #bo_v_atc.is-reveal .cases-view-highlight,
html.js-motion .cases-view-highlight.is-reveal { transition-delay: 0.1s; }
html.js-motion .cases-board-view #bo_v_atc.is-reveal #bo_v_img,
html.js-motion .cases-board-view #bo_v_img.is-reveal { transition-delay: 0.16s; }
html.js-motion .cases-board-view #bo_v_atc.is-reveal #bo_v_con,
html.js-motion .cases-board-view #bo_v_con.is-reveal { transition-delay: 0.24s; }
html.js-motion .cases-view-cta.is-reveal { transition-delay: 0.12s; }
html.js-motion .cases-board-view .youtube-board-view__nav.is-reveal { transition-delay: 0.1s; }

@media (max-width: 1023px) {
  :root { --cs-rise: 28px; --cs-dur: 0.85s; }
  html.js-motion .cases-board-list.is-reveal .cases-card-item,
  html.js-motion .cases-card-item.is-reveal { transition-delay: 0.06s; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-motion .cs-line-inner,
  html.js-motion [class*="cases-"],
  html.js-motion .cases-board-list #bo_cate,
  html.js-motion .cases-board-view .youtube-board-view__header,
  html.js-motion .cases-board-view .youtube-board-view__toolbar,
  html.js-motion .cases-board-view #bo_v_img,
  html.js-motion .cases-board-view #bo_v_con,
  html.js-motion .cases-board-view .youtube-board-view__nav {
    opacity: 1 !important; transform: none !important; translate: none !important;
    clip-path: none !important; transition: none !important;
  }
}
html.motion-reduced.js-motion .cs-line-inner,
html.motion-reduced.js-motion [class*="cases-"],
html.motion-reduced.js-motion .cases-board-view [class*="youtube-board-view"],
html.motion-reduced.js-motion .cases-board-view #bo_v_img,
html.motion-reduced.js-motion .cases-board-view #bo_v_con {
  opacity: 1 !important; transform: none !important; translate: none !important;
  clip-path: none !important; transition: none !important;
}
