/* 아틀리에 디코 디자인 샘플 — 파스텔·꽃잎 흩날림형 */
:root {
  --cream: #FBF6F0; --blush: #F6D7D3; --blush-2: #FBEAE7; --rose: #D9667B; --rose-d: #B84D63;
  --olive: #6B7A4B; --olive-d: #4E5A35; --ink: #3E2F33; --sub: #85767A; --line: #EBDCD6;
  --header-h: 76px;
  --serif: 'Hahmlet', 'Noto Serif KR', serif;
  --en: 'Italiana', 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Noto Sans KR', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.8; word-break: keep-all; -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--rose); color: #fff; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.en { font-family: var(--en); font-size: 22px; color: var(--rose); letter-spacing: .02em; }
.ph { display: inline-block; padding: 0 6px; border: 1px dashed var(--rose); border-radius: 4px; color: var(--rose-d); font-size: .92em; }

.sample-banner { background: var(--ink); color: #EAD9D6; font-size: 12.5px; }
.sample-banner__inner { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.sample-banner__tag { flex: none; padding: 0 10px; background: var(--blush); color: var(--ink); border-radius: 99px; }
.sample-banner a { color: var(--blush); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 240, .9); backdrop-filter: blur(10px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: grid; text-decoration: none; line-height: 1; }
.logo__en { font-family: var(--en); font-size: 30px; color: var(--ink); }
.logo__ko { font-size: 11px; letter-spacing: .3em; color: var(--rose); margin-top: 4px; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav a { text-decoration: none; font-family: var(--serif); font-size: 15.5px; position: relative; }
.site-nav a::before { content: "✿"; position: absolute; left: 50%; top: -14px; font-size: 10px; color: var(--rose); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease); }
.site-nav a:hover::before, .site-nav a.is-active::before { transform: translateX(-50%) scale(1); }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 99px; font-family: var(--serif); font-weight: 500; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--rose { background: var(--rose); color: #fff; }
.btn--rose:hover { background: var(--rose-d); }
.btn--line { border-color: var(--ink); color: var(--ink); background: none; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--cream { background: var(--cream); color: var(--olive-d); margin-top: 30px; }

/* 등장 */
.has-motion .soft { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.has-motion .soft.is-in { opacity: 1; transform: none; }

/* 히어로 */
.hero { position: relative; padding: 70px 0 110px; background: linear-gradient(180deg, var(--blush-2), var(--cream)); overflow: hidden; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__en { font-size: 32px; }
.hero__title { margin-top: 10px; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.32; letter-spacing: -.03em; }
.hero__lead { margin-top: 24px; max-width: 30em; color: var(--sub); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.has-motion .hero__copy > * { animation: rise 1.4s var(--ease) both; }
.has-motion .hero__copy > :nth-child(2) { animation-delay: .15s; } .has-motion .hero__copy > :nth-child(3) { animation-delay: .3s; } .has-motion .hero__copy > :nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.bloom { width: min(420px, 100%); margin-left: auto; }
.stem { fill: none; stroke: var(--olive); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 0; }
.leaf { fill: #8C9A64; transform-box: fill-box; }
.leaf--l { transform-origin: 100% 100%; } .leaf--r { transform-origin: 0 100%; }
.petal { fill: var(--blush); stroke: #EFB9B6; stroke-width: 1.5; transform: rotate(var(--a)); }
.petal--in { fill: #F2A9B5; stroke: none; }
.core { fill: #F6D27A; }
.has-motion .stem { stroke-dashoffset: 220; animation: grow-stem 1.2s var(--ease) .2s forwards; }
.has-motion .leaf { transform: scale(0); animation: leaf 1s var(--ease) forwards; }
.has-motion .leaf--l { animation-delay: .9s; } .has-motion .leaf--r { animation-delay: 1.1s; }
.has-motion .petal { transform: rotate(var(--a)) scale(0); animation: petal 1.2s var(--ease) forwards; animation-delay: calc(1.2s + var(--i) * .12s); }
.has-motion .core { transform: scale(0); animation: core .8s cubic-bezier(.34, 1.56, .64, 1) 2.3s forwards; }
.has-motion .flower { animation: sway 6s ease-in-out 3s infinite; }
@keyframes grow-stem { to { stroke-dashoffset: 0; } }
@keyframes leaf { to { transform: scale(1); } }
@keyframes petal { to { transform: rotate(var(--a)) scale(1); } }
@keyframes core { to { transform: scale(1); } }
@keyframes sway { 0%, 100% { transform: translate(200px, 200px) rotate(0); } 50% { transform: translate(200px, 200px) rotate(5deg); } }

/* 섹션 */
.section { padding: 120px 0; position: relative; }
.section--blush { background: var(--blush-2); }
.section--olive { background: var(--olive); color: #EEF0E4; }
.section--olive .en { color: var(--blush); }
h2 { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; letter-spacing: -.03em; }
.lead { margin-top: 16px; font-size: 17px; color: var(--sub); }
.section--olive .lead { color: #DDE2CC; }
.head { text-align: center; margin-bottom: 56px; }
.note { margin-top: 14px; font-size: 13px; color: var(--sub); }

/* 계절 꽃 레일 */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.hint { color: var(--sub); font-family: var(--serif); }
.rail { display: flex; gap: 22px; overflow-x: auto; padding: 10px max(24px, calc((100vw - 1180px) / 2)) 30px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.fl { flex: 0 0 260px; scroll-snap-align: start; padding: 26px 24px 30px; border-radius: 160px 160px 24px 24px; background: var(--bg); text-align: center; user-select: none; transition: transform .6s var(--ease); }
.fl:hover { transform: translateY(-10px) rotate(-1deg); }
.fl__season { font-family: var(--en); letter-spacing: .2em; font-size: 14px; color: var(--sub); }
.fl svg { width: 130px; margin: 16px auto 10px; transition: transform .8s var(--ease); }
.fl:hover svg { transform: rotate(18deg) scale(1.08); }
.fl h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.fl p:last-child { font-size: 14.5px; color: var(--sub); margin-top: 4px; }
.rail-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 20%; background: var(--rose); transition: width .2s; }

/* 꽃다발 */
.bq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sizes { display: flex; gap: 10px; margin-top: 30px; }
.sizes button { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink); background: none; font-family: var(--en); font-size: 26px; cursor: pointer; transition: background .4s var(--ease), color .4s, transform .4s var(--ease); }
.sizes button[aria-checked="true"] { background: var(--rose); border-color: var(--rose); color: #fff; transform: scale(1.1); }
.bq__info { margin-top: 30px; border-top: 1px solid var(--line); }
.bq__info > div { display: grid; grid-template-columns: 70px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bq__info dt { font-family: var(--serif); color: var(--rose); }
.bq__stage { display: grid; place-items: center; min-height: 480px; }
.bq { width: 340px; transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 100%; }
.bq[data-size="s"] { transform: scale(.68); }
.bq[data-size="l"] { transform: scale(1.18); }
.bq__flowers { transition: transform .8s var(--ease); transform-origin: 200px 230px; }
.bq[data-size="l"] .bq__flowers { transform: scale(1.12); }

/* 클래스 */
.class-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cls { padding: 34px 30px; background: #fff; border-radius: 24px; border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.cls:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(217, 102, 123, .5); }
.cls__date { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); color: var(--rose); }
.cls__date b { font-family: var(--en); font-weight: 400; font-size: 44px; line-height: 1; color: var(--ink); }
.cls h3 { margin: 14px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.cls > p:not(.cls__date) { color: var(--sub); font-size: 15px; }
.cls dl { margin-top: 20px; border-top: 1px solid var(--line); }
.cls dl > div { display: grid; grid-template-columns: 50px 1fr; padding: 8px 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.cls dt { color: var(--sub); }

/* 꽃말 뽑기 */
.mn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mn-card { perspective: 1200px; width: min(340px, 100%); margin: 0 auto; }
.mn-card__inner { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.mn-card__inner.is-open { transform: rotateY(180deg); }
.mn-card__face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; display: grid; place-items: center; text-align: center; padding: 30px; }
.mn-card__back { background: var(--rose) repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.12) 0 6px, transparent 6px 18px); color: #fff; font-family: var(--en); font-size: 36px; line-height: 1.1; box-shadow: 0 30px 50px -30px rgba(0,0,0,.5); }
.mn-card__front { background: var(--cream); color: var(--ink); transform: rotateY(180deg); align-content: center; gap: 14px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.5); }
.mn-card__flower { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--rose); }
.mn-card__word { font-family: var(--serif); font-size: 22px; }
.mn-card__note { font-size: 12px; color: var(--sub); }
.mn-card.is-shuffle .mn-card__inner { animation: shuffle .5s ease-in-out; }
@keyframes shuffle { 25% { transform: rotate(-6deg) translateX(-10px); } 75% { transform: rotate(6deg) translateX(10px); } }

/* 주문·방문 */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.steps { margin-top: 30px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: center; }
.steps b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); font-family: var(--en); font-size: 20px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.info { border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 70px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info dt { font-family: var(--serif); color: var(--rose); }
.faq { margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; padding: 16px 0; font-family: var(--serif); font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "✿"; color: var(--rose); transition: transform .6s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg) scale(1.2); }
.faq p { padding-bottom: 16px; color: var(--sub); }

.site-footer { padding: 30px 0; background: var(--ink); color: #BFAEB0; font-size: 13px; }
.site-footer .en { font-size: 18px; color: #fff; }
.site-footer .ph { border-color: rgba(246, 215, 211, .5); color: var(--blush); }
.credit a { display: inline-flex; align-items: center; gap: 6px; color: #fff; vertical-align: middle; }
.credit img { filter: brightness(0) invert(1); }

@media (max-width: 1023.98px) {
  .nav-toggle { display: block; padding: 6px 18px; border: 1px solid var(--ink); border-radius: 99px; background: none; font-family: var(--en); font-size: 18px; cursor: pointer; }
  .site-nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0; z-index: 45; background: var(--blush-2); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 26px; }
  .site-nav a { font-size: 28px; }
  .hero__grid, .bq__grid, .mn__grid, .visit__grid { grid-template-columns: 1fr; gap: 44px; }
  .bloom { margin: 0 auto; width: min(300px, 80%); }
  .class-list { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .bq__stage { min-height: 400px; }
}
@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 40px); }
  .sample-banner__inner { align-items: flex-start; font-size: 12px; }
  .hero { padding: 44px 0 80px; }
  .hero__actions .btn, .visit__actions .btn { flex: 1 1 100%; }
  .section { padding: 84px 0; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .rail { padding-inline: 20px; }
  .fl { flex-basis: 220px; }
  .bq { width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
