body { overflow-x: hidden; }

html.is-hero-video-locked,
html.is-hero-video-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #e1dbd8;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster,
.hero__video {
  backface-visibility: hidden;
  transition: opacity .2s ease;
}

.hero__poster {
  z-index: 0;
  opacity: 1;
}

.hero__video {
  z-index: 1;
  opacity: 0;
  min-width: 100%;
  min-height: 100%;
  background: #e1dbd8;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3px, #000 calc(100% - 3px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3px, #000 calc(100% - 3px), transparent 100%);
  transform: scale(var(--hero-cover-scale, 1));
  transform-origin: center;
  will-change: opacity, transform;
  transition: opacity .2s ease, transform 1.8s cubic-bezier(.22, 1, .36, 1);
}

.hero.is-playing .hero__poster,
.hero.is-complete .hero__poster {
  opacity: 0;
}

.hero.is-playing .hero__video,
.hero.is-complete .hero__video {
  opacity: 1;
}

.hero.is-contained:not(.is-shrinking):not(.is-complete) .hero__video {
  transform: scale(1);
  transition-duration: .2s, 1.8s;
}

.hero.is-shrinking .hero__video,
.hero.is-complete .hero__video {
  transform: translateY(10%) scale(.8);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(1600px, calc(100% - (var(--gutter) * 2)));
  height: min(690px, calc(100vh - 260px));
  min-height: 500px;
  margin: 0 auto;
  padding-top: 213px;
  pointer-events: none;
  transition: opacity .55s ease, transform .7s cubic-bezier(.22, 1, .36, 1), visibility 0s linear 0s;
}

.hero.is-playing .hero__content,
.hero.is-complete .hero__content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  pointer-events: none;
  transition-delay: 0s, 0s, .7s;
}

.hero__title {
  margin: 0;
  font-size: clamp(54px, 3.65vw, 70px);
  font-weight: 500;
  line-height: 1.142857;
  letter-spacing: -0.005em;
  color: var(--text);
  opacity: var(--hero-fade, 1);
  transform: translateY(calc((1 - var(--hero-fade, 1)) * -24px));
}

.hero__bottom {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
  padding-bottom: 0;
  opacity: var(--hero-fade, 1);
  transform: translateY(calc((1 - var(--hero-fade, 1)) * 28px));
  pointer-events: auto;
}

.hero__copy {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  text-align: right;
  text-shadow: 0 1px 10px rgba(0,0,0,.22);
}

.hero__cta {
  color: #fff;
  font-size: clamp(14px, 1.62vw, 18px);
  font-weight: 600;
}

.hero__cta svg,
.card__more svg,
.contact-panel .btn-pill svg {
  flex: 0 0 auto;
  width: 31px;
  height: 20px;
}

.hero__cta:hover {
  background: #fff;
  color: #111;
}

.hero__final-message {
  position: absolute;
  z-index: 3;
  top: 20vh;
  left: 50%;
  width: calc(100% - (var(--gutter) * 2));
  margin: 0;
  color: #171717;
  font-size: 70px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 34px);
  pointer-events: none;
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .9s;
}

.hero.is-message-visible .hero__final-message {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.hero__scroll-down {
  position: absolute;
  z-index: 4;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: #171717;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .6s;
}

.hero__scroll-down::after {
  content: "";
  width: 1px;
  height: 32px;
  background: currentColor;
  transform-origin: top;
}

.hero.is-scroll-cue-visible .hero__scroll-down {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.hero.is-scroll-cue-visible .hero__scroll-down::after {
  animation: hero-scroll-down 1.5s ease-in-out infinite;
}

@keyframes hero-scroll-down {
  0%, 100% { opacity: .35; transform: scaleY(.45); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero__skip {
  position: fixed;
  z-index: 2200;
  top: var(--hero-skip-y, calc(100vh - 64px));
  left: var(--hero-skip-x, calc(100vw - 64px));
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(.78);
  cursor: pointer;
  pointer-events: none;
  will-change: top, left, opacity, transform;
  transition: opacity .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .2s;
}

.hero__skip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.hero__skip:hover,
.hero__skip:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.hero__skip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (min-width: 1920px) {
  .hero__content {
    width: 100%;
    max-width: 1600px;
    height: calc(100vh - 170px);
  }
}

@media (min-width: 1921px) {
  .hero__content {
    width: calc(100% - 120px);
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(84px, 4.8vw, 112px);
    line-height: 1.05;
  }
}

.chatbot {
  --chatbot-size: 80px;
  --chatbot-edge-right: 49px;
  --chatbot-edge-bottom: 40px;
  --chatbot-clear-bottom: 168px;
  --chatbot-current-bottom: var(--chatbot-edge-bottom);
  position: fixed;
  right: calc(var(--chatbot-edge-right) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--chatbot-current-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 100020;
  opacity: 1;
  transition: bottom .28s var(--ease), opacity .2s var(--ease), transform .25s var(--ease);
}

.chatbot.is-footer-raised {
  --chatbot-current-bottom: var(--chatbot-clear-bottom);
}

body.is-menu-open .chatbot {
  opacity: 0;
  pointer-events: none;
}

.chatbot__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 0;
  border-radius: 50%;
  color: #ff6a00;
  box-shadow: 0 0px 20px rgba(17, 17, 17, .14);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.chatbot__toggle:hover {
  box-shadow: 0 0px 20px rgba(17, 17, 17, .14);
  transform: translateY(-2px);
}

.chatbot__icon {
  position: absolute;
  inset: 0;
  width: 80px;
  height: 80px;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity .24s var(--ease), transform .28s var(--ease);
  will-change: opacity, transform;
}

.chatbot__icon--close {
  opacity: 0;
  transform: scale(.82) rotate(-12deg);
}

.chatbot.is-open .chatbot__icon--open {
  opacity: 0;
  transform: scale(.82) rotate(12deg);
}

.chatbot.is-open .chatbot__icon--close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.chatbot__panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--chatbot-size) + 20px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 450px;
  height: min(600px, calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 44px));
  max-height: calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 44px);
  padding: 30px;
  border-radius: 20px;
  background: #eeeeee;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}

.chatbot.is-open .chatbot__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chatbot__head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.chatbot__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #fff;
}

.chatbot__brand span {
  display: block;
  width: 52px;
  height: 54px;
  background: url("../img/main/nsbs-chatbot-brand-logo.svg") no-repeat center / contain;
}

.chatbot__head p {
  margin: 0;
  color: #222;
  font-family: var(--font-ko);
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  white-space: nowrap;
}

.chatbot__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
}

.chatbot__row {
  display: flex;
  width: 100%;
}

.chatbot__row--bot { justify-content: flex-start; }
.chatbot__row--user { justify-content: flex-end; margin: 25px 0; }
.chatbot__row--spaced { margin-top: 20px; }

.chatbot__chip,
.chatbot__bubble,
.chatbot__action {
  font-family: var(--font-ko);
}

.chatbot__chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 15px 20px;
  border-radius: 0 15px 15px 15px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 16px;
  text-align: left;
  white-space: normal;
}

button.chatbot__chip {
  max-width: 100%;
}

button.chatbot__chip:hover,
button.chatbot__chip:focus-visible {
  outline: none;
  color: var(--primary);
}

button.chatbot__chip:disabled {
  cursor: default;
}

button.chatbot__chip:disabled:hover {
  color: #222;
}

.chatbot__chip--user {
  justify-content: flex-end;
  border-radius: 15px 0 15px 15px;
  background: var(--primary);
  color: #fff;
}

.chatbot__bubble {
  max-width: 352px;
  padding: 15px 20px;
  border-radius: 0 15px 15px 15px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 24px;
}

.chatbot__bubble p {
  margin: 0 0 10px;
}

.chatbot__bubble ul {
  margin: 0;
  padding-left: 18px;
}

.chatbot__bubble li + li {
  margin-top: 6px;
}

.chatbot__typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 46px;
  padding: 15px 18px;
  border-radius: 0 15px 15px 15px;
  background: #fff;
}

.chatbot__typing span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .35;
  animation: chatbotTyping 1s infinite ease-in-out;
}

.chatbot__typing span:nth-child(2) {
  animation-delay: .14s;
}

.chatbot__typing span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes chatbotTyping {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.chatbot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chatbot__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 9px 14px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
}

button.chatbot__action {
  margin-top: 10px;
}

.chatbot__action:disabled {
  cursor: default;
  opacity: .55;
}

.chatbot__bubble--followup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chatbot__bubble--followup p {
  margin-bottom: 0;
}

.frame39 {
  position: relative;
  z-index: 3;
  height: 300vh;
  background: #fff;
}

.frame39__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  opacity: var(--frame39-opacity, 1);
  transition: opacity .2s linear;
}

.frame39__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1600px, calc(100% - (var(--gutter) * 2)));
  min-height: 520px;
  transform: translateY(22px);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-width: 286px;
  color: var(--text-faint);
  text-align: center;
  white-space: nowrap;
  transition: color .35s var(--ease), transform .35s var(--ease), opacity .35s var(--ease);
}

.step__num {
  font-size: 20px;
  line-height: 20px;
  font-weight: 500;
}

.step__label {
  font-size: 60px;
  line-height: 60px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.step.is-active {
  color: var(--primary);
}

.step__connector {
  position: relative;
  flex: 0 0 188px;
  width: 188px;
  height: 1px;
  background: var(--text-faint);
  overflow: hidden;
  transform: translateY(25px);
}

.step__connector span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--draw, 0%);
  background: var(--primary);
  transition: width .08s linear, height .08s linear;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 100px;
}

.step-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.step-dots span.is-active {
  background: var(--primary);
  transform: scale(1.04);
}

.frame39__copy {
  margin: 66px 0 0;
  color: var(--text);
  font-size: 36px;
  line-height: 60px;
  font-weight: 600;
  text-align: center;
  word-break: keep-all;
}

.frame39__copy > span {
  display: block;
}

.frame39__copy .char {
  /* 글자를 한 자씩 span 으로 쪼개므로, 공백 span 이 접히지 않도록 보존한다.
     pre-wrap 은 공백을 살리면서 그 자리에서 줄바꿈도 허용한다. */
  white-space: pre-wrap;
  color: var(--text-faint);
  transition: color .18s linear;
}

.frame39__copy .char.is-lit {
  color: var(--text);
}

.frame40 {
  position: relative;
  z-index: 4;
  width: 100%;
  height: auto;
  background: #fff;
  overflow: hidden;
}

.frame40 img,
.frame40 > video {
  display: block;
  width: 100%;
  min-height: 560px;
  object-fit: cover;
}

/* ── main02 3D 섹션 ─────────────────────────────────────────────
   가운데 제품은 GLB(20초 루프)를 three.js 로 실시간 재생하고,
   배경 워드와 바닥 도트 웨이브는 코드로 그린다. 영상 파일은 폴백 전용. */
.cushion3d {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 560px;
  overflow: hidden;
  background: #fff;
}

.cushion3d__words {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  transform: translateY(-27%);
}

/* 글자 크기는 스크립트가 컨테이너 폭에 맞춰 계산한다. 아래 값은 로드 전 기본값. */
.cushion3d__word {
  position: absolute;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-size: clamp(44px, 9.4vw, 205px);
  color: #f1f2f3;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
}

.cushion3d__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity .5s ease;
}

.cushion3d[data-ready="true"] .cushion3d__stage { opacity: 1; }
.cushion3d__stage canvas { display: block; }

/* WebGL 미지원 · 모션 최소화 · 로드 실패 시에만 기존 영상으로 */
.cushion3d__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.cushion3d[data-fallback="true"] .cushion3d__fallback { display: block; }
.cushion3d[data-fallback="true"] .cushion3d__words { display: none; }
.cushion3d__fallback--noscript { display: block; }

.frame60 {
  position: relative;
  z-index: 4;
  padding: 200px var(--gutter);
  background: #fff;
}

.cards {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.card {
  container-type: inline-size;
  position: relative;
  flex: 1 1 0;
  height: 880px;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  transition: flex-grow .48s var(--ease), transform .48s var(--ease);
}

.card.is-focused,
.card:hover,
.card:focus-within {
  flex-grow: 2.64;
}

.card__body {
  position: absolute;
  z-index: 2;
  top: 167px;
  left: 50%;
  width: min(78%, 560px);
  transform: translateX(-50%);
  text-align: center;
  transition: top .42s var(--ease), left .42s var(--ease), transform .42s var(--ease), text-align .42s var(--ease);
}

.card__eyebrow {
  margin: 0 0 10px;
  color: #bbb;
  font-size: 18px;
  line-height: 18px;
  font-weight: 500;
}

.card.is-focused .card__eyebrow,
.card:hover .card__eyebrow,
.card:focus-within .card__eyebrow {
  color: var(--primary);
}

.card h3 {
  margin: 0;
  color: #000;
  font-size: clamp(20px, 2.2cqw, 30px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.card__desc,
.card__more {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}

.card__desc {
  margin: 30px 0 0;
  color: #000;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.card__more {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 40px;
  padding: 10px 20px;
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: #000;
  overflow: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), color .28s var(--ease);
}

.card__more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .36s var(--ease);
}

.card__more > * {
  position: relative;
  z-index: 1;
}

.card__more:hover,
.card__more:focus-visible {
  color: #fff;
}

.card__more:hover::before,
.card__more:focus-visible::before {
  transform: scaleX(1);
}

/* 반응형 이미지 교체용 <picture> 는 박스를 만들지 않게 해서
   <img>(.card__media) 가 그대로 카드의 자식처럼 동작하게 한다. */
.card picture {
  display: contents;
}

.card__media {
  position: absolute;
  right: 0;
  bottom: 74px;
  z-index: 1;
  width: min(90%, 520px);
  max-width: none;
  transform: none;
  opacity: .68;
  transition: width .42s var(--ease), right .42s var(--ease), bottom .42s var(--ease), transform .42s var(--ease), opacity .42s var(--ease);
}

.card__media--cushion {
  right: -159px;
  bottom: 159px;
  width: 434px;
  opacity: .32;
}

.card__media--underwear {
  right: -65px;
  bottom: 175px;
  width: 360px;
  opacity: .42;
  filter: grayscale(1) brightness(1.8) contrast(.75);
}

.card__media--positioning {
  right: -6px;
  bottom: 190px;
  width: 270px;
  opacity: 1;
  filter: none;
}

.card__media--positioning-hover {
  opacity: 0;
  pointer-events: none;
}

.card__media--grabbar {
  right: 0;
  bottom: 190px;
  width: 260px;
  opacity: .4;
  filter: grayscale(1) brightness(1.95) contrast(.72);
}

.card__plus {
  position: absolute;
  left: 50%;
  bottom: 66px;
  z-index: 3;
  width: 64px;
  height: 32px;
  transform: translateX(-50%);
  opacity: .48;
  transition: opacity .25s var(--ease);
}

.card.is-focused .card__plus,
.card:hover .card__plus,
.card:focus-within .card__plus {
  opacity: 0;
}

@container (min-width: 520px) {
  .card__body {
    top: 122px;
    left: 102px;
    transform: none;
    text-align: left;
  }
  .card h3 {
    font-size: clamp(30px, 6.4cqw, 50px);
    line-height: 50px;
  }
  .card.is-focused .card__desc,
  .card:hover .card__desc,
  .card:focus-within .card__desc,
  .card.is-focused .card__more,
  .card:hover .card__more,
  .card:focus-within .card__more {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .card.is-focused .card__media,
  .card:hover .card__media,
  .card:focus-within .card__media {
    right: 0;
    bottom: 40px;
    width: 523px;
    transform: none;
    opacity: .95;
  }
  .card.is-focused .card__media--cushion,
  .card:hover .card__media--cushion,
  .card:focus-within .card__media--cushion {
    right: -150px;
    bottom: 0;
    width: 800px;
  }
  .card.is-focused .card__media--underwear,
  .card:hover .card__media--underwear,
  .card:focus-within .card__media--underwear {
    right: 0;
    bottom: 0;
    width: 620px;
    opacity: 1;
    filter: none;
  }
  .card.is-focused .card__media--grabbar,
  .card:hover .card__media--grabbar,
  .card:focus-within .card__media--grabbar {
    bottom: 0;
    opacity: 1;
    filter: none;
  }
  .card.is-focused .card__media--positioning,
  .card:hover .card__media--positioning,
  .card:focus-within .card__media--positioning {
    opacity: 0;
  }
  .card.is-focused .card__media--positioning-hover,
  .card:hover .card__media--positioning-hover,
  .card:focus-within .card__media--positioning-hover {
    opacity: .95;
    filter: none;
  }
}
/* 확대(hover/focus)된 카드는 폭이 380px 만 되면 데스크톱 형태를 갖춘다.
   ------------------------------------------------------------------
   기존에는 위의 520px 기준 하나뿐이었는데, 확대 카드 폭은
     (뷰포트 - 거터*2 - 간격 60) * 0.468
   이라서 뷰포트가 약 1300px 아래로 내려가면 520px 에 못 미친다.
   그러면 컨테이너 쿼리가 통째로 꺼져 설명(.card__desc)과
   view more 버튼(.card__more)이 opacity:0 / pointer-events:none 인 채로 남아
   보이지도 않고 링크도 눌리지 않았다. (1025~1300 구간)

   값은 전부 min()/clamp() 로 "카드 폭 520px 기준 픽셀값" 을 상한으로 잡았다.
   → 카드가 520px 이상이면 기존 픽셀값 그대로라 1300px 이상 화면은 변화가 없고,
     그 아래에서만 글자·여백·이미지가 카드 폭에 비례해 줄어든다.

   1024 이하는 카드가 세로로 쌓이는 별도 레이아웃이라 이 블록을 적용하면 안 된다.
   (여기 선택자는 .card.is-focused ... 라 1024 블록의 .card__body 보다 우선순위가 높아
    미디어쿼리 순서만으로는 막히지 않는다) 그래서 min-width: 1025px 로 감싼다. */
@media (min-width: 1025px) {
@container (min-width: 380px) {
  .card.is-focused .card__body,
  .card:hover .card__body,
  .card:focus-within .card__body {
    top: min(23.5cqw, 122px);
    left: min(10.6cqw, 102px);
    transform: none;
    text-align: left;
  }

  .card.is-focused h3,
  .card:hover h3,
  .card:focus-within h3 {
    font-size: clamp(30px, 6.4cqw, 50px);
    line-height: clamp(36px, 9.6cqw, 50px);
  }

  .card.is-focused .card__desc,
  .card:hover .card__desc,
  .card:focus-within .card__desc,
  .card.is-focused .card__more,
  .card:hover .card__more,
  .card:focus-within .card__more {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .card.is-focused .card__desc,
  .card:hover .card__desc,
  .card:focus-within .card__desc {
    margin-top: min(5.77cqw, 30px);
    font-size: clamp(15px, 3.46cqw, 18px);
    line-height: 1.45;
  }

  .card.is-focused .card__more,
  .card:hover .card__more,
  .card:focus-within .card__more {
    margin-top: min(7.7cqw, 40px);
    min-height: clamp(38px, 8.85cqw, 46px);
    padding: 10px min(3.85cqw, 20px);
    font-size: clamp(15px, 3.46cqw, 18px);
  }

  .card.is-focused .card__media,
  .card:hover .card__media,
  .card:focus-within .card__media {
    right: 0;
    bottom: min(7.7cqw, 40px);
    width: min(100.6cqw, 523px);
    transform: none;
    opacity: .95;
  }

  .card.is-focused .card__media--cushion,
  .card:hover .card__media--cushion,
  .card:focus-within .card__media--cushion {
    right: clamp(-150px, -28.85cqw, 0px);
    bottom: 0;
    width: min(153.8cqw, 800px);
  }

  .card.is-focused .card__media--underwear,
  .card:hover .card__media--underwear,
  .card:focus-within .card__media--underwear {
    right: 0;
    bottom: 0;
    width: min(119.2cqw, 620px);
    opacity: 1;
    filter: none;
  }

  .card.is-focused .card__media--grabbar,
  .card:hover .card__media--grabbar,
  .card:focus-within .card__media--grabbar {
    bottom: 0;
    opacity: 1;
    filter: none;
  }

  .card.is-focused .card__media--positioning,
  .card:hover .card__media--positioning,
  .card:focus-within .card__media--positioning {
    opacity: 0;
  }

  .card.is-focused .card__media--positioning-hover,
  .card:hover .card__media--positioning-hover,
  .card:focus-within .card__media--positioning-hover {
    opacity: .95;
    filter: none;
  }
}
}

.frame72 {
  position: relative;
  z-index: 4;
  padding: 0 var(--gutter) 103px;
  background: #fff;
}

.frame72 h2 {
  margin: 0 0 40px;
  font-size: 50px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 20px;
}

.contact-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-panel__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 500px;
  padding-left: clamp(42px, 7.5vw, 130px);
  color: #fff;
}

.contact-panel__content p {
  margin: 0 0 42px;
  font-size: clamp(21px, 1.7vw, 32px);
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: 0;
}

/* 크기·여백은 .btn-pill(= .card__more 기준)을 그대로 쓰고 여기서는 색만 지정한다. */
.contact-panel .btn-pill {
  color: #fff;
  font-weight: 500;
}


@media (max-width: 1600px) {
.step__label {
    font-size: 50px;
}
.step__connector {
    flex: 0 0 100px;
    width: 100px;
}
}

@media (max-width: 1280px) {
  .steps { gap: 28px; }
  .step { min-width: 220px; }
  .step__connector { flex-basis: 80px; width: 80px; }
  .step__label { font-size: clamp(28px, 4.2vw, 50px); }
  .hero__final-message {
    font-size: 40px;
}
}


@media (max-width: 1024px) {
  /* 카드 전체가 링크로 동작하므로(JS) 누를 수 있음을 표시한다. */
  .card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
  }

  .hero__title {
    font-size: clamp(44px, 3.65vw, 54px);
  }
  .hero {
    min-height: 760px;
  }
  .hero__content {
    width: calc(100% - (var(--gutter) * 2));
    height: 100%;
    min-height: 0;
    padding-top: 118px;
    padding-bottom: 76px;
    justify-content: flex-start;
    gap: 20px;
  }
  .hero__bottom {
    align-self: flex-start;
    align-items: flex-start;
    gap: 14px;
  }
  .hero__copy {
    text-align: left;
    font-size: 20px;
    line-height: 28px;
    display: none;
  }
  /* 크기·여백은 .btn-pill 반응형(= .card__more 기준)을 따르고 색상만 남긴다. */
  .hero__cta {
    background-color: #111111;
    border: none;
  }

  .hero__cta svg,
  .contact-panel .btn-pill svg,
  .btn-pill svg {
    width: clamp(16px, 2vw, 31px);
    height: auto;
  }
  .chatbot {
    --chatbot-size: 64px;
    --chatbot-edge-right: var(--gutter);
    --chatbot-edge-bottom: 24px;
    --chatbot-clear-bottom: 176px;
  }
  .chatbot__toggle,
  .chatbot__icon {
    width: 64px;
    height: 64px;
  }
  /* 패널은 뷰포트에 고정한다.
     absolute 로 두면 컨테이닝 블록이 .chatbot(= 토글 64px)이라
     width/left/right 의 %(--gutter) 가 64px 기준으로 계산돼 패널이 찌그러진다.
     .chatbot 은 이미 position: fixed 라 좌표만 뷰포트 기준으로 다시 써 주면 된다. */
  .chatbot__panel {
    position: fixed;
    left: auto;
    right: var(--gutter);
    bottom: calc(var(--chatbot-current-bottom) + var(--chatbot-size) + 18px + env(safe-area-inset-bottom, 0px));
    width: min(450px, calc(100vw - (var(--gutter) * 2)));
    height: min(600px, calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 40px));
    max-height: calc(100svh - var(--chatbot-current-bottom) - var(--chatbot-size) - 40px);
    padding: 22px;
    /* 푸터에서 챗봇이 위로 올라갈 때(is-footer-raised) 패널도 같이 부드럽게 따라 올라간다. */
    transition: opacity .28s var(--ease), transform .28s var(--ease), bottom .28s var(--ease);
  }
  .chatbot__head {
    gap: 14px;
  }
  .chatbot__brand {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .chatbot__brand span {
    width: 42px;
    height: 44px;
  }
  .chatbot__head p {
    font-size: 17px;
    line-height: 25px;
    white-space: normal;
  }
  .chatbot__chip,
  .chatbot__bubble {
    font-size: 15px;
    line-height: 23px;
  }
  .frame39__inner {
    width: calc(100% - (var(--gutter) * 2));
    transform: translateY(0);
  }
  .steps {
    flex-direction: column;
    gap: 24px;
  }
  .step {
    min-width: 0;
    gap: 8px;
  }
  .step__label {
    font-size: clamp(26px, 13vw, 34px);
    line-height: 1.4;
  }
  .step__connector {
    flex: 0 0 44px;
    width: 1px;
    height: 44px;
    transform: none;
  }
  .step__connector span {
    width: 100%;
    height: var(--draw, 0%);
  }
  .step-dots {
    margin-top: 54px;
  }
  .frame39__copy {
    margin-top: 42px;
    /* 좌우 여백: 글자가 컨테이너 가장자리에 붙지 않게 */
    padding-inline: 0;
    font-size: clamp(18px, 6.8vw, 26px);
    line-height: 1.55;
  }
  .frame60 {
    padding: 96px var(--gutter);
  }
  .cards {
    flex-direction: column;
    gap: 16px;
  }
  /* ── 1024 이하: 카드를 가로형 배너로 (왼쪽 문구 / 오른쪽 제품 이미지) ──
     선택자 앞에 .cards 를 붙여 우선순위를 올렸다.
     파일 뒤쪽 prefers-reduced-motion 블록이 .card { height: 400px } 를 잡고 있어서
     순서만으로는 height: auto 가 밀리기 때문이다. */
  .cards .card,
  .cards .card.is-focused,
  .cards .card:hover,
  .cards .card:focus-within {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 2.6vw, 40px);
    height: auto;
    min-height: 0;
    padding: clamp(26px, 4.2vw, 56px) clamp(20px, 4.6vw, 72px);
    transform: none;
  }

  .cards .card__body,
  .cards .card.is-focused .card__body,
  .cards .card:hover .card__body,
  .cards .card:focus-within .card__body {
    position: static;
    top: auto;
    left: auto;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    transform: none;
    text-align: left;
  }

  /* 배너에서는 아이라벨이 hover 와 무관하게 항상 주황색 */
  .cards .card__eyebrow {
    margin-bottom: clamp(6px, 1.1vw, 14px);
    color: var(--primary);
    font-size: clamp(13px, 1.75vw, 18px);
    line-height: 1.4;
  }

  .cards .card h3,
  .cards .card.is-focused h3,
  .cards .card:hover h3,
  .cards .card:focus-within h3 {
    font-size: clamp(13px, 3.5vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }

  .cards .card__desc,
  .cards .card.is-focused .card__desc,
  .cards .card:hover .card__desc,
  .cards .card:focus-within .card__desc {
    display: block;
    margin-top: clamp(8px, 1.6vw, 20px);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    font-size: clamp(13px, 1.62vw, 18px);
    line-height: 1.55;
  }

  .cards .card__more,
  .cards .card.is-focused .card__more,
  .cards .card:hover .card__more,
  .cards .card:focus-within .card__more {
    display: inline-flex;
    margin-top: clamp(14px, 2.2vw, 30px);
    min-height: clamp(32px, 4.2vw, 46px);
    padding: 6px clamp(12px, 1.9vw, 22px);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    font-size: clamp(13px, 1.62vw, 18px);
    line-height: 1.4;
  }

  .cards .card__more svg {
    width: clamp(16px, 2vw, 31px);
    height: auto;
  }

  .cards .card__media,
  .cards .card.is-focused .card__media,
  .cards .card:hover .card__media,
  .cards .card:focus-within .card__media {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 0 0 auto;
    width: clamp(104px, 26vw, 420px);
    height: auto;
    transform: none;
    opacity: 1;
    filter: none;
  }

  /* 모바일 이미지는 한 장만 쓴다 (hover 전환용 이미지는 감춘다) */
  .cards .card__media--positioning-hover {
    display: none;
  }

  .card__plus { display: none; }
  .frame72 {
    padding-bottom: 40px;
  }
  .frame72 h2 {
    font-size: 30px;
    line-height: 44px;
    margin: 0 0 10px;
  }
  /* 배경 사진 위 흰 글씨가 밝은 부분에서 잘 안 읽힌다.
     이미지(z-index 없음)와 본문(z-index:2) 사이에 옅은 검정을 깔아 대비를 준다. */
  .contact-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, .45) 100%);
    pointer-events: none;
  }

  .contact-panel,
  .contact-panel__content {
    min-height: auto;
  }
  .contact-panel__content {
    padding: 48px 28px;
  }
  /* 본문은 clamp 하한이 26px 이라 모바일에서 과하게 크다. */
  .contact-panel__content p {
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.5;
  }

}

@media (max-width: 768px) {
.step__connector {
        flex: 0 0 30px;
        height: 30px;
    }
        .step {
        min-width: 0;
        gap: 0px;
    }
    .step-dots {
        margin-top: 40px;
    }
    .step-dots span {
    width: 8px;
    height: 8px;
}
  .card__desc {
    display: none !important;
  }
  .hero__title {
    font-size: clamp(40px, 3.65vw, 44px);
    width: 200px;
  }
  .hero__copy {
     display: none;
  }
  .frame39 {
    background: #f9f9f9;
  }
  .step {
    color: #ddd;
  }
  .step-dots span {
    background: #ddd;
  }
  .frame39__copy .char {
    color: #ddd;
  }
  .frame72 {
    padding-bottom: 20px;
  }
}

/* 768 이하: 상단 히어로를 영상 대신 모바일 전용 이미지로 바꾼다.
   영상 섹션(.hero--sequence)과 SKIP 버튼은 index.php 인라인 스크립트가 감추고,
   여기서는 정지 히어로(.hero--return)를 이미지 배경으로 재구성한다.

   선택자를 .hero.hero--return 으로 쓴 이유:
   뒤쪽 480 블록에 .hero { min-height: 100svh } 가 있어서 순서만으로는 밀린다. */
@media (max-width: 768px) {
  /* 영상 히어로는 이 구간에서 통째로 숨긴다.
     JS(nsbs-main.js initHeroBreakpoint)도 같은 768 기준으로 hidden 속성과
     영상 소스를 붙였다 뗐다 하지만, JS 는 defer 라 한 박자 늦다.
     CSS 로 먼저 감춰야 로딩 순간에 영상 히어로가 번쩍 보이지 않는다. */
  .hero--sequence,
  .hero__skip {
    display: none !important;
  }

  .hero.hero--return {
    display: block;
    /* 100vh 가 아니라 이미지(900x1200) 높이만큼만 차지한다. */
    height: auto;
    min-height: 0;
    aspect-ratio: 900 / 1600;
    background: url("../img/main/main-hero-mo.png") no-repeat center center / cover;
  }

  /* 기존 포스터 이미지(main01.png)는 배경으로 대체됐으므로 감춘다. */
  .hero.hero--return .hero__bg {
    display: none;
  }

  /* 문구 구성(제목 위 / 카피·버튼 아래)은 그대로 두고 높이만 히어로에 맞춘다. */
  .hero.hero--return .hero__content {
    height: 100%;
    min-height: 0;
  }

  /* 3D 섹션(.frame40) 바로 아래 여백 제거.
     .frame40 은 margin/padding 이 없고, 그 공백의 정체는 다음 섹션의
     padding-top 이라 여기서 위쪽만 0 으로 준다. 아래쪽 96px 은 유지. */
  .frame60 {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100svh;
  }
  .hero__content {
    padding-top: 112px;
    padding-bottom: 56px;
  }
  .hero__bg {
    object-position: 49% center;
  }
  .hero__final-message {
    top: 20vh;
    width: calc(100% - 32px);
    font-size: clamp(19px, 5.1vw, 24px);
    white-space: nowrap;
  }
  .hero__skip {
    top: auto !important;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: auto !important;
    width: 72px;
    height: 72px;
    transform: scale(.78);
  }
  .hero__skip.is-visible,
  .hero__skip:hover,
  .hero__skip:focus-visible {
    transform: scale(1);
  }
  .chatbot {
    --chatbot-clear-bottom: 320px;
  }
  .chatbot__panel {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    gap: 20px;
    padding: 18px;
  }
  .frame39,
  .frame39__sticky {
    /* min-height: 100svh; */
  }
  .frame40 img,
  .frame40 > video {
    min-height: 420px;
  }
  .cushion3d {
    min-height: 420px;
  }

  /* 480 이하 카드 규칙은 1024 배너 레이아웃(.cards .card ...)이 대체한다.
     이전의 height/중앙정렬 값들은 우선순위에서 밀려 죽은 규칙이라 제거했다. */

    .frame39__copy {
        margin-top: 30px;
        font-size: clamp(18px, 6.8vw, 22px);
    }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* 3D 대신 영상으로 (스크립트도 같은 조건에서 폴백한다) */
  .cushion3d__fallback { display: block; }
  .cushion3d__words,
  .cushion3d__stage { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__title,
  .hero__bottom {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__poster,
  .hero__video,
  .hero__content,
  .hero__final-message,
  .hero__scroll-down,
  .hero__skip {
    transition-duration: .001ms !important;
  }
  .frame39__sticky {
    opacity: 1 !important;
  }
  .chatbot,
  .chatbot__panel,
  .chatbot__toggle {
    transition: none;
  }
  .frame39__copy .char {
    color: var(--text);
  }

  .card, .card.is-focused, .card:hover, .card:focus-within {
        height: 400px;
    }

}
