/* ① 상단 메뉴 + 첫 화면 — 브이웍스 시안 y 0~1000 (1920 기준 좌표를 --u 로 비례 축소) */
.s01 {
  --u: calc(min(100vw, 1920px) / 1920);
  --s01-bg: #000d06;
  --s01-pill: #005633;
  --s01-gold-num: #e2d38a;
  --s01-card-bg: #0b1911;
  position: relative;
  z-index: 3;
  overflow: visible;
  overflow-x: clip;
  color: var(--c-white);
  background:
    radial-gradient(ellipse 34% 46% at 50% 36%, rgba(0, 66, 36, .55), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .35) 34px, rgba(0, 0, 0, 0) 70px, rgba(0, 60, 32, .25) 104px, rgba(0, 0, 0, 0) 140px),
    linear-gradient(90deg, #013a1f 0%, #01301a 10%, #001a0d 22%, #000805 30%, #00170c 44%, #001a0e 56%, #000805 70%, #001c0f 80%, #01331b 92%, #013a1f 100%);
  background-color: var(--s01-bg);
}
.s01 a { text-decoration: none; }

/* 배경 금색 조각(콘페티) — 위에서 천천히 떨어진다 */
.s01 .s01-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.s01 .s01-bg .cf {
  position: absolute;
  left: calc(50% + (var(--x) - 960) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  background: linear-gradient(135deg, #f8dc8c 0%, #c48b2c 45%, #7a4a12 70%, #f1d488 100%);
  border-radius: 2px;
  opacity: var(--o);
  filter: blur(calc(var(--b) * 1px));
  transform: rotate(calc(var(--r) * 1deg));
  animation: s01-fall var(--t) linear infinite;
  animation-delay: var(--dl);
}
.s01 .s01-bg .cf-curl {
  background: none;
  border-radius: 50%;
  border-top: calc(7 * var(--u)) solid #d39a3b;
  border-left: calc(3 * var(--u)) solid rgba(214, 160, 66, .6);
}
@keyframes s01-fall {
  0% { transform: translate(0, calc((-80 - var(--y)) * var(--u))) rotate(calc(var(--r) * 1deg)); }
  50% { transform: translate(calc(26 * var(--u)), calc((460 - var(--y)) * var(--u))) rotate(calc(var(--r) * 1deg + 200deg)); }
  100% { transform: translate(calc(-10 * var(--u)), calc((1040 - var(--y)) * var(--u))) rotate(calc(var(--r) * 1deg + 380deg)); }
}

/* 상단 메뉴 */
.s01 .s01-top {
  position: absolute; z-index: 6; top: 0; left: 50%;
  width: calc(1920 * var(--u)); height: calc(118 * var(--u));
  transform: translateX(-50%);
}
.s01 .s01-logo { position: absolute; left: calc(120 * var(--u)); top: calc(24 * var(--u)); width: calc(116 * var(--u)); }
.s01 .s01-logo img { width: 100%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.s01 .s01-nav ul { position: absolute; left: calc(603 * var(--u)); top: calc(44 * var(--u)); display: flex; gap: calc(62 * var(--u)); margin: 0; padding: 0; list-style: none; }
.s01 .s01-nav a { display: block; font-size: max(11px, calc(17.5 * var(--u))); font-weight: 500; line-height: calc(30 * var(--u)); letter-spacing: -0.03em; color: #fff; white-space: nowrap; position: relative; }
.s01 .s01-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--c-gold); transform: scaleX(0); transition: transform .25s; }
.s01 .s01-nav a:hover::after, .s01 .s01-nav a:focus-visible::after { transform: scaleX(1); }
.s01 .s01-tel {
  position: absolute; right: calc(116 * var(--u)); top: calc(36 * var(--u));
  display: flex; align-items: center; gap: calc(4 * var(--u));
  font-size: calc(37 * var(--u)); line-height: 1; letter-spacing: -0.03em; color: var(--c-khaki);
}
.s01 .s01-tel svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); fill: currentColor; color: var(--c-khaki); }
.s01 .s01-burger { display: none; }

/* 첫 화면 무대 (1920×1000 좌표) */
.s01 .s01-stage { position: relative; width: calc(1920 * var(--u)); height: calc(1000 * var(--u)); margin: 0 auto; }
.s01 .s01-hero { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.s01 .s01-hero a, .s01 .s01-hero p { pointer-events: auto; }
.s01 .s01-crest { position: absolute; left: calc(876 * var(--u)); top: calc(155 * var(--u)); width: calc(162 * var(--u)); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.s01 .s01-title { position: absolute; inset: 0; }
.s01 .s01-title h1 { position: absolute; left: 0; right: 0; top: calc(262 * var(--u)); text-align: center; line-height: 1; letter-spacing: -0.045em; }
.s01 .s01-title h1 span { display: block; width: max-content; margin: 0 auto; }
.s01 .s01-title .t1 {
  font-size: calc(74 * var(--u)); line-height: calc(86 * var(--u));
  background: linear-gradient(180deg, #f7ebb4 10%, #e6d07f 52%, #c9a856 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-left: calc(6 * var(--u));
}
.s01 .s01-title .t2 { font-size: calc(76 * var(--u)); line-height: calc(90 * var(--u)); color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.s01 .s01-laurel { position: absolute; top: calc(238 * var(--u)); height: auto; }
.s01 .s01-laurel.l { left: calc(515 * var(--u)); width: calc(153 * var(--u)); }
.s01 .s01-laurel.r { left: calc(1258 * var(--u)); width: calc(187 * var(--u)); }
.s01 .s01-spark { position: absolute; width: calc(90 * var(--u)); height: calc(90 * var(--u)); border-radius: 50%; background: radial-gradient(circle, #fff 0 6%, rgba(255, 244, 205, .85) 12%, rgba(255, 220, 140, .25) 38%, rgba(255, 220, 140, 0) 70%); mix-blend-mode: screen; animation: s01-twinkle 2.6s ease-in-out infinite; }
.s01 .s01-spark::before, .s01 .s01-spark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0)); transform: translate(-50%, -50%); }
.s01 .s01-spark::after { transform: translate(-50%, -50%) rotate(90deg); width: 90%; }
.s01 .s01-spark.a { left: calc(556 * var(--u)); top: calc(212 * var(--u)); }
.s01 .s01-spark.b { left: calc(1322 * var(--u)); top: calc(388 * var(--u)); animation-delay: -1.3s; }
@keyframes s01-twinkle { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .55; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }

.s01 .s01-band {
  position: absolute; left: calc(672 * var(--u)); top: calc(456 * var(--u));
  width: calc(583 * var(--u)); height: calc(62 * var(--u)); margin: 0;
}
.s01 .s01-band-in {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; text-align: center; line-height: calc(62 * var(--u));
  border-radius: calc(31 * var(--u)); background: var(--s01-pill);
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, .35);
  font-size: calc(21.5 * var(--u)); font-weight: 700; letter-spacing: -0.045em; white-space: nowrap; color: #fff;
}
.s01 .s01-band b { color: var(--c-khaki-light); font-weight: 900; }
.s01 .s01-band-in::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); animation: s01-shine 4.5s ease-in-out infinite 1s; }
@keyframes s01-shine { 0% { left: -40%; } 45%, 100% { left: 120%; } }

/* 지점 카드 띠 */
.s01 .s01-cards { position: absolute; z-index: 2; left: 0; right: 0; top: calc(655 * var(--u)); height: calc(345 * var(--u)); }
.s01 .s01-cards::before { content: ""; position: absolute; inset: 0; border-top: 1px solid #005633; background: linear-gradient(180deg, rgba(0, 10, 5, .55), rgba(0, 18, 10, .35) 70%, rgba(0, 30, 17, .2)); }
.s01 .s01-track {
  position: relative; display: flex; gap: calc(26 * var(--u)); margin: 0; list-style: none;
  padding: calc(43 * var(--u)) calc(43 * var(--u)) calc(60 * var(--u)) calc((100% - 1920 * var(--u)) / 2 + 43 * var(--u));
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: calc((100% - 1920 * var(--u)) / 2 + 43 * var(--u)); scrollbar-width: none; outline: none;
}
.s01 .s01-track::-webkit-scrollbar { display: none; }
.s01 .s01-card {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  width: calc(384 * var(--u)); height: calc(227 * var(--u));
  padding: calc(48 * var(--u)) calc(62 * var(--u)) 0 calc(55 * var(--u));
  border: 1px solid rgba(47, 140, 92, .55); border-radius: calc(18 * var(--u));
  background-color: var(--s01-card-bg); background-repeat: no-repeat; background-size: cover; background-position: center;
  background-image: linear-gradient(160deg, #15301f 0%, #0b1911 60%, #08120c 100%);
  overflow: hidden; color: #fff;
  animation-delay: calc(var(--i) * 80ms) !important;
}
.s01 .s01-card.part-l { background-size: auto 100%; background-position: left center; }
.s01 .s01-card.part-r { background-size: auto 100%; background-position: right center; }
.s01 .s01-card.part-l::before, .s01 .s01-card.part-r::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.s01 .s01-card.part-l::before { background: linear-gradient(90deg, rgba(11, 25, 17, 0) 20%, var(--s01-card-bg) 70%); }
.s01 .s01-card.part-r::before { background: linear-gradient(270deg, rgba(11, 25, 17, 0) 55%, var(--s01-card-bg) 85%); }
.s01 .s01-card:not(.ph)::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, rgba(0, 0, 0, 0) 2px 46px); pointer-events: none; }
.s01 .s01-card > * { position: relative; }
.s01 .s01-card .nm { display: block; font-size: calc(31 * var(--u)); font-weight: 900; line-height: calc(37 * var(--u)); letter-spacing: -0.05em; margin-bottom: calc(21 * var(--u)); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.s01 .s01-card .r1, .s01 .s01-card .r2 { display: flex; justify-content: space-between; align-items: center; }
.s01 .s01-card .r1 { font-size: calc(17 * var(--u)); line-height: calc(27 * var(--u)); color: #e8e8e8; }
.s01 .s01-card .r1 span:last-child { font-size: calc(18.5 * var(--u)); color: #fff; }
.s01 .s01-card .r2 { font-size: calc(17 * var(--u)); line-height: calc(48 * var(--u)); color: #e8e8e8; }
.s01 .s01-card .r2 strong { font-size: calc(45 * var(--u)); line-height: 1; letter-spacing: -0.05em; color: var(--s01-gold-num); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

.s01 .s01-store { position: absolute; z-index: 3; left: calc(562 * var(--u)); top: calc(543 * var(--u)); width: calc(800 * var(--u)); margin: 0; }
.s01 .s01-store-clip { height: calc(457 * var(--u)); overflow: hidden; }
.s01 .s01-store img { width: 100%; height: auto; }
.s01 .s01-hfmark { position: absolute; right: 0; bottom: 0; width: 100%; height: 0; }
/* 추가 블록 없이 바로 ② 가 이어지면 시안처럼 그림 아래쪽이 크림 배경에 30px 걸친다 */
.s01:has(+ .s02) .s01-store-clip { height: calc(487 * var(--u)); }

/* ---------- 휴대폰·태블릿 ---------- */
@media (max-width: 1024px) {
  .s01 { overflow-x: clip; }
  .s01 .s01-bg .cf { left: calc(var(--x) / 1920 * 100%); top: calc(var(--y) / 1000 * 60%); width: calc(var(--w) * .45px); height: calc(var(--h) * .45px); }
  .s01 .s01-top { position: relative; left: auto; transform: none; width: 100%; height: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
  .s01 .s01-logo { position: static; width: 72px; }
  .s01 .s01-tel { position: static; margin-left: auto; font-size: 20px; gap: 4px; }
  .s01 .s01-tel svg { width: 18px; height: 18px; }
  .s01 .s01-burger { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(226, 200, 120, .5); border-radius: 10px; background: rgba(0, 0, 0, .3); cursor: pointer; order: 3; }
  .s01 .s01-burger i { display: block; width: 20px; height: 2px; background: var(--c-gold); transition: transform .2s, opacity .2s; }
  .s01 .s01-burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .s01 .s01-burger[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
  .s01 .s01-burger[aria-expanded="true"] i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .s01 .s01-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 7; display: none; background: rgba(2, 30, 16, .97); border-top: 1px solid rgba(226, 200, 120, .35); border-bottom: 1px solid rgba(226, 200, 120, .35); }
  .s01 .s01-nav.open { display: block; }
  .s01 .s01-nav ul { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 6px 12px 10px; }
  .s01 .s01-nav a { font-size: 16px; line-height: 48px; padding: 0 8px; }

  .s01 .s01-stage { width: auto; height: auto; display: flex; flex-direction: column; }
  .s01 .s01-hero { position: relative; inset: auto; padding: 14px 16px 26px; text-align: center; pointer-events: auto; }
  .s01 .s01-crest { position: static; display: block; width: 116px; margin: 0 auto 6px; }
  .s01 .s01-title { position: relative; inset: auto; padding: 0 52px; }
  .s01 .s01-title h1 { position: static; }
  .s01 .s01-title .t1, .s01 .s01-title .t2 { font-size: clamp(28px, 8.2vw, 52px); line-height: 1.22; }
  .s01 .s01-laurel { top: 50%; transform: translateY(-50%); }
  .s01 .s01-laurel.l { left: 0; width: 50px; }
  .s01 .s01-laurel.r { left: auto; right: 0; width: 60px; }
  .s01 .s01-spark { width: 54px; height: 54px; }
  .s01 .s01-spark.a { left: 6px; top: -18px; }
  .s01 .s01-spark.b { left: auto; right: 4px; top: auto; bottom: -14px; }
  .s01 .s01-band { position: relative; left: auto; top: auto; width: auto; height: auto; max-width: 520px; margin: 16px auto 0; }
  .s01 .s01-band-in { padding: 10px 18px; border-radius: 999px; font-size: 15px; letter-spacing: -0.03em; white-space: normal; line-height: 1.45; }
  .s01 .s01-store { order: 1; position: relative; left: auto; top: auto; width: 100%; height: auto; }
  .s01:has(+ .s02) .s01-store-clip { height: auto; }
  .s01 .s01-store-clip { height: auto; }
  .s01 .s01-cards { order: 2; position: relative; top: auto; height: auto; }
  .s01 .s01-track { gap: 12px; padding: 18px 16px 26px; scroll-padding-left: 16px; }
  .s01 .s01-card { width: min(78vw, 340px); height: auto; aspect-ratio: 384 / 227; padding: 7% 7% 0 7%; border-radius: 14px; }
  .s01 .s01-card .nm { font-size: clamp(22px, 6.4vw, 28px); line-height: 1.2; margin-bottom: 4%; }
  .s01 .s01-card .r1 { font-size: 14px; line-height: 1.7; }
  .s01 .s01-card .r1 span:last-child { font-size: 15px; }
  .s01 .s01-card .r2 { font-size: 14px; line-height: 1.6; }
  .s01 .s01-card .r2 strong { font-size: clamp(28px, 8.4vw, 38px); }
}
