/* 홈 히어로 오른쪽 롤링 배너(2026-10-27, 앱 아이콘 묶음 자리) — 회사 소개 영상 뒤로 앱 영상이 차례로 넘어간다.
   영상 원본은 1920x720(앱), 1920x1080(회사)이라 8:3 틀에 맞추고 회사 영상은 위아래를 잘라 쓴다. */

/* 제목이 줄바꿈되지 않게 문구 쪽은 줄이지 않고, 남는 폭을 배너가 쓴다 */
.hero__text { flex: none; }
.reel {
  flex: 1 1 0;
  min-width: 0;
  max-width: 680px;
}
.reel__stage {
  position: relative;
  aspect-ratio: 8 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: #F7EEE3;
}
.reel__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.reel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0s;
}
.reel__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.reel__dots { display: flex; gap: 8px; }
.reel__dot {
  position: relative;
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--line);
  cursor: pointer;
  overflow: hidden;
}
/* 누르기 쉽게 실제 클릭 영역은 위아래로 넓힌다 */
.reel__dot::before { content: ""; position: absolute; inset: -10px 0; }
.reel__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.reel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  fill: currentColor;
  cursor: pointer;
}
.reel__toggle:hover { color: var(--fg); border-color: var(--fg); }
.reel__icon-play { display: none; }
.reel.is-paused .reel__icon-play { display: block; }
.reel.is-paused .reel__icon-pause { display: none; }

@media (max-width: 1100px) {
  .reel__stage { border-radius: 14px; }
}
/* 900px 아래에선 히어로가 세로(column-reverse)로 바뀌어 배너가 문구 위로 온다 */
@media (max-width: 900px) {
  .reel { flex: none; width: 100%; max-width: none; }
}
@media (max-width: 480px) {
  .reel__stage { border-radius: 10px; }
  .reel__bar { margin-top: 12px; }
  .reel__dot { width: 20px; }
}
