/* ============================================================
   page-main — Figma 36:690
   시안 폭 1920 / 컨테이너 1600. 좁아지면 비율로 접힌다.
   ============================================================ */


/* ---------------- visual 36:765 (1920x1000) ---------------- */
.hero {
  position: relative; background: var(--hero-bg); overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(520px, 52.08vw, 1000px);
  /* 전역 mo(0.5s / 30px) 히어로 제외 — 기존 타이밍·진폭 유지 */
  --mo-base: 0.6s;
  --mo-enter: 0.6s;
  --mo-enter-shift: 64px;
  --mo-stagger: 70ms;
}
.hero__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-lg); position: relative;
}
.hero__text {
  display: flex; flex-direction: column; gap: var(--gap-md);
  flex: 0 1 auto; position: relative; z-index: 2;
  --hero-line-stagger: 200ms;
  --hero-h1-delay: 520ms;
  --hero-lead-delay: 980ms;
}
.hero__display { white-space: nowrap; }
.hero__display .l1,
.hero__display .l2 { display: block; line-height: 1; }
.hero__display .l1 { color: var(--ink); }
.hero__display .l2 { color: var(--brand); }
.hero__h1 {
  font-size: var(--fs-h1);
  line-height: 1.4;
  font-weight: 500;
}
.hero__h1.split { display: block; }
.hero__h1-line { display: block; }
.hero__h1-brand { font-weight: 700; color: var(--brand); }
.hero__lead { color: var(--ink); text-transform: uppercase; }

html.js-motion .hero [data-mo] {
  --d: calc(var(--i, 0) * var(--mo-stagger));
  transition-duration: var(--mo-base), 0.42s, var(--mo-base), var(--mo-base);
}

html.js-motion .hero__lead[data-mo="up"] {
  --d: var(--hero-lead-delay);
}

html.js-motion .hero__display[data-motion="line-reveal"] .ln {
  overflow: hidden;
  padding-block: .32em;
  margin-block: -.32em;
  line-height: 1;
}

html.js-motion .hero__display[data-motion="line-reveal"] .ln > span,
html.js-motion .hero [data-motion="line-reveal"] .ln > span {
  display: block;
  /* padding-block 마스크 + 디스플레이 폰트 ascender — 등장 전 상단 노출 방지 */
  transform: translateY(calc(100% + 0.55em));
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--n, 0) * var(--hero-line-stagger));
}

html.js-motion .hero__display[data-motion="line-reveal"].is-in .ln > span {
  transform: none;
}

html.js-motion .hero [data-motion="word-cascade"][data-mo="fade"] {
  --d: var(--hero-h1-delay);
}

html.js-motion .hero .split .ch,
html.js-motion .hero .split .wd {
  transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-back);
  transition-delay: calc(var(--n, 0) * 34ms);
}

html.js-motion .hero [data-motion="word-cascade"].split .wd {
  transition-duration: 0.8s;
  transition-timing-function: var(--ease-back);
  transition-delay: calc(var(--hero-h1-delay) + var(--n, 0) * 60ms);
}

/* 시안: 이미지 그룹 1207x879 이 컨테이너 우측에서 시작해 화면 밖으로 흘러넘친다.
   비율 유지를 위해 폭 기준 aspect-ratio 박스 안에 % 좌표로 배치한다. */
.hero__art {
  position: relative; flex: 0 0 auto;
  width: 75.44%;                 /* 1207 / 1600 */
  aspect-ratio: 1207 / 879;
  margin-right: calc(var(--gutter) * -1);
  z-index: 1;
  pointer-events: none;
}
.hero__art-main {
  position: absolute; left: .9%; top: 0; width: 99.1%; height: 100%;
  object-fit: contain; object-position: right center;
}
.hero__ch { position: absolute; width: auto; }
.hero__ch--dodo {
  left: 8.3%;
  top: 25.7%;
  width: 19.5%;
  height: 29.85%;
  transform: rotate(-.27deg);
}
.hero__ch-img {
  position: absolute;
}
.hero__ch-img.img-36-773_01 {
  top: 0;
  left: 0;
  width: 70.8%;
  height: auto;
}
.hero__ch-img.img-36-773_02 {
  top: 19.8%;
  left: 29.3%;
  width: 79%;
  height: auto;
  transform-origin: left bottom;
}
html.js-motion .hero__ch-img.img-36-773_02 {
  animation: hero-dodo-arm 2.4s ease-in-out infinite;
}
@keyframes hero-dodo-arm {
  0%, 100% { rotate: 0deg; }
  50%      { rotate: -4deg; }
}
.hero__ch--leo  { 
  left: 0;
    top: 68.4%;
    width: 13.9%;
    height: 23.2%;
 }
 .hero__ch-img.img-36-774_01 {
  top: 0;
    left: 0;
    width: 93.7%;
    height: auto;
}
.hero__ch-img.img-36-774_02 {
  top: 0;
    left: 0;
    width: 93.7%;
    height: auto;
    opacity: 0;
}
html.js-motion .hero__ch-img.img-36-774_02 {
  opacity: 1;
}
html.js-motion .hero__ch-img.img-36-774_01 {
  animation: hero-leo-blink-open 3s linear infinite;
}
@keyframes hero-leo-blink-open {
  0%, 85.714% { opacity: 1; }
  85.715%, 99.999% { opacity: 0; }
  100% { opacity: 1; }
}
.hero__ch-img.img-36-774_03 {
  bottom: 7%;
    right: 1%;
    width: 31.4%;
    height: auto;
    transform-origin: top left;
}
html.js-motion .hero__ch-img.img-36-774_03 {
  animation: hero-leo-arm 1.8s ease-in-out infinite;
}
@keyframes hero-leo-arm {
  0%, 100% { rotate: 0deg; }
  50%      { rotate: -10deg; }
}
.hero__ch--jack { 
  left: 19.3%;
    top: 67.4%;
    width: 14.7%;
    height: 25.7%;
 }
 .hero__ch-img.img-36-775_01 {
  top: 5%;
    right: 0;
    width: 75%;
    height: auto;
}
.hero__ch-img.img-36-775_02 {
  top: -0.5%;
  right: 40.1%;
    width: 64%;
    height: auto;
    transform-origin: right bottom;
}
html.js-motion .hero__ch-img.img-36-775_02 {
  animation: hero-jack-arm 1.8s ease-in-out infinite;
}
@keyframes hero-jack-arm {
  0%, 100% { rotate: 0deg; }
  50%      { rotate: 4deg; }
}
.hero__ch--baro { 
  top: 30.2%;
    right: 25%;
    width: 10.2%;
    height: 13%;
 }
.hero__ch-img.img-36-776_01 {
  top: 0;
    right: 0;
    width: 70%;
    height: auto;
}
.hero__ch-img.img-36-776_02 {
  top: -12px;
    right: 62%;
    width: 30%;
    height: auto;
    transform-origin: right bottom;
}
html.js-motion .hero__ch-img.img-36-776_02 {
  animation: hero-baro-arm 1.8s ease-in-out infinite;
}
@keyframes hero-baro-arm {
  0%, 100% { rotate: 0deg; }
  50%      { rotate: -7deg; }
}

/* ---- hero 캐릭터 둥둥 — 캐릭터별 리듬·궤적 분리 (core floaty 대체) ---- */
html.js-motion .hero__ch--dodo.float-y {
  animation: hero-float-dodo 6.4s ease-in-out infinite;
  animation-delay: -1.1s;
}
html.js-motion .hero__ch--baro.float-y {
  animation: hero-float-baro 5.8s ease-in-out infinite;
  animation-delay: -2.7s;
}
html.js-motion .hero__ch--leo.float-y {
  animation: hero-float-leo 7.2s ease-in-out infinite;
  animation-delay: -4.2s;
}
html.js-motion .hero__ch--jack.float-y {
  animation: hero-float-jack 6.9s ease-in-out infinite;
  animation-delay: -0.6s;
}
@keyframes hero-float-dodo {
  0%, 100% { transform: rotate(-0.27deg) translate(0, 0); }
  28%      { transform: rotate(0.6deg) translate(2px, -11px); }
  55%      { transform: rotate(-0.5deg) translate(-2px, -17px); }
  78%      { transform: rotate(1deg) translate(1px, -8px); }
}
@keyframes hero-float-baro {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30%      { translate: -3px -9px; rotate: -1deg; }
  58%      { translate: 2px -15px; rotate: 0.7deg; }
  82%      { translate: -1px -6px; rotate: -0.4deg; }
}
@keyframes hero-float-leo {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25%      { translate: 2px -8px; rotate: 0.5deg; }
  52%      { translate: -2px -14px; rotate: -0.8deg; }
  75%      { translate: 1px -10px; rotate: 0.3deg; }
}
@keyframes hero-float-jack {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  32%      { translate: -2px -10px; rotate: 0.9deg; }
  61%      { translate: 3px -16px; rotate: -0.6deg; }
  84%      { translate: -1px -7px; rotate: 0.4deg; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-motion .hero__ch--dodo.float-y {
    animation: none !important;
    transform: rotate(-0.27deg) !important;
  }
  html.js-motion .hero__ch--baro.float-y,
  html.js-motion .hero__ch--leo.float-y,
  html.js-motion .hero__ch--jack.float-y {
    animation: none;
    translate: none;
    rotate: none;
  }
  html.js-motion .hero__ch-img.img-36-773_02 {
    animation: none;
    rotate: none;
  }
  html.js-motion .hero__ch-img.img-36-776_02 {
    animation: none;
    rotate: none;
  }
  html.js-motion .hero__ch-img.img-36-775_02 {
    animation: none;
    rotate: none;
  }
  html.js-motion .hero__ch-img.img-36-774_03 {
    animation: none;
    rotate: none;
  }
  html.js-motion .hero__ch-img.img-36-774_01 {
    animation: none;
    opacity: 1;
  }
  html.js-motion .hero__ch-img.img-36-774_02 {
    opacity: 0;
  }
}

@media (max-width: 1023px) {
  .hero { min-height: 0; padding-block: var(--sec-y) 0; }
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero__art { width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); margin-top: -5vw; }
  .hero__art-main { object-position: center; }
}

/* ---------------- sec01 36:777 ---------------- */
.sec01__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap-xl); }
.sec01__sticky {
  position: sticky; top: calc(var(--header-h) + 24px);
  flex: 0 0 40.4%; max-width: 646px;
  display: flex; flex-direction: column; gap: clamp(40px, 10.4vw, 200px);
  align-self: flex-start;
}
@media (min-width: 1024px) and (max-height: 1000px) {
  .sec01__sticky { gap: 4.4vw; }
}
.sec01__title { display: flex; flex-direction: column; gap: var(--gap-lg); align-items: flex-start; }
.sec01__sub { font-size: var(--fs-subtitle); color: var(--ink-2); }
.sec03 .sec-title p,
.sec04 .sec-title p { color: var(--ink-2); }
.sec01__btn {
  border-width: 2px;
  font-weight: 700;
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}
@media (min-width: 1024px) { .sec01__btn { width: 297px; } }  /* 시안 36:784 */
.sec01__img {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 400 / 415;
  overflow: visible;
}
.sec01__shape {
  position: absolute;
  z-index: 1;
  right: -16%;
  bottom: 7%;
  width: 63%;
  height: auto;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: reduce) {
  .sec01__shape { transition: none; }
}
.sec01__bear {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 100%;
  height: auto;
}
/* sec01 장식 3개 — 시안 36:789 */
.sec01-sh--p2  { left: 3%;  top: 9%;  --rot: 0deg; }
.sec01-sh--sq1 { left: 1%;  top: 79%; --rot: -16deg; }
.sec01-sh--p1  { left: 91%; top: 77%; --rot: 20deg; }

.sec01__list {
  flex: 1 1 0;
  min-width: 0;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
/* 시안 카드 850x550 — 자식 좌표를 % 로 옮겨 어느 폭에서도 비율이 유지된다 */
.sec01__card {
  position: relative; border-radius: var(--r-lg);
  aspect-ratio: 850 / 550; overflow: hidden;
}
html.js-motion .sec01__card[data-mo="up"] {
  opacity: 0;
  transform: translateY(30px);
  transition-property: opacity, transform;
  transition-duration: 0.5s, 0.5s;
  transition-timing-function: var(--ease-enter), var(--ease-enter);
  transition-delay: var(--d, 0ms);
}
html.js-motion .sec01__card[data-mo="up"].is-in {
  opacity: 1;
  transform: none;
}
/* snap 연동: 활성 li는 1, 나머지는 0.3 */
html.js-motion .sec01--snap .sec01__card[data-mo="up"] {
  opacity: 0.3;
  transform: none;
  pointer-events: none;
  transition-property: opacity;
  transition-duration: 0.55s;
  transition-timing-function: var(--ease-enter);
}
html.js-motion .sec01--snap .sec01__card[data-mo="up"].is-active {
  opacity: 1;
  pointer-events: auto;
}
.sec01__card.is-in {
  transition-property: opacity, transform;
  transition-duration: 0.5s, var(--mo-base);
  transition-timing-function: var(--ease-enter), var(--ease-out);
}
.sec01__card:hover { transform: translateY(-8px); }
html.js-motion .sec01--snap .sec01__card.is-active:hover { transform: none; }
html.js-motion .sec01--snap .sec01__card[data-mo="up"]:not(.is-active):hover {
  transform: none;
}
.sec01__card--green  { background: #e8fad8; }
.sec01__card--amber  { background: #fff4d8; }
.sec01__card--sky    { background: #dff2ff; }
.sec01__card--violet { background: #f1ecfa; }
.sec01__card-text {
  position: absolute; left: 5.88%; top: 12.73%; right: 5.88%; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
}
.sec01__card-text .body { color: var(--ink-2); }
.sec01__card-text--sm { font-size: clamp(14px, .89vw, 20px); }
.sec01__card-img {
  position: absolute; z-index: 1; height: auto;
  object-fit: contain;
}
.sec01__card--green  .sec01__card-img { left: 33.29%; top: 15.27%; width: 62.94%; }
.sec01__card--amber  .sec01__card-img { left: 31.18%; top:  2.36%; width: 68.82%; }
.sec01__card--sky    .sec01__card-img { left: 19.06%; top:  4.36%; width: 80.94%; }
.sec01__card--violet .sec01__card-img { left: 22.24%; top: 32.73%; width: 71.88%; }
.sec01__card-media { display: contents; }

@media (max-width: 1023px) {
  .sec01__inner { flex-direction: column; overflow: hidden; } /* sticky off — shape 가로 넘침 차단 */
  .sec01__sticky { position: static; flex: none; max-width: none; width: 100%;
                   flex-direction: row; align-items: center; gap: var(--gap-lg); }
  .sec01__img { flex: 0 0 40%; }
  .sec01__list { width: 100%; max-width: none; }
}
@media (max-width: 767px) {
  .sec01__sticky { flex-direction: column; align-items: center; }
  .sec01__title { width: 100%; }
  .sec01__img { width: min(400px, 50vw); flex: none; }
  .sec01__card {
    aspect-ratio: auto;
    display: block;
    --sec01-card-pad-x: 20px;
    --sec01-card-pad-bottom: 20px;
    padding: 28px var(--sec01-card-pad-x) var(--sec01-card-pad-bottom);
  }
  .sec01__card-text { position: static; }
  .sec01__card-media {
    display: block;
    position: relative;
    width: 100%;
    margin: 16px 0 0;
    padding-bottom: 52%;
    overflow: visible;
  }
  .sec01__card-img,
  .sec01__card--green .sec01__card-img,
  .sec01__card--amber .sec01__card-img,
  .sec01__card--sky .sec01__card-img,
  .sec01__card--violet .sec01__card-img {
    position: absolute;
    left: auto;
    top: auto;
    right: calc(var(--sec01-card-pad-x) * -1);
    bottom: calc(var(--sec01-card-pad-bottom) * -1);
    width: auto;
    height: auto;
    margin: 0;
    object-fit: contain;
    object-position: bottom right;
  }
}

/* ---------------- sec02 36:832 ---------------- */
.sec02 { background: #ffd5d6; overflow: hidden; }
.sec02 .container { display: flex; flex-direction: column; gap: var(--gap-xl); }
/* 36:833 / 36:834 — 시안: 750×750 원, 흰색 알파 .2(자산 실측 51/255), 섹션이 잘라낸다.
   좌표는 시안 1920 기준 px 를 vw 로 환산(섹션이 전폭이라 vw 가 곧 섹션 % 다).
   예전에는 자산이 "섹션에 잘린 720×450 렌더"였고 right/bottom 기준이라 240px 어긋나 있었다. */
.sec02__deco {
  width:  min(39.0625vw, 750px);
  height: min(39.0625vw, 750px);
  /* 자산은 시안 페인트(흰색 알파 51/255)를 750×750 원본 크기로 복원한 것이다.
     예전 자산은 "섹션에 잘린 720×450 렌더"라 크기·비율이 시안과 달랐다. */
}
.sec02__deco--1 { left: min(62.5vw, 1200px);    top: max(-15.625vw, -300px); right: auto; }   /* 시안 1200,-300 */
.sec02__deco--2 { left: max(-14.375vw, -276px); top: min(24.7396vw, 475px); bottom: auto; }  /* 시안 -276,475 */
.sec02__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }
.sec02__card {
  display: block;
}
.sec02__card-link {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  padding: clamp(28px, 3.65vw, 70px) 10px 10px;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: none;
  overflow: hidden;
  transition: box-shadow var(--mo-base) var(--ease-out);
}
.sec02__card-link:hover {
  box-shadow: 0 22px 40px rgba(0, 0, 0, .10);
}
.sec02__card-text { padding-inline: clamp(14px, 1.56vw, 30px); display: flex; flex-direction: column; gap: var(--gap-sm); }
.sec02__card-text .body { color: var(--ink-2); }
.sec02__card-img { border-radius: var(--r-md); aspect-ratio: 365 / 220; }
.sec02__card-img > img { border-radius: var(--r-md); }
.sec02__card-img:not(.sec02__card-img--layered)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0);
  transition: background var(--mo-base) var(--ease-out);
  pointer-events: none;
}
.sec02__card-link:hover .sec02__card-img:not(.sec02__card-img--layered)::before {
  background: rgba(0, 0, 0, 0.22);
}
.sec02__card-img:not(.sec02__card-img--layered)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--brand) 90%, transparent);
  background-image: url("../assets/img/ico_video_play.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  pointer-events: none;
  transition: background-color var(--mo-base) var(--ease-out);
}
.sec02__card-link:hover .sec02__card-img:not(.sec02__card-img--layered)::after,
.sec02__card-link:focus-visible .sec02__card-img:not(.sec02__card-img--layered)::after {
  background-color: #ff787a;
}
/* 시안 36:854 / 36:860 — 같은 이미지를 배경(cover)으로 깔고 rgba(0,0,0,.6) 을 덮은 뒤
   그 위에 같은 이미지를 contain 으로 얹는다. 오버레이는 의사요소라 DOM 을 늘리지 않는다. */
.sec02__card-img--layered { display: grid; place-items: center; }
.sec02__card-img--layered .is-bg { position: absolute; inset: 0; width: 100%; height: 100%;
                                   object-fit: cover; }
.sec02__card-img--layered::after { content: ""; position: absolute; inset: 0;
                                   background: rgba(0, 0, 0, .6); z-index: 0; }
.sec02__card-img--layered .is-front { position: relative; z-index: 1; width: 69.86%; height: calc(100% - 20px);  /* 시안 36:855 = 255×(220-py10*2) */
                                      object-fit: contain; border-radius: var(--r-md); }
@media (max-width: 1023px) { .sec02__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .sec02__list { grid-template-columns: 1fr; } }

/* sec02 video modal */
.sec02-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, 0.72);
}
.sec02-video-modal[hidden] { display: none; }
.sec02-video-modal__panel {
  --sec02-modal-x: clamp(20px, 3vw, 32px);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: min(920px, 100%);
  margin: auto;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(56px, 7vw, 72px) var(--sec02-modal-x) clamp(20px, 3vw, 32px);
}
.sec02-video-modal__close {
  position: absolute;
  top: clamp(12px, 2vw, 16px);
  right: var(--sec02-modal-x);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  cursor: pointer;
}
.sec02-video-modal__close:hover { background: rgba(0, 0, 0, 0.1); }
.sec02-video-modal__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.sec02-video-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.sec02-video-modal__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(16px, 2vw, 24px);
  padding-right: 48px;
}
.sec02-video-modal__desc { color: var(--ink-2); margin: 0; }
body.is-sec02-video-open { overflow: hidden; }

/* ---------------- sec03 36:862 ---------------- */
.sec03 .container { display: flex; flex-direction: column; gap: var(--gap-lg); }
/* 시안 36:931 — sec03__list 우상단, 리스트 top에 발 붙여 서 있는 느낌 */
.sec03__content { position: relative; }
.sec03__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.82vw, 35px);
}
@media (min-width: 1024px) {
  .sec03__list { padding-bottom: 100px; }
  .sec03__card--photo { position: relative; top: 100px; }
}
.sec03__mascot-wrap {
  position: absolute;
  top: 0;
  right: 3.125%;              /* (1600 - 1378 - 172) / 1600 */
  width: min(10.75%, 172px);  /* 172 / 1600 */
  aspect-ratio: 172 / 185;
  pointer-events: none;
  z-index: 3;
}
html.js-motion .sec03__mascot-wrap { opacity: 0; }
html.js-motion .sec03__mascot-wrap.is-in { opacity: 1; }
.sec03__mascot {
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateY(calc(-100% + 100% * 10 / 185)); /* 시안 185px 높이 · 10px — 크기에 비례 */
}
.sec03__mascot-body {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66.86%;              /* 115 / 172 */
  height: auto;
}
.sec03__mascot-arm {
  position: absolute;
  right: 52%;
  top: 0;
  width: 47.09%;              /* 81 / 172 */
  height: auto;
  transform-origin: right bottom;
}
html.js-motion .sec03__mascot-arm {
  animation: sec03-mascot-arm 1.8s ease-in-out infinite;
}
@keyframes sec03-mascot-arm {
  0%, 100% { rotate: 13deg; }
  50%      { rotate: 0deg; }
}
.sec03__card { position: relative; border-radius: var(--r-lg); overflow: hidden;
               max-width: 510px; width: 100%;
               padding: 20px 20px clamp(28px, 2.6vw, 50px);
               display: flex; flex-direction: column; gap: var(--gap-md);
               transition: transform var(--mo-base) var(--ease-out), box-shadow var(--mo-base) var(--ease-out); }
.sec03__card:hover { transform: translateY(-10px); box-shadow: 0 22px 40px rgba(0,0,0,.12); }
.sec03__card--pink  { background: #fff4f4; }
.sec03__card--lemon { background: #faf6d3; }
.sec03__card--photo { background: #f5f5f5; }
.sec03__card-hover-bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: opacity var(--mo-base) var(--ease-out);
}
.sec03__card--pink  .sec03__card-hover-bg { background-image: url("../assets/img/36-869.png"); }
.sec03__card--photo .sec03__card-hover-bg { background-image: url("../assets/img/36-874.png"); }
.sec03__card--lemon .sec03__card-hover-bg { background-image: url("../assets/img/36-880.png"); }
.sec03__card:hover .sec03__card-hover-bg,
.sec03__card:focus-within .sec03__card-hover-bg { opacity: 1; }
.sec03__card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  opacity: 0;
  background: rgba(0, 0, 0, .5);
  transition: opacity var(--mo-base) var(--ease-out);
  pointer-events: none;
}
.sec03__card:hover::after,
.sec03__card:focus-within::after { opacity: 1; }
.sec03__card-img {
  position: relative; z-index: 1;
  aspect-ratio: 470 / 300; border-radius: var(--r-md); overflow: hidden;
  transition: opacity var(--mo-base) var(--ease-out);
}
.sec03__card-img > img { border-radius: var(--r-md); }
.sec03__card:hover .sec03__card-img,
.sec03__card:focus-within .sec03__card-img { opacity: 0; }
.sec03__quote {
  position: relative; z-index: 2;
  padding-inline: 20px;
  display: flex; flex-direction: column; gap: var(--gap-sm);
  transition: transform var(--mo-base) var(--ease-out);
}
.sec03__card:hover .sec03__quote,
.sec03__card:focus-within .sec03__quote { transform: translateY(-6px); }
.sec03__quote p,
.sec03__quote cite {
  transition: color var(--mo-base) var(--ease-out);
}
.sec03__quote p { font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); }
.sec03__quote cite { font-style: normal; font-weight: 700; font-size: var(--fs-body); color: var(--ink); }
.sec03__card:hover .sec03__quote p,
.sec03__card:hover .sec03__quote cite,
.sec03__card:focus-within .sec03__quote p,
.sec03__card:focus-within .sec03__quote cite { color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .sec03__card-hover-bg, .sec03__card-img, .sec03__card::after,
  .sec03__quote, .sec03__quote p, .sec03__quote cite { transition: none; }
  html.js-motion .sec03__mascot-arm { animation: none; rotate: 0deg; }
}
@media (max-width: 1023px) {
  .sec03__list { grid-template-columns: 1fr; justify-items: center; }
  .sec03__mascot-wrap {
    right: 0;
    left: 0;
    width: 100%;
    max-width: 510px;
    height: fit-content;
    margin-inline: auto;
    aspect-ratio: auto;
  }
  .sec03__mascot {
    position: absolute;
    top: 0;
    right: 0;
    width: min(20.24%, 103px); /* 172 / 510 · 60% */
    aspect-ratio: 172 / 185;
    height: auto;
    margin: 0;
    transform: translate(19%, -10%);
  }
  .sec03__mascot-body {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-left: 0;
    width: 66.86%;
    height: auto;
  }
}
/* 좁은 폭에서는 장식 캐릭터가 섹션 헤딩을 덮는다 — 시안 반응형 의도대로 숨긴다 */
/* @media (max-width: 767px) { .sec03__mascot-wrap { display: none; } } */

/* ---------------- sec04 36:995 ---------------- */
.sec04 { background: #ffeaea; overflow: hidden; }
.sec04 .container { display: flex; flex-direction: column; gap: var(--gap-lg); }
.sec04 .sec-title .btn--solid { border-width: 2px; font-weight: 700; }
.sec04 .sec-title .btn--solid::before { background: var(--white); }
.sec04 .sec-title .btn--solid:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--brand);
  box-shadow: none;
}
.sec04__deco--1 { width: 56.03%; aspect-ratio: 1; object-fit: contain; }  /* 시안 bbox 1075.69 정사각 */
.sec04__deco--2 { width: 57.40%; aspect-ratio: 1; object-fit: contain; }  /* 시안 bbox 1102.05 정사각 */
.sec04__deco--1 { left: 50%; top: -48px; }
.sec04__deco--2 { left: 3.72%; top: 245px; }
.sec04__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); align-items: start; }
.sec04__item { display: flex; flex-direction: column; gap: var(--gap-md); align-items: center; text-align: center; }
.sec04__thumb {
  position: relative;
  width: clamp(180px, 15.6vw, 300px); aspect-ratio: 1; border-radius: 500px;  /* 시안 값 그대로 */
  background: var(--white); overflow: hidden;
  transition: transform var(--mo-base) var(--ease-back), box-shadow var(--mo-base) var(--ease-out);
}
/* 시안 좌표(300x300 프레임 기준)를 % 로 옮긴다 — 어느 폭에서도 비율이 같다 */
.sec04__thumb > img { position: absolute; }
.sec04__thumb--a > img { left: 13.53%; top: 25.14%; width: 72.93%; height: 49.73%; }
.sec04__thumb--b > img { left:  3.83%; top:  7.00%; width: 92.33%; height: 86.00%; }
.sec04__thumb--c > img { left:  6.33%; top:  9.50%; width: 87.33%; height: 81.00%; }
.sec04__thumb--d > img { left:  8.17%; top: 11.83%; width: 83.67%; height: 76.33%; }
.sec04__item:hover .sec04__thumb { transform: translateY(-10px) scale(1.04); box-shadow: 0 20px 36px rgba(0,0,0,.12); }
.sec04__thumb img { object-fit: cover; }
.sec04__thumb img.has-shadow { box-shadow: 2px 10px 20px rgba(0, 0, 0, .1); }  /* 시안 36:1028 */
.sec04__text { display: flex; flex-direction: column; gap: 10px; }
.sec04__text .body { color: var(--ink-2); }
@media (max-width: 1023px) { .sec04__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .sec04__list { grid-template-columns: 1fr; } }

/* ---------------- sec05 36:1057 ---------------- */
.sec05 {
  position: relative; overflow: hidden; isolation: isolate;
  background: #eb3f3b;                     /* 시안 배경 실측 rgb(235,63,59) */
  color: var(--white);
  min-height: clamp(560px, 62.5vw, 1200px);
  padding-block: var(--sec-y);
  display: flex; flex-direction: column; align-items: center;
}

/* 36:1072 — 시안 750×750 원 · 흰색 알파 .0588(자산 실측 15/255) · left 1481 / top -266.
   예전에는 "섹션에 잘린 439×484 렌더"에 opacity .12 를 또 곱해 사실상 보이지 않았고
   높이가 825px 로 늘어나 있었다(실측). 원은 CSS 로 그리고 잘림은 섹션이 한다. */
.sec05__deco--circle {
  width:  min(39.0625vw, 750px); height: min(39.0625vw, 750px);
  /* 자산은 시안 페인트(흰색 알파 15/255)를 750×750 원본 크기로 복원한 것이다. */
  left: min(77.1354vw, 1481px); top: max(-13.8542vw, -266px); right: auto;
}
/* 36:1073 — 786 상자를 -62.83deg 회전한 둥근 삼각형. 자산은 섹션에 잘린 렌더(416×584)이고
   섹션 렌더와의 최소오차 정합으로 위치를 확정했다(left 0 / top 244 · 평균오차 1.68/255).
   예전에는 1556×1779 로 3.7배 커져 있었다(실측). */
.sec05__deco--tri {
  width: min(21.6667vw, 416px); height: min(30.4167vw, 584px);
  left: 0; top: min(12.7083vw, 244px);
}
.sec05__cast {
  /* [E-15] ★ 가운데 정렬에 `translate` 를 쓰면 안 된다 — 진입이 끝난 요소는 `html */
  position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto;
  width: min(1920px, 108%); max-width: none; height: auto;
  object-fit: contain; object-position: bottom center; z-index: 1; pointer-events: none;
}
.sec05__inner { position: relative; z-index: 2; display: flex; flex-direction: column;
                align-items: center; gap: var(--gap-xl); text-align: center; }
.sec05__h { color: var(--white); line-height: 1.4; }
.sec05__h-line { display: block; }
.sec05__btns { display: flex; gap: var(--gap-md); flex-wrap: wrap; justify-content: center; }
.sec05__btns .btn { min-width: clamp(160px, 11.5vw, 220px); border-width: 2px; font-weight: 700; }
@media (max-width: 767px) {
  .sec05 { min-height: 0; padding-bottom: min(78vw, 420px); }
  .sec05__btns .btn { width: 100%; }
}


/* 시안이 정의한 줄바꿈을 지킨다 (넓은 폭에서만 · 좁아지면 자연 줄바꿈 허용) */
@media (min-width: 1024px) { .nb { white-space: nowrap; } }

/* 히어로 이미지 축: 겉(clip 리빌) + 속(ken-burns) 을 분리해 transform 충돌을 없앤다 */
.hero__art-frame { position: absolute; left: 0; top: 0; width: 100%; height: 100%;
                   display: block; overflow: hidden; }
.hero__art-frame .hero__art-main { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__h1 .wd { white-space: pre; }

/* 히어로 이미지: 관찰(frame) / 자르기(clip) / 상시모션(img) 을 층으로 분리한다 */
.hero__art-clip { position: absolute; inset: 0; display: block; overflow: hidden; }
.hero__art-clip > .hero__art-main { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art-main:not(.img_main_hero_cloud_01):not(.img_main_hero_cloud_02) { animation: none !important; }
.hero__art-frame .hero__art-main.img_main_hero_kids {
  width: 85%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero__art-frame .hero__art-main.img_main_hero_tablet {
  width: 29.9%;
    height: auto;
    top: 49%;
    left: 4%;
}
.hero__art-frame .hero__art-main.img_main_hero_cloud_01 {
  width: 8.8%;
    height: auto;
    top: 18%;
    right: 23%;
    left: auto;
}
.hero__art-frame .hero__art-main.img_main_hero_cloud_02 {
  width: 5.9%;
    height: auto;
    top: 29%;
    right: 19%;
    left: auto;
}
html.js-motion .hero__art-frame .hero__art-main.img_main_hero_cloud_01 {
  animation: hero-cloud-drift 10s ease-in-out infinite;
  animation-delay: -2s;
}
html.js-motion .hero__art-frame .hero__art-main.img_main_hero_cloud_02 {
  animation: hero-cloud-drift 10s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes hero-cloud-drift {
  0%, 100% { translate: 0 0; }
  28%      { translate: 26px 0; }
  55%      { translate: 40px 0; }
  78%      { translate: 20px 0; }
}

@media (max-width: 1023px) {
  .hero__art-frame { right: 0; left: auto; width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-motion .hero__art-frame .hero__art-main.img_main_hero_cloud_01,
  html.js-motion .hero__art-frame .hero__art-main.img_main_hero_cloud_02 {
    animation: none;
    translate: none;
  }
}