/* ⑫ 납품원가절감 — 크림 한지 (시안 y 10444~11560, 높이 1116). 트럭은 아래 구역(⑬)으로 95px 걸쳐 내려간다 */
.s12 {
  --s12-paper: #f3edda;
  --s12-dot-text: #efdc94;
  background: var(--s12-paper);
  color: #000;
  z-index: 2;
  overflow: clip visible;
}
.s12-spoon { pointer-events: none; }
.s12-spoon img { width: 100%; height: auto; }
.s12-dots { display: flex; justify-content: center; }
.s12-dots span {
  width: 49px; height: 49px; border-radius: 50%; background: var(--c-green); color: var(--s12-dot-text);
  font: 900 22px/49px var(--f-display); text-align: center; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.s12-dots span + span { margin-left: -5px; }
.s12-title { color: #000; }
.s12-green { color: var(--c-green); }
.s12-desc { color: #222; letter-spacing: -0.05em; }
.s12-badges { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.s12-badge {
  display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 50%;
  color: #fff; font: 700 27px/32px var(--f-body); letter-spacing: -0.05em;
}
.s12-badge-g { background: var(--c-green); }
.s12-badge-k { background: #000; }
.s12-pill { background: var(--c-khaki); color: #000; text-align: center; font: 700 22px/46px var(--f-body); letter-spacing: -0.04em; border-radius: 12px; }
.s12-pill b { display: inline-block; font-weight: 700; }
.s12-truck { pointer-events: none; }

/* 움직임: 연기 / DOWN·UP 강조 / 트럭 오른쪽에서 등장 */
.s12-smoke { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 45%, rgba(255,255,255,0) 70%); filter: blur(6px); animation: s12-smoke 5s ease-in-out infinite; }
.s12-haze { position: absolute; left: 52%; top: 52%; width: 40%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0)); filter: blur(6px); }
.s12-smoke-1 { left: 44%; top: 46%; width: 120px; height: 120px; }
.s12-smoke-2 { left: 56%; top: 38%; width: 90px; height: 90px; animation-delay: 1.6s; }
.s12-smoke-3 { left: 36%; top: 40%; width: 100px; height: 100px; animation-delay: 3.2s; }
@keyframes s12-smoke {
  0% { transform: translate(0, 30px) scale(.6); opacity: 0; }
  25% { opacity: .9; }
  100% { transform: translate(18px, -150px) scale(1.6); opacity: 0; }
}
.js .s12-pill.in { animation: pop .6s ease-out both; }
.js .s12-pill-down.in b { animation: s12-down 1.6s ease-in-out .6s infinite; }
.js .s12-pill-up.in b { animation: s12-up 1.6s ease-in-out .6s infinite; }
@keyframes s12-down { 0%, 100% { transform: none; } 40% { transform: translateY(5px); color: #b3261e; } 60% { transform: translateY(3px); } }
@keyframes s12-up { 0%, 100% { transform: none; } 40% { transform: translateY(-6px); color: var(--c-green); } 60% { transform: translateY(-3px); } }
.js .s12-truck.in { animation: s12-drive 1.6s cubic-bezier(.16,.84,.3,1) both; }
@keyframes s12-drive {
  0% { transform: translateX(105%); }
  82% { transform: translateX(-10px); }
  92% { transform: translateX(3px) rotate(-.4deg); }
  100% { transform: none; }
}

/* ---------- PC: 시안 좌표 (가운데 960 기준) ---------- */
@media (min-width: 1200px) {
  .s12 { height: 1116px; background: var(--s12-paper) url(../assets/s12/bg.jpg) center top / 1920px auto no-repeat; }
  .s12-spoon { position: absolute; z-index: 1; left: calc(50% - 960px); top: 0; width: 540px; height: 566px; }
  .js .s12-spoon { animation: s12-float 6s ease-in-out infinite; }
  @keyframes s12-float { 0%, 100% { transform: none; } 50% { transform: translateY(-6px) rotate(-.6deg); } }
  .s12-head { position: absolute; z-index: 2; left: 0; right: 0; top: 128px; text-align: center; }
  .s12-title { margin-top: 22px; font-size: 62px; line-height: 72px; letter-spacing: -0.035em; }
  .s12-desc { margin-top: 19px; font-size: 20px; line-height: 30px; }
  .s12-dish { position: absolute; z-index: 2; left: 0; right: 0; top: 467px; }
  .s12-badges { gap: 19px; }
  .s12-badge { width: 161px; height: 161px; }
  .s12-bowl { display: none; }
  .s12-pill { position: absolute; z-index: 2; top: 612px; width: 272px; height: 46px; margin: 0; }
  .s12-pill-down { left: max(20px, calc(50% - 719px)); }
  .s12-pill-up { right: max(20px, calc(50% - 718px)); }
  .s12-truck { position: absolute; z-index: 3; left: calc(50% + 410px); top: 791px; width: 550px; height: 420px; }
}

/* ---------- 좁은 화면: 위아래로 쌓기 ---------- */
@media (max-width: 1199px) {
  .s12 { padding: 64px 0 0; overflow: hidden; background: var(--s12-paper) url(../assets/s12/paper.jpg) center / 460px auto repeat; }
  .s12-spoon { position: absolute; z-index: 0; left: -56px; top: -24px; width: clamp(120px, 27vw, 300px); }
  .s12-head { position: relative; z-index: 2; padding: 0 16px; text-align: center; }
  .s12-dots span { width: 40px; height: 40px; font-size: 18px; line-height: 40px; }
  .s12-title { margin-top: 18px; font-size: clamp(28px, 6.6vw, 56px); line-height: 1.25; letter-spacing: -0.06em; }
  .s12-desc { margin-top: 14px; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.6; }
  .s12-dish { position: relative; z-index: 2; margin-top: 28px; }
  .s12-badges { gap: 12px; position: relative; z-index: 2; }
  .s12-badge { width: clamp(108px, 24vw, 150px); height: clamp(108px, 24vw, 150px); font-size: clamp(18px, 4vw, 24px); line-height: 1.25; }
  .s12-bowl { display: block; width: 100%; max-width: 980px; height: auto; margin: -22px auto 0; }
  .s12-pill { display: inline-block; vertical-align: top; width: calc(50% - 22px); max-width: 300px; margin: 20px 0 0 16px; font-size: clamp(15px, 3.6vw, 20px); line-height: 44px; }
  .s12-pill-up { margin-left: 8px; }
  .s12-truck { position: relative; z-index: 2; display: block; width: min(440px, 82%); height: auto; margin: 14px 0 0 auto; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .s12 { text-align: center; }
  .s12-pill { margin-left: 8px; margin-right: 8px; }
  .s12-truck { margin-right: 0; }
}
