/* 홈 빌보드(메인 슬라이드). 펼친 한 장과 접힌 띠가 겹겹이 놓이는 아코디언이다.
   - 모든 슬라이드는 글자 없는 16:9 키아트를 쓰고, 키커 배지·제목·후크·버튼은 펼친 장의 왼쪽 아래에 HTML로 보여 준다.
   - 펼친 장(.is-active)이 남은 폭을 차지하고, 나머지는 흐리게 처리한 좁은 띠(--bb-strip)로 접혀 순서대로 옆에 쌓인다.
     넘기면 폭이 서로 바뀌며 자연스럽게 펼쳐진다.
   - 키아트는 항상 펼친 장의 폭으로 그려 두고 슬라이드가 창처럼 가운데를 잘라 보여 주므로, 폭이 바뀌는 동안 그림이 커졌다 작아지지 않는다.
   펼친 장의 폭은 트랙 폭(컨테이너 쿼리 단위 cqw)에서 띠 몫을 뺀 값이고, 장수(--bb-count)는 첫 화면이 흔들리지 않게 HTML에 적어 두고, public/js/index.js setupBillboard가 실제 장수로 다시 맞춘다. */
.nox-billboard {
  --bb-count: 1;
  --bb-strip: 12px;
  --bb-gap: 4px;
  --bb-height: 320px;
  --bb-radius: 12px;
  position: relative;
  margin: 6px 0 22px;
  padding: 0 16px;
}
.nox-billboard-track {
  container-type: inline-size;
  display: flex;
  gap: var(--bb-gap);
  height: var(--bb-height);
  overflow: hidden;
  touch-action: pan-y;
}
@media (hover: hover) and (pointer: fine) { .nox-billboard-track { cursor: grab; } }
.nox-billboard-track.is-dragging { cursor: grabbing; user-select: none; }
.nox-billboard-track.is-dragging .nox-billboard-slide { pointer-events: none; }
.nox-billboard-slide {
  --bb-active: calc(100cqw - (var(--bb-count) - 1) * (var(--bb-strip) + var(--bb-gap)));
  position: relative;
  display: block;
  flex: 0 0 var(--bb-strip);
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--bb-radius);
  background: #0b0b0d;
  color: #fff;
  text-decoration: none;
  transition: flex-basis .5s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.nox-billboard-slide.is-active { flex-basis: var(--bb-active); }
.nox-billboard-picture {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: block;
  width: var(--bb-active);
  transform: translateX(-50%);
}
.nox-billboard-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(2.5px) brightness(.62);
  transition: filter .5s ease;
}
.nox-billboard-slide.is-active .nox-billboard-art { filter: none; }
/* 문구가 놓이는 아래쪽(모바일)·왼쪽(데스크탑)을 어둡게 눌러 글자 대비를 지킨다. */
.nox-billboard-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000000d9 0%, #00000080 38%, #0000 66%); }
.nox-billboard-copy,
.nox-billboard-count { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.nox-billboard-slide.is-active .nox-billboard-copy,
.nox-billboard-slide.is-active .nox-billboard-count { opacity: 1; visibility: visible; transition: opacity .35s ease .25s, visibility 0s linear 0s; }
.nox-billboard-copy { position: absolute; z-index: 1; left: 16px; bottom: 16px; width: calc(var(--bb-active) - 32px); max-width: 340px; display: grid; justify-items: start; }
.nox-billboard-text { display: grid; justify-items: start; }
.nox-billboard-kicker { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 4px; background: #ff4432; color: #fff; font: 600 10px/1 var(--c-sans, 'Pretendard Variable', Pretendard, sans-serif); letter-spacing: .02em; }
.nox-billboard-title { margin-top: 8px; color: #fff; font: 600 20px/1.25 var(--c-sans, 'Pretendard Variable', Pretendard, sans-serif); letter-spacing: -.015em; text-shadow: 0 1px 12px #0009; }
.nox-billboard-hook { margin-top: 6px; color: #d4d4d4; font: 500 12px/1.5 var(--c-sans, 'Pretendard Variable', Pretendard, sans-serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nox-billboard-cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 4px; background: #27272a; color: #fff; font: 500 12px/1 var(--c-sans, 'Pretendard Variable', Pretendard, sans-serif); }
.nox-billboard-slide.is-active:hover .nox-billboard-cta { background: #3a3a3f; }
.nox-billboard-slide:not(.is-active):hover .nox-billboard-art { filter: blur(2.5px) brightness(.8); }
/* 몇 번째 장인지 알려 주는 카운터(1 / 5). 슬라이드마다 들어 있어 넘길 때 따로 갱신할 필요가 없다. */
.nox-billboard-count { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 2px; height: 16px; padding: 0 5px; border-radius: 999px; background: #00000080; color: #ffffffb3; font: 600 10px/1 var(--c-sans, 'Pretendard Variable', Pretendard, sans-serif); font-variant-numeric: tabular-nums; }
.nox-billboard-count b { color: #fff; font-weight: 700; }
.nox-billboard-nav:focus-visible, .nox-billboard-slide:focus-visible { outline: 2px solid #ff5268; outline-offset: -2px; }
.nox-billboard-nav { display: none; }

@media (min-width: 768px) {
  .nox-billboard { --bb-strip: 44px; --bb-gap: 6px; --bb-height: 290px; padding: 0 var(--catalog-gutter, 24px); }
  .nox-billboard-picture::after { background: linear-gradient(90deg, #000000c7 0%, #00000080 34%, #0000 62%), linear-gradient(0deg, #00000066, #0000 45%); }
  .nox-billboard-copy { left: 20px; bottom: 20px; width: calc(var(--bb-active) - 40px); }
  .nox-billboard-title { margin-top: 10px; font-size: 24px; }
  .nox-billboard-hook { margin-top: 8px; }
  .nox-billboard-cta { margin-top: 16px; }
  .nox-billboard-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border: 1px solid #ffffff29;
    border-radius: 50%;
    background: #0a0a0cb3;
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
  }
  /* 화살표는 빌보드 양쪽 끝에 반쯤 걸쳐 왼쪽 아래 문구를 가리지 않는다. */
  .nox-billboard-nav.prev { left: calc(var(--catalog-gutter, 24px) - 16px); }
  .nox-billboard-nav.next { right: calc(var(--catalog-gutter, 24px) - 16px); }
  .nox-billboard-nav:hover { background: #1c1c20; }
}
@media (min-width: 1180px) {
  .nox-billboard { --bb-strip: 70px; --bb-gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .nox-billboard-slide, .nox-billboard-art, .nox-billboard-copy, .nox-billboard-count { transition: none; }
  .nox-billboard-slide.is-active .nox-billboard-copy, .nox-billboard-slide.is-active .nox-billboard-count { transition: none; }
}
