/* main-03 — BBF 메인 페이지 (Figma 265:1745) */
.page-main { background: #fff; color: var(--text, #111); overflow-x: clip; }
body.page-main.is-menu-open { overflow-x: clip; overflow-y: visible; }
.page-main .footer-top { display: none; }
html.main-wheel-smooth { scroll-behavior: auto; }
.mv-page { --main-inner-max: 1700px; --main-inner-gutter: clamp(15px, 3.125vw, 60px); display: block; }

body.page-main .item-head,
body.page-main .item-stage,
body.page-main .store-sec {
  width: calc(100% - var(--main-inner-gutter) - var(--main-inner-gutter));
  max-width: var(--main-inner-max);
  margin-inline: auto;
}


/* ── 공통 ── */
.gauge .gauge__txt { color: transparent; background-image: linear-gradient(90deg, var(--gauge-fill-color, #fff) var(--fill, 0%), var(--gauge-base-color, rgba(255, 255, 255, 0.4)) var(--fill, 0%)); -webkit-background-clip: text; background-clip: text; }
.gauge--dark .gauge__txt { --gauge-fill-color: #111; --gauge-base-color: rgba(17, 17, 17, 0.2); }

/* ── 커버 스택: 전 섹션 sticky, 문서 높이 = 디자인 1:1 ── */
.cover-stack { --fold: max(100vh, 660px); position: relative; }
.scroll-timeline-anchor { display: block; width: 0; height: 0; margin: 0; padding: 0; pointer-events: none; }
.fold-h { height: var(--fold); }
.hero, .story, .temp { position: sticky; top: 0; overflow: hidden; }
.hero { z-index: 1; }
.story--02 { z-index: 2; }
.story--03 { z-index: 3; }
.temp { z-index: 4; }
.temp-spacer { height: calc(var(--fold) * 2); }
.story-spacer { height: var(--fold); }

/* ── 히어로 ── */
.hero { background: #000; }
.hero__bg { position: absolute; inset: 0; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hero__photo.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.hero__shade { position: absolute; display: block; pointer-events: none; }
.hero__shade--bottom { left: 0; right: 0; bottom: 0; height: calc(var(--fold) * 0.25); background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%); }
.hero__shade--right { top: 0; bottom: 0; left: 0; width: min(40vw, 768px); background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 100%) 100%);}
.hero__cont { position: absolute; left: max(var(--main-inner-gutter), calc((100% - var(--main-inner-max)) / 2)); top: calc(var(--fold) * 0.3167); width: 45%; }
.hero__badge { display: block; width: clamp(110px, min(8.33vw, 159.936px), 160px); height: auto; margin-bottom: 12px; mix-blend-mode: screen; object-fit: contain; }
.hero__slides { position: relative; min-height: calc(var(--fold) * 0.42); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.hero__title { margin: 0 0 calc(var(--fold) * 0.05); font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 600; font-size: clamp(34px, min(3.75vw, 72px), 72px); line-height: 1.3; color: #fff; text-transform: capitalize; }
.hero__sub { margin: 0; font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 500; font-size: clamp(14px, min(1.05vw, 20.16px), 20px); line-height: 1.3; color: rgba(255, 255, 255, 0.6); }
.hero__bar { font-style: normal; font-weight: 200; }
.reveal-line { display: block; overflow: hidden; }
.reveal-txt { display: inline-block; transform: translateY(110%); opacity: 0; }
.hero__slide.is-active .reveal-txt { animation: mvRise 0.9s cubic-bezier(0.22, 0.61, 0.2, 1) forwards; }
.hero__slide.is-active .reveal-line:nth-child(2) .reveal-txt { animation-delay: 0.12s; }
.hero__slide.is-active .hero__sub .reveal-txt { animation-delay: 0.28s; }
@keyframes mvRise { to { transform: translateY(0); opacity: 1; } }
.hero__pager { display: flex; align-items: center; gap: 0; margin-top: calc(var(--fold) * 0.03); }
.hero__dot { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s; }
.hero__dot.is-active::before { width: 17px; height: 17px; background: transparent; border: 3px solid #fff; box-sizing: border-box; }
.hero__scroll { position: absolute; left: 50%; bottom: calc(var(--fold) * 0.022); transform: translateX(-50%); text-align: center; }
.hero__scroll-label { display: block; margin-bottom: 12px; font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-size: 16px; line-height: 1.3; color: rgba(255, 255, 255, 0.6); text-transform: capitalize; }
.hero__scroll-bar { position: relative; display: block; width: 12px; height: 46px; margin: 0 auto; border-radius: 100px; background: rgba(255, 255, 255, 0.2); }
.hero__scroll-dot { position: absolute; left: 2px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: mvScrollDot 1.8s ease-in-out infinite; }
@keyframes mvScrollDot { 0%, 100% { transform: translateY(0); } 55% { transform: translateY(26px); } }

/* ── 스토리 (story02 / story03) ── */
.story { background: #000; }
.story__bg { position: absolute; inset: 0; }
.story__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }
.story__txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - var(--main-inner-gutter) - var(--main-inner-gutter)); max-width: var(--main-inner-max); text-align: center; }
.story__label { margin: 0 0 40px; font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 600; font-size: clamp(15px, min(1.05vw, 20.16px), 20px); line-height: 1.4; }
.story__line { margin: 0; font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 700; font-size: clamp(24px, min(2.7vw, 51.84px), 52px); line-height: 1.4; max-width: 80%; margin: auto;}

/* ── temp (Best Ideas / Action / Food) ── */
.temp { --temp-word-offset: min(24vw, 460px); background: #ffffff; }
.temp__scene { position: absolute; inset: 0; opacity: var(--scene-o, 0); visibility: hidden; }
.temp__scene.is-live { visibility: visible; }
.temp__heading { position: absolute; left: 50%; top: calc(var(--fold) * 0.202); transform: translate(-50%, var(--scene-y, 0px)); margin: 0; width: max-content; max-width: min(90vw, 1520px); font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 600; font-size: clamp(22px, min(2.3vw, 44.16px), 44px); line-height: 1.4; text-align: center; text-transform: capitalize; }
.temp__word { position: absolute; top: calc(var(--fold) * 0.52); font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 600; font-size: clamp(44px, min(5.2vw, 99.84px), 100px); line-height: 1.4; color: #111; text-transform: capitalize; }
.temp__word--left { left: calc(50% - var(--temp-word-offset)); transform: translate(-50%, var(--best-y, 0px)); opacity: var(--best-o, 0); visibility: hidden; z-index: 5; }
.temp__word--left.is-live { visibility: visible; }
.temp__word--right { left: calc(50% + var(--temp-word-offset)); transform: translate(-50%, calc(var(--scene-wy, 0px) + var(--enter-wy, 0px))); opacity: var(--enter-wo, 1); }
.temp__visual { position: absolute; left: 50%; top: calc(var(--fold) * 0.372); width: clamp(220px, min(18.75vw, 360px), 360px); aspect-ratio: 360 / 460; margin: 0; transform: translate(-50%, 0); opacity: var(--enter-imgo, 1); }
.temp__capsule { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }

/* ── Item (베스트 아이템 슬라이더) ── */
.item-sec { position: relative; z-index: 5; display: flex; flex-direction: column; justify-content: center; min-height: min(61.198vw, 1175.0016px); padding: 3vh 0 22vh; background: #fff; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0; margin-bottom: 2rem; }
.item-title { margin: 0; font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 700; font-size: clamp(26px, min(2.6vw, 49.92px), 50px); line-height: 1.3; color: #111; text-transform: capitalize; }
.item-stage { position: relative; height: clamp(360px, min(30.3vw, 581.76px), 654px); margin-top: clamp(20px, min(2.3vw, 44.16px), 44px); }
.hero.is-draggable,
.item-stage.is-draggable { cursor: grab; touch-action: pan-y; user-select: none; }
.hero.is-dragging,
.item-stage.is-dragging { cursor: grabbing; }
.hero.is-draggable img,
.item-stage.is-draggable img { -webkit-user-drag: none; }
.orbit { position: absolute; left: 50%; top: 50%; width: min(680px, 60vmin); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.orbit * { pointer-events: none; }
.orbit__rings { display: block; width: 100%; height: 100%; }
.orbit__spin { position: absolute; inset: 0; }
.orbit__spin--1 { animation: orbitSpin 60s linear infinite; }
.orbit__spin--2 { animation: orbitSpin 38s linear infinite; }
.orbit__spin--3 { animation: orbitSpinOffset 38s linear infinite; }
.orbit-dot { position: absolute; left: 50%; border-radius: 50%; background: #fff; border: 3px solid #D8B2B2; box-sizing: border-box; }
.orbit-dot--lg { width: 16px; height: 16px; top: calc(50% - 37.85%); transform: translate(-50%, -50%); }
.orbit-dot--md { width: 10px; height: 10px; border-width: 2px; top: calc(50% - 42.14%); transform: translate(-50%, -50%); }
.orbit-dot--sm { width: 8px; height: 8px; border-width: 1px; top: calc(50% - 42.14%); transform: translate(-50%, -50%); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinOffset { from { transform: rotate(180deg); } to { transform: rotate(540deg); } }
.item-track { position: absolute; inset: 0; visibility: hidden; }
.item-track.is-ready { visibility: visible; }
.item-track:not(.is-ready) .item-card { transition: none; }
.item-card { position: absolute; left: 50%; top: 50%; width: min(15.625vw, 300px); height: min(18.229vw, 349.9968px); margin: 0; transform: translate(-50%, -50%) scale(1.2); opacity: 0; transition: left 0.65s cubic-bezier(0.33, 0.8, 0.3, 1), transform 0.65s cubic-bezier(0.33, 0.8, 0.3, 1), opacity 0.5s ease; pointer-events: none; }
.item-card img { width: 100%; height: 100%; object-fit: contain; }
.item-card--center { left: 50%; transform: translate(-50%, -50%) scale(2); opacity: 1; z-index: 5; }
.item-card--left { left: 26.563%; opacity: 0.5; z-index: 3; }
.item-card--right { left: 73.438%; opacity: 0.5; z-index: 3; }
.item-card--far-left { left: 10.417%; opacity: 0.5; z-index: 2; }
.item-card--far-right { left: 89.583%; opacity: 0.5; z-index: 2; }
.item-card--out-left { left: max(-9vw, -172.8px); opacity: 0; z-index: 1; }
.item-card--out-right { left: min(109vw, 2092.8px); opacity: 0; z-index: 1; }
.item-card--snap { transition: none !important; }
.item-arrow { position: absolute; top: 50%; z-index: 6; display: inline-flex; align-items: center; justify-content: center; width: clamp(56px, min(4.16vw, 79.872px), 80px); aspect-ratio: 1; padding: 0; border: 0; background: transparent; transform: translateY(-50%); cursor: pointer; }
.item-arrow img { display: block; width: 100%; height: 100%; object-fit: contain; }
.item-arrow--prev { left: 0; }
.item-arrow--prev img { transform: rotate(180deg); }
.item-arrow--next { right: 0; }
.item-name { margin: clamp(16px, min(1.7vw, 32.64px), 32px) 0 0; font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 700; font-size: clamp(18px, min(1.46vw, 28.032px), 28px); line-height: 1.3; color: #111; text-align: center; text-transform: capitalize; z-index: 1;}
.item-pager { display: flex; align-items: center; justify-content: center; width: 100%; max-width: var(--item-pager-max, 100%); gap: 0; margin: clamp(10px, min(1.2vw, 23.04px), 22px) auto 0; padding-inline: 15px; z-index: 1;}
.item-pager__dot { display: inline-flex; flex: 1 1 44px; align-items: center; justify-content: center; min-width: 0; max-width: 30px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.item-pager__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #D9D9D9; transition: background 0.3s, transform 0.3s; }
.item-pager__dot.is-active::before { width: 12px; height: 12px; background: transparent; border: 2px solid #E23333; }

/* ── Store ── */
.store-sec { position: relative; z-index: 5; margin-block: 0 min(5.729vw, 109.9968px); }
.store-card { position: relative; height: min(44.792vw, 860.0064px); min-height: 420px; border-radius: 20px; overflow: hidden; background: #111; }
.store-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.store-card__dim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 60%); }
.store-card__txt { position: absolute; left: clamp(24px, min(4.16vw, 79.872px), 80px); top: 50%; transform: translateY(-50%); max-width: min(710px, 80%); }
.store-title { margin: 0; font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 400; font-size: clamp(52px, min(6.35vw, 121.92px), 122px); line-height: 1.3; color: #fff; text-transform: capitalize; }
.store-desc { margin: clamp(8px, min(0.7vw, 13.44px), 14px) 0 clamp(20px, min(2vw, 38.4px), 40px); font-family: var(--font-latin, "Poppins", "Pretendard", sans-serif); font-weight: 500; font-size: clamp(15px, min(1.05vw, 20.16px), 20px); line-height: 1.6; color: #fff; }

/* ── 반응형 ── */
@media (min-width: 1025px) {
  .temp__word, .temp__visual { top: 50%; }
  .temp__word--left { transform: translate(-50%, calc(-50% + var(--best-y, 0px))); }
  .temp__word--right { transform: translate(-50%, calc(-50% + var(--scene-wy, 0px) + var(--enter-wy, 0px))); }
  .temp__visual { transform: translate(-50%, -50%); }
}

@media (max-width: 1024px) {
  .item-card { transition: left 0.7s cubic-bezier(0.22, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.22, 0.7, 0.2, 1), opacity 0.55s ease; }
  .item-card--center { transform: translate(-50%, -50%) scale(1.4); }
  .item-card--left { left: 44%; transform: translate(-50%, -50%) scale(1.22); opacity: 0; }
  .item-card--right { left: 56%; transform: translate(-50%, -50%) scale(1.22); opacity: 0; }
  .item-card--far-left, .item-card--out-left { left: 38%; transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
  .item-card--far-right, .item-card--out-right { left: 62%; transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
  .hero__dot::before { width: 4px; height: 4px;}
  .hero__dot.is-active::before { border: 2px solid #fff; width: 12px; height: 12px;}
  .hero__scroll { display: none;}
  .item-pager__dot { display: none; }
  .story__line { max-width: 100%;}
}
@media (max-width: 1024px) {
  .temp {
    --temp-mobile-visual-width: 220px;
    --temp-mobile-visual-height: 281.111px;
    --temp-mobile-visual-top: calc(var(--fold) * 0.39);
    --temp-mobile-word-gap: clamp(14px, 2vw, 20px);
  }
  .hero__cont { left: var(--main-inner-gutter); top: calc(var(--fold) * 0.26); width: calc(100% - var(--main-inner-gutter) - var(--main-inner-gutter)); }
  .hero__title { margin-bottom: 24px; font-size: var(--fs-r-display); }
  .hero__sub, .story__label, .store-desc { font-size: var(--fs-r-body); }
  .story__line, .temp__heading { font-size: var(--fs-r-section); }
  .temp__word, .store-title { font-size: var(--fs-r-mega); }
  .item-title { font-size: var(--fs-r-section); }
  .item-name { font-size: var(--fs-r-title); }
  .hero__sub .reveal-txt { display: block; width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .item-card { width: min(40vw, 307.2px); height: min(46vw, 353.28px); }
  .item-head { flex-direction: column; align-items: flex-start; }
  .temp__heading { top: calc(var(--fold) * 0.16); }
  .temp__word--left { left: 50%; top: calc(var(--temp-mobile-visual-top) - var(--temp-mobile-word-gap)); transform: translate(-50%, calc(-100% + var(--best-y, 0px))); }
  .temp__word--right { left: 50%; top: calc(var(--temp-mobile-visual-top) + var(--temp-mobile-visual-height) + var(--temp-mobile-word-gap)); }
  .temp__visual { top: var(--temp-mobile-visual-top); width: var(--temp-mobile-visual-width); }
  .store-card__dim { background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 65%, rgba(0, 0, 0, 0.38) 100%); }
  .store-card__txt { max-width: calc(100% - 48px); }
  .item-name { margin: clamp(16px, min(3.7vw, 32.64px), 32px) 0 0; }
}

/* ── 접근성/모션 감축 ── */
/* 1920px+ viewport cap: keep the 1920 x 1080 composition scale. */
@media (min-width: 1920px) {
  /* .cover-stack { --fold: min(100vh, 1080px); } */
  /* .item-sec { padding-block: min(3vh, 32.4px); } */
}

@media (prefers-reduced-motion: reduce) {
  .orbit__spin--1, .orbit__spin--2, .orbit__spin--3 { animation: none; }
  .orbit__spin--3 { transform: rotate(180deg); }
  .hero__scroll-dot { animation: none; }
  .hero__slide.is-active .reveal-txt { animation: none; transform: translateY(0); opacity: 1; }
  .gauge .gauge__txt { --fill: 100%; }
  .hero__photo, .hero__slide, .item-card { transition: none; }
}

@media (max-width: 500px) {
  .item-card--left, .item-card--right { transform: translate(-50%, -50%) scale(1.55); }
  .item-card--far-left, .item-card--far-right, .item-card--out-left, .item-card--out-right { transform: translate(-50%, -50%) scale(1.4); }
  .item-card--center {
      transform: translate(-50%, -50%) scale(1.8);
  }
  .story__line, .temp__heading {
        font-size: 22px;
  }
}
