@charset "utf-8";

/* ==========================================================================
   공통 타이틀
   ========================================================================== */
.tit-serif {
  font-family: var(--ff-serif);
  font-size: 44px;
  line-height: 56px;
  font-weight: 400;
}
.main-wrap { position: relative; overflow: hidden; isolation: isolate; }

/* 데코: 1920 시안 기준 x 좌표를 화면 중앙 기준으로 배치 */
.deco { position: absolute; z-index: 2; pointer-events: none; }
.deco img { width: 100%; height: 100%; max-width: none; }

/* ==========================================================================
   Visual
   ========================================================================== */
.visual {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: #c2c2c2;
  color: var(--c-white);
}
.visual__bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 720px;
  margin-left: -960px;
}
/* 배경 2장 + 상단 딤 + 컬러 닷지가 합성된 한 장 (2000x750) */
.visual__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.visual__inner { position: relative; z-index: 2; padding-top: 201px; }
.visual__txt { display: flex; flex-direction: column; gap: 12px; }
.visual__desc { font-size: 20px; line-height: 28px; }
.visual__sub { font-size: 16px; line-height: 24px; }
.visual__btns { display: flex; gap: 12px; margin-top: 80px; }

/* 피규어 묶음 (시안 기준 864,156 ~ 1796,720 / 932 x 564) */
.visual__figures {
  position: absolute;
  z-index: 3;
  top: 156px;
  left: calc(50% - 96px);
  width: 932px;
  height: 564px;
  pointer-events: none;
}
.visual__figures > * { position: absolute; }
.visual__figures img { width: 100%; height: 100%; max-width: none; }
.fig-shadow-soccer { left: 16.31%; top: 76.06%; width: 11.05%; height: 9.22%; }
.fig-soccer { left: 16.85%; top: 13.12%; width: 13.52%; height: 68.79%; }
.fig-soccer img, .fig-dog img, .fig-cat img { object-position: bottom; }
.fig-soccer img { object-fit: cover; }
.fig-shadow-man { left: 28.31%; top: 67.27%; width: 50.82%; height: 75.92%; display: flex; align-items: center; justify-content: center; }
.fig-shadow-man img { flex: none; width: 100.29%; height: 68.38%; transform: rotate(-34.83deg); }
.fig-dog { left: 0; top: 49.65%; width: 22.53%; height: 34.57%; }
.fig-speaker { left: 27.36%; top: 0; width: 26.72%; height: 73.94%; }
.fig-shadow-speaker { left: 32.46%; top: 57.08%; width: 18.71%; height: 13.67%; }
.fig-man { left: 38.2%; top: 28.72%; width: 36.48%; height: 71.28%; overflow: hidden; }
.fig-man img { position: absolute; left: -1.63%; top: -11.94%; width: 109.43%; height: 111.94%; object-position: bottom; }
.fig-shadow-cat { left: 76.29%; top: 75.53%; width: 12.77%; height: 10.11%; transform: scaleX(-1); }
.fig-cat { left: 76.44%; top: 52.3%; width: 11.72%; height: 30.85%; transform: scaleX(-1); }

/* ==========================================================================
   Step (사진 한 장이면 충분합니다)
   ========================================================================== */
.sec-step { position: relative; padding-top: 100px; }
.sec-step .inner { display: flex; justify-content: flex-end; gap: 40px; }
.step__head { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.step__head p { font-size: 16px; line-height: 24px; }
.step__list { display: flex; align-items: center; gap: 24px; width: 588px; flex-shrink: 0; }
.step__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }

.step-card { display: flex; flex-direction: column; gap: 20px; }
.step-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-base9);
}
.step-card__img > * { position: absolute; }
.step-card__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.step-card__img .bg { inset: 13.48% 0 -13.48% 0; background: var(--c-base9); }
.step-card__img--01 { background: none; }
.step-card__img--01 .bg { background: #cfe0f2; }
.step-card__img--01 .photo { left: -39.72%; top: -24.82%; width: 161.7%; height: 162.06%; }
.step-card__img--03 { background: none; }
.step-card__img--03 .figure { top: 12.17%; bottom: -15.04%; left: calc(50% - 1px); aspect-ratio: 461 / 778; transform: translateX(-50%); }
.step-card__img--03 .photo { left: calc(50% - .5px); top: calc(50% + 3.5px); width: 102.48%; height: 102.48%; transform: translate(-50%, -50%); }
.step-card__img--02 .figure { top: 9.83%; bottom: -117.12%; left: 50%; aspect-ratio: 329 / 756; transform: translateX(-50%); }
.step-card__img--02 .photo { left: 0; top: calc(50% + .5px); width: 100%; height: 100%; transform: translateY(-50%); }

.step-txt { display: flex; flex-direction: column; gap: 8px; }
.step-txt__num { font-size: 16px; line-height: 24px; font-weight: 700; }
.step-txt__tit { font-size: 20px; line-height: 28px; }
.step-txt__desc { margin-top: -4px; font-size: 16px; line-height: 24px; }

.deco-dandelion { top: 108px; left: calc(50% - 950px); width: 618px; height: 1173px; z-index: -1; }
.deco-seed-01 { top: 444px; left: calc(50% - 717px); width: 149px; height: 147px; }
.deco-seed-02 { top: 648px; left: calc(50% - 630px); width: 122px; height: 121px; }
.deco-seed-03 { top: 819px; left: calc(50% - 690px); width: 68px; height: 68px; }

/* ==========================================================================
   Detail (사진 속 모습을 그대로)
   ========================================================================== */
.sec-detail { padding-top: 120px; }
.sec-detail .inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.detail__left { display: flex; flex-direction: column; gap: 32px; flex-shrink: 0; }
.detail__head { display: flex; flex-direction: column; gap: 20px; }
.detail__head p { font-size: 16px; line-height: 24px; }
.detail__main { display: flex; flex-direction: column; gap: 20px; }
.detail__circle { position: relative; width: 407px; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; }
.detail__circle img { position: absolute; top: 0; left: calc(50% + .5px); height: 100%; width: auto; max-width: none; aspect-ratio: 1 / 1; object-fit: cover; transform: translateX(-50%); }
/* 돋보기 확대 상태 (js/main.js에서 크기·위치 지정) */
.detail__circle { background: var(--c-base9); }
.detail__circle.is-zoom img { transform: none; aspect-ratio: auto; object-fit: fill; }
.detail__note { padding-left: 1em; text-indent: -1em; font-size: 15px; line-height: 22px; }

.detail__grid { position: relative; width: 588px; aspect-ratio: 588 / 676; flex-shrink: 0; }
.tile { position: absolute; width: 30.61%; height: 26.63%; overflow: hidden; background: var(--c-base9); }
.tile > * { position: absolute; }
.tile img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tile .crop { overflow: hidden; }
.tile .crop img { position: absolute; width: auto; height: auto; object-fit: fill; }
.tile--c1-1 { left: 0; top: 0; }
.tile--c1-2 { left: 0; top: 30.18%; }
.tile--c1-3 { left: 0; top: 60.36%; }
.tile--c2-1 { left: 34.69%; top: 13.31%; }
.tile--c2-2 { left: 34.69%; top: 43.2%; }
.tile--c2-3 { left: 34.69%; top: 73.37%; }
.tile--c3-1 { left: 69.39%; top: 0; }
.tile--c3-2 { left: 69.39%; top: 30.18%; }
.tile--c3-3 { left: 69.39%; top: 60.36%; }
.tile--active { background: rgba(177, 153, 119, .15); border: 2px solid var(--c-primary); }
.tile { cursor: zoom-in; }
.tile:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.tile .tile__lens { z-index: 2; border: 1px solid var(--c-primary); border-radius: 50%; background: rgba(255, 255, 255, .3); pointer-events: none; opacity: 0; transition: opacity .2s; }
.tile--active .tile__lens { opacity: 1; }
/* 정장 */
.tile .p-suit { top: -15.56%; bottom: -98.89%; left: 50%; aspect-ratio: 2272 / 4096; transform: translateX(-50%); }
/* 보디빌더 */
.tile .p-body { left: calc(50% + .5px); top: calc(50% - 4px); width: 67.22%; height: 114.44%; transform: translate(-50%, -50%); }
/* 스케이트 */
.tile .p-skate { left: 2.22%; top: 14.44%; width: 95.56%; height: 65.56%; }
/* 커플 */
.tile .p-couple { left: 50%; top: calc(50% + .5px); width: 107.78%; height: 111.67%; transform: translate(-50%, -50%); }
/* 소방관 */
.tile .p-fireman { left: 50%; top: 50%; width: 66.67%; height: 86.67%; transform: translate(-50%, -50%); }
.tile .p-fireman img { left: 2.08%; top: -15.94%; width: 95.67%; height: 119.87%; }
/* 등산 */
.tile .p-hiker { left: calc(50% - .5px); top: calc(50% + .5px); width: 75%; height: 109.44%; transform: translate(-50%, -50%); }
/* 코기 */
.tile .p-corgi { left: 8.33%; right: 7.22%; top: calc(50% - 2px); aspect-ratio: 152 / 126; transform: translateY(-50%); }
.tile .p-corgi img { left: -10.53%; top: -15.45%; width: 121.05%; height: 134.87%; }
/* 푸들 (좌우 반전) */
.tile .p-poodle { left: calc(50% - .5px); top: calc(50% + .5px); width: 49.44%; height: 82.78%; transform: translate(-50%, -50%) scaleX(-1); }
.tile .p-poodle img { left: -85.93%; top: -47.65%; width: 272.98%; height: 188.59%; }
/* 고양이 */
.tile .p-cat { left: 50%; top: calc(50% + .5px); width: 57.78%; height: 73.89%; transform: translate(-50%, -50%); }
.tile .p-cat img { left: -30.77%; top: -24.17%; width: 157.69%; height: 142.33%; }

/* ==========================================================================
   Feature
   ========================================================================== */
.sec-feature { padding-top: 142px; }
.feature__list { display: flex; gap: 24px; }
.feature__item { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; text-align: center; }
.feature__item img { width: 40px; height: 40px; object-fit: cover; }
.feature__txt { display: flex; flex-direction: column; gap: 4px; }
.feature__tit { font-size: 20px; line-height: 28px; font-weight: 500; }
.feature__desc { font-size: 16px; line-height: 24px; }

/* ==========================================================================
   Headline (라인 타이틀)
   ========================================================================== */
.headline { position: relative; padding: 80px 0; text-align: center; }
.headline__row { display: flex; align-items: center; justify-content: center; gap: 20px; }
.headline__row::before, .headline__row::after { content: ''; flex: 1; min-width: 0; height: 1px; background: var(--c-black); }
.headline__tit { flex-shrink: 0; font-family: var(--ff-serif); font-size: 30px; line-height: 38px; }
.headline__desc { margin-top: 20px; font-size: 18px; line-height: 26px; }
.sec-headline { padding-top: 40px; }

/* ==========================================================================
   Gift (누구에게 선물하시나요?)
   ========================================================================== */
.sec-gift {
  position: relative;
  margin-top: 40px;
  padding-bottom: 40px;
  background: linear-gradient(to bottom, #fff, #ece8e5);
}
.gift__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gift__head-txt { display: flex; flex-direction: column; gap: 20px; }
.gift__head-txt p { font-size: 16px; line-height: 24px; }
.gift__slider { margin-top: 40px; }
.gift__track {
  --gift-size: 320px;
  --gift-gap: 31px;
  display: flex;
  gap: var(--gift-gap);
  width: max-content;
  transition: transform .5s ease;
}
.gift__item {
  position: relative;
  flex-shrink: 0;
  width: var(--gift-size);
  height: var(--gift-size);
  border-radius: 50%;
  overflow: hidden;
}
.gift__item > img, .gift__item .fig { position: absolute; }
.gift__item .circle { inset: 0; width: 100%; height: 100%; }
.gift__item .fig { top: 50%; transform: translateY(-50%); }
.gift__item .fig img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.gift__item--01 .fig { left: 6.56%; right: 6.56%; aspect-ratio: 300 / 439; margin-top: .06px; }
.gift__item--02 .fig { left: 16.39%; right: 17.21%; aspect-ratio: 300 / 471; margin-top: 2.5px; }
.gift__item--03 .fig { left: 12.3%; right: 15.57%; aspect-ratio: 2043 / 3305; margin-top: .46px; }
.gift__item--04 .fig { left: 0; right: 0; aspect-ratio: 1286 / 1516; margin-top: -2px; }
.gift__item--05 .fig { left: 16.39%; right: 17.21%; aspect-ratio: 300 / 521; margin-top: 4.5px; }
.gift__item--06 .fig { left: -.78%; right: -8.91%; top: -17.19%; aspect-ratio: 300 / 419; transform: none; }
.gift__over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9.26px;
  border-radius: 50%;
  background: rgba(157, 127, 85, .8);
  color: var(--c-white);
  text-align: center;
  opacity: 0;
  transition: opacity .3s;
}
.gift__item:hover .gift__over, .gift__over:focus-visible { opacity: 1; }
.gift__over strong { font-size: 30.867px; line-height: 30.867px; font-weight: 500; }
.gift__over p { font-size: 12.347px; line-height: 18.52px; }
.deco-seed-04 { top: 60px; left: calc(50% - 13px); width: 110px; height: 108px; }

.sec-gift .headline { margin-top: 40px; }
.sec-gift .inner { position: relative; z-index: 3; }
.deco-seed-05 { top: 200px; left: calc(50% + 256px); width: 119px; height: 121.5px; }
.deco-seed-06 { top: 359px; left: calc(50% + 570px); width: 107.55px; height: 106.95px; display: flex; align-items: center; justify-content: center; }
.deco-seed-06 img { flex: none; width: 77.7px; height: 79.34px; transform: rotate(-60deg); }
.deco-seed-07 { top: 271px; left: calc(50% - 687px); width: 109.57px; height: 108.26px; display: flex; align-items: center; justify-content: center; }
.deco-seed-07 img { flex: none; width: 88px; height: 89.86px; transform: rotate(75deg); }

/* ==========================================================================
   CTA
   ========================================================================== */
.sec-cta {
  position: relative;
  height: 451px;
  background: rgba(231, 226, 222, .8);
  overflow-x: clip;
}
.cta__bg {
  position: absolute;
  top: -176px;
  left: calc(50% - 108px);
  width: 1183px;
  height: 709px;
  max-width: none;
  object-fit: cover;
  opacity: .8;
}
.cta__couple {
  position: absolute;
  top: 54.55%;
  left: calc(50% + 508px);
  width: auto;
  height: 49.67%;
  aspect-ratio: 4096 / 2296;
  max-width: none;
  object-fit: cover;
  transform: translateX(-50%);
}
.sec-cta .inner { position: relative; z-index: 3; padding-top: 7px; }
.cta__txt { display: flex; flex-direction: column; gap: 20px; }
.cta__txt .tit-serif { color: #121212; }
.cta__txt p { font-size: 20px; line-height: 28px; }
.sec-cta .btn-more { margin-top: 40px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .visual__figures { left: auto; right: -20px; transform: scale(.62); transform-origin: right bottom; top: auto; bottom: 0; }
  .visual__inner { z-index: 4; }
  .feature__list { flex-wrap: wrap; justify-content: center; gap: 0 24px; }
  .feature__item { flex: 0 0 calc((100% - 48px) / 3); }
  .step__list { width: 50%; }
  .detail__grid { width: 50%; }
  .deco-seed-01, .deco-seed-02, .deco-seed-03 { display: none; }
}

@media (max-width: 1023px) {
  .tit-serif { font-size: 36px; line-height: 46px; }
  .visual { height: auto; }
  .visual__inner { padding-top: 140px; }
  .visual__figures { position: relative; right: auto; bottom: auto; top: auto; left: 50%; width: 100%; max-width: 700px; height: auto; aspect-ratio: 932 / 564; margin-top: 20px; transform: translateX(-50%); }

  .sec-step .inner, .sec-detail .inner { flex-direction: column; gap: 40px; }
  .step__list, .detail__grid { width: 100%; max-width: 588px; margin: 0 auto; }
  .detail__left { width: 100%; }
  .detail__circle { margin: 0 auto; }
  .deco-dandelion { display: none; }

  .cta__bg { left: auto; right: -300px; }
  .cta__couple { left: auto; right: -40px; height: 180px; top: auto; bottom: 0; transform: none; }
  .deco-seed-05, .deco-seed-06, .deco-seed-07, .deco-seed-04 { display: none; }
}

@media (max-width: 767px) {
  .tit-serif { font-size: 28px; line-height: 38px; }
  .visual__inner { padding-top: 110px; }
  .visual__desc { font-size: 17px; line-height: 26px; }
  .visual__sub { font-size: 14px; line-height: 20px; }
  .visual__btns { margin-top: 32px; }
  .visual__btns .btn-more { flex: 1; }

  .sec-step { padding-top: 64px; }
  .step__list { gap: 12px; }
  .step__col { gap: 28px; }
  .step-txt__tit { font-size: 17px; line-height: 24px; }
  .step-txt__num, .step-txt__desc { font-size: 14px; line-height: 20px; }

  .sec-detail { padding-top: 80px; }
  .detail__head p { font-size: 15px; line-height: 22px; }
  .detail__note { font-size: 13px; line-height: 20px; }

  .sec-feature { padding-top: 64px; }
  .feature__item { flex-basis: calc((100% - 24px) / 2); padding: 16px 0; }
  .feature__tit { font-size: 17px; line-height: 24px; }
  .feature__desc { font-size: 14px; line-height: 20px; }

  .headline { padding: 56px 0; }
  .headline__row { gap: 12px; }
  .headline__tit { font-size: 22px; line-height: 30px; }
  .headline__desc { margin-top: 14px; font-size: 15px; line-height: 22px; }
  .sec-headline { padding-top: 0; }

  .gift__head { flex-direction: column; align-items: flex-start; }
  .gift__head-txt { gap: 12px; }
  .gift__head-txt p { font-size: 15px; line-height: 22px; }
  .gift__head .slide-nav { align-self: flex-end; }
  .gift__track { --gift-size: 220px; --gift-gap: 16px; }
  .gift__over strong { font-size: 24px; line-height: 24px; }
  .btn-arrow { width: 44px; height: 44px; }

  .sec-cta { height: auto; padding-bottom: 200px; }
  .sec-cta .inner { padding-top: 48px; }
  .cta__txt p { font-size: 16px; line-height: 24px; }
  .cta__couple { height: 160px; }
}

/* ==========================================================================
   Motion - 메인 전용 (공통 모션은 common.css)
   ========================================================================== */
/* 비주얼 배경·피규어: 이미지가 다 받아진 뒤 시작, 피규어는 확대 없이 (깨짐 방지) */
.motion .visual { background: #000; }
.motion .visual__bg { opacity: 0; transition: opacity 1.8s var(--ease-soft); }
.motion .visual.is-in .visual__bg { opacity: 1; }
.motion .visual__figures .rv { scale: none; }

/* 배경: 천천히 다가오듯 */
.motion .cta__bg { opacity: 0; scale: 1.06; transition: opacity 2.4s var(--ease-soft), scale 4s var(--ease-soft); }
.motion .cta__bg.is-in { opacity: .8; scale: 1; }

/* 민들레씨: 바람에 흩날리듯 나타난 뒤 천천히 떠다님 (부모 .deco는 스크롤 패럴랙스) */
.deco__in { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.motion .deco { will-change: transform; }
.motion .deco__in {
  opacity: 0;
  transform: translate(-120px, 80px) rotate(-40deg) scale(.35);
  filter: blur(4px);
  transition:
    opacity 1.8s ease-out var(--sd, 0s),
    transform 2.8s cubic-bezier(.2, .7, .2, 1) var(--sd, 0s),
    filter 2.2s ease-out var(--sd, 0s);
}
.motion .deco.is-in .deco__in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  animation: seed-float var(--sf, 7s) ease-in-out calc(var(--sd, 0s) + 2.8s) infinite alternate;
}
.motion .deco-dandelion .deco__in { transform: translateY(40px) scale(.96); transform-origin: 50% 100%; }
.motion .deco-dandelion.is-in .deco__in { animation-name: dandelion-sway; animation-duration: 9s; }

@keyframes seed-float {
  from { translate: 0 0; rotate: 0deg; }
  to { translate: 12px -18px; rotate: 9deg; }
}
@keyframes dandelion-sway {
  from { rotate: -1.2deg; }
  to { rotate: 1.2deg; }
}
