/* =========================================================
   온결웨딩 축의금 정산 대행 소개 페이지
   톤: 로고 더스티 로즈(#CF817D) + 아이보리(#FEFAF7)
   언어: 청첩장/카드뉴스에서 가져온 이중 테두리, ✧ 장식, 가는 구분선
   서체: 마루부리(제목·본문 강조) + Pretendard(UI·설명) + Cormorant(영문·숫자)
   테마: 브랜드 아이보리 톤 유지를 위해 라이트 고정
   모서리: 버튼·토글 pill / 박스 4px / 장식 테두리는 오목 모서리 프레임
   ========================================================= */

@font-face { font-family: "Maru"; font-weight: 400; font-display: swap;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Regular.woff2") format("woff2"), url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Regular.woff") format("woff"); }
@font-face { font-family: "Maru"; font-weight: 600; font-display: swap;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-SemiBold.woff2") format("woff2"), url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-SemiBold.woff") format("woff"); }
@font-face { font-family: "Maru"; font-weight: 700; font-display: swap;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff2") format("woff2"), url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-Bold.woff") format("woff"); }

:root {
  --bg: #FEFAF7;
  --blush: #F9EEEB;
  --paper: #FFFDFC;
  --rose: #CF817D;
  --rose-soft: #E3B3AF;
  --line: #ECD8D4;
  --rose-deep: #A4504D;
  --ink: #3B2523;
  --ink-2: #66504C;
  --muted: #937A76;

  --f-head: "Maru", "Nanum Myeongjo", serif;
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-latin: "Cormorant Garamond", "Maru", serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  --gutter: clamp(20px, 5vw, 48px);
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60' fill='none' stroke='%23D59591' stroke-width='1'%3E%3Cpath fill='%23FFFDFC' stroke='none' d='M10 .5H50A10 10 0 0 0 59.5 10V50A10 10 0 0 0 50 59.5H10A10 10 0 0 0 .5 50V10A10 10 0 0 0 10 .5Z'/%3E%3Cpath d='M10 .5H50A10 10 0 0 0 59.5 10V50A10 10 0 0 0 50 59.5H10A10 10 0 0 0 .5 50V10A10 10 0 0 0 10 .5Z'/%3E%3Cpath d='M15 5.5H45A16 16 0 0 0 54.5 15V45A16 16 0 0 0 45 54.5H15A16 16 0 0 0 5.5 45V15A16 16 0 0 0 15 5.5Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--rose-deep); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg use { pointer-events: none; }
:focus-visible { outline: 1.5px solid var(--rose-deep); outline-offset: 4px; }

/* 종이 질감 (고정 레이어) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .32 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.accent { color: var(--rose-deep); }
.br-m { display: none; }

/* ---------- 브랜드 장식 ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--rose-deep); }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }

.rule { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--rose); }
.rule span { height: 1px; width: min(180px, 26vw); background: var(--rose-soft); transform-origin: right; }
.rule span + svg + span { transform-origin: left; }
.rule svg { width: 16px; height: 16px; flex-shrink: 0; }
.rule--sm span { width: min(110px, 20vw); }
.js .rule.reveal span, .js .reveal .rule span { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.js .rule.reveal.in span, .js .reveal.in .rule span { transform: none; }

/* 청첩장 이중 테두리 (오목 모서리) */
.frame {
  border: 22px solid transparent;
  border-image: var(--frame) 22 fill / 22px stretch;
}

/* ---------- 타이포 ---------- */
.h2 {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.38;
  letter-spacing: -.035em;
}
.sec-head { margin-bottom: clamp(36px, 4.5vw, 52px); }
.sec-sub { margin-top: 16px; font-family: var(--f-head); color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }
.center .sec-sub { margin-left: auto; margin-right: auto; }

.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.mask > span { display: inline-block; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .3s, transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--rose-deep); color: #FFF8F6; }
.btn--primary:hover { background: #8F423F; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 36px; font-size: 17px; }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--ink-2);
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color .3s, background-size .5s var(--ease);
}
.link:hover { color: var(--rose-deep); background-size: 0 1px; background-position: 100% 100%; }
.link i { font-size: 18px; transition: transform .4s var(--ease); }
.link:hover i { transform: translateY(2px); }

/* ---------- 인트로 ---------- */
.skip-intro .intro { display: none; }
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  animation: intro-out 1s var(--ease) 1.6s forwards;
}
.intro img { width: 150px; clip-path: circle(0% at 50% 50%); animation: intro-logo 1.3s var(--ease) .15s forwards; }
@keyframes intro-logo { to { clip-path: circle(50% at 50% 50%); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* 스크롤 진행 바 (지원 브라우저만) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--rose); transform-origin: left; transform: scaleX(0); display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---------- 내비게이션 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); transition: background-color .4s, box-shadow .4s; }
.nav.is-scrolled {
  background: rgba(254, 250, 247, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 36px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--rose-deep); }
.nav__links a.is-current::after { transform: translateX(-50%) scale(1); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.mmenu.is-open { opacity: 1; visibility: visible; }
.mmenu nav { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mmenu a { font-family: var(--f-head); font-size: 23px; font-weight: 600; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); }
.mmenu.is-open a { opacity: 1; transform: none; }
.mmenu.is-open a:nth-child(2) { transition-delay: .05s; } .mmenu.is-open a:nth-child(3) { transition-delay: .1s; }
.mmenu.is-open a:nth-child(4) { transition-delay: .15s; } .mmenu.is-open a:nth-child(5) { transition-delay: .2s; }
.mmenu.is-open a:nth-child(6) { transition-delay: .25s; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 72px; overflow: hidden; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
.hero__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.3;
  letter-spacing: -.045em;
}
.hero__title .mask > span { white-space: nowrap; }
.hero__sub { margin-top: 28px; font-family: var(--f-head); font-size: clamp(17px, 1.45vw, 19px); line-height: 1.85; color: var(--ink-2); }
.hero__cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.hero__visual { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; justify-self: end; display: grid; place-items: center; }
.hero__visual::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: var(--blush); }
.hero__logo { position: relative; width: 74%; }
.orbit { position: absolute; inset: 0; }
.orbit svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.orbit circle { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 1245; }
.orbit__dot { position: absolute; left: 50%; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; color: var(--rose); background: var(--bg); border-radius: 50%; padding: 1px; }
.orbit__dot svg { width: 100%; height: 100%; transform: none; }

.envelopes { position: absolute; left: -4%; bottom: 2%; width: 42%; aspect-ratio: 1.55; perspective: 900px; }
.env { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(165deg, #FFFFFF, #FBF2EF); box-shadow: 0 20px 36px -24px rgba(120, 60, 55, .5), 0 0 0 1px rgba(207, 129, 125, .2); }
.env--front { transform: translate(40%, -34%) rotate(9deg); background: linear-gradient(165deg, #FFFCFA, #F6E7E3); }
.env__label { position: absolute; right: 14%; top: 50%; transform: translateY(-50%); font-family: var(--f-head); font-weight: 600; color: var(--rose-deep); font-size: clamp(12px, 1.25vw, 16px); line-height: 1.3; text-align: center; }
.env--back { transform: rotate(-6deg); transform-style: preserve-3d; }
.env--back::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent 49.6%, rgba(207,129,125,.22) 50%, transparent 50.6%), linear-gradient(to top left, transparent 49.6%, rgba(207,129,125,.22) 50%, transparent 50.6%);
}
.env__flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; background: linear-gradient(180deg, #F6E5E1, #EFD6D1); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; }
.env__seal {
  position: absolute; left: 50%; top: 58%; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%;
  border-radius: 50%; display: grid; place-items: center; color: #FFF4F2;
  background: radial-gradient(circle at 35% 30%, #D58985, var(--rose-deep));
  box-shadow: 0 5px 12px -6px rgba(120,60,55,.7), inset 0 0 0 2px rgba(255,255,255,.2);
}
.env__seal svg { width: 46%; height: 46%; }

/* 히어로 등장 연출 */
.js .hero-in { opacity: 0; transform: translateY(105%); }
.js .hero__sub.hero-in, .js .hero__cta.hero-in, .js .kicker.hero-in { transform: translateY(20px); }
.js .hero__logo { clip-path: circle(0% at 50% 50%); }
.js .orbit circle { stroke-dashoffset: 1245; }
.js .orbit__dot { opacity: 0; }
.js .env__flap { transform: rotateX(180deg); }
.js .env__seal { opacity: 0; transform: scale(2.2); }
.is-ready .hero-in { animation: rise-in 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .1s + .1s); }
.is-ready .hero__logo { animation: logo-in 1.6s var(--ease) .3s forwards; }
.is-ready .orbit circle { animation: draw 2.2s var(--ease) .4s forwards; }
.is-ready .orbit { animation: spin 36s linear 2.4s infinite; }
.is-ready .orbit__dot { animation: fade-in .8s ease 1.8s forwards; }
.is-ready .envelopes { animation: env-in 1.2s var(--ease) .6s both, float 7s ease-in-out 2.6s infinite; }
.is-ready .env__flap { animation: flap-close .9s var(--ease) 1.4s forwards; }
.is-ready .env__seal { animation: stamp .7s cubic-bezier(.34, 1.56, .64, 1) 2.1s forwards; }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes logo-in { to { clip-path: circle(75% at 50% 50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes env-in { from { opacity: 0; transform: translateY(40px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes flap-close { to { transform: rotateX(0); } }
@keyframes stamp { to { opacity: 1; transform: scale(1); } }

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(72px, 8.5vw, 116px) 0; position: relative; }

/* ---------- 운영 원칙 ---------- */
.principle { background: var(--blush); }
.principle__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.tenets { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.tenet { padding: 24px 0 26px; border-top: 1px solid var(--rose-soft); }
.tenet__no { display: block; font-family: var(--f-latin); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1; color: var(--rose); margin-bottom: 14px; }
.tenet h3 { font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: -.03em; margin-bottom: 6px; }
.tenet p { color: var(--ink-2); font-size: 15px; }

.cert { position: relative; padding: 40px 24px 34px; text-align: center; }
.cert__title { font-family: var(--f-head); font-weight: 600; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.03em; }
.cert .rule { margin: 16px 0 24px; }
.cert__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 8px; }
.cert__list li { font-family: var(--f-head); font-weight: 600; font-size: 16px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; }
.cert__note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.js .cert.reveal .cert__list li { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .8s var(--ease); }
.js .cert.reveal.in .cert__list li { opacity: 1; transform: none; }
.cert.in .cert__list li:nth-child(1) { transition-delay: .3s; } .cert.in .cert__list li:nth-child(2) { transition-delay: .38s; }
.cert.in .cert__list li:nth-child(3) { transition-delay: .46s; } .cert.in .cert__list li:nth-child(4) { transition-delay: .54s; }
.cert.in .cert__list li:nth-child(5) { transition-delay: .62s; }

.stamp {
  position: absolute; right: -18px; top: -44px;
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--rose-deep);
  border: 2px solid currentColor;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px currentColor;
  background: rgba(255, 253, 252, .7);
  rotate: -14deg;
}
.stamp__big { font-family: var(--f-latin); font-weight: 600; font-size: 28px; line-height: 1; }
.stamp__small { font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .08em; margin-top: 4px; }
.js .cert.reveal .stamp { opacity: 0; transform: scale(1.8); }
.js .cert.reveal.in .stamp { animation: stamp-in .6s cubic-bezier(.34, 1.4, .64, 1) .9s forwards; }
@keyframes stamp-in { to { opacity: .92; transform: scale(1); } }

/* ---------- 진행 과정 (가로 5단계) ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow::before, .flow::after { content: ""; position: absolute; left: 10%; right: 10%; top: 7px; height: 1px; background: var(--line); }
.flow::after { background: var(--rose); transform-origin: left; transition: transform 1.6s var(--ease) .1s; }
.js .flow:not(.in)::after { transform: scaleX(0); }
.flow__step { position: relative; text-align: center; transition: opacity .7s, transform .9s var(--ease); }
.js .flow:not(.in) .flow__step { opacity: 0; transform: translateY(16px); }
.flow.in .flow__step:nth-child(2) { transition-delay: .2s; } .flow.in .flow__step:nth-child(3) { transition-delay: .4s; }
.flow.in .flow__step:nth-child(4) { transition-delay: .6s; } .flow.in .flow__step:nth-child(5) { transition-delay: .8s; }
.flow__dot { position: relative; z-index: 1; display: block; width: 15px; height: 15px; margin: 0 auto 22px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rose); transition: background-color .6s; }
.flow.in .flow__dot { background: var(--rose-deep); box-shadow: 0 0 0 5px rgba(207,129,125,.16); }
.flow__no { display: block; font-family: var(--f-latin); font-weight: 600; font-size: 16px; letter-spacing: .08em; color: var(--rose); }
.flow__step h3 { margin-top: 4px; font-family: var(--f-head); font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.flow__step p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 정산 방식 (확장 패널) ---------- */
.settle { background: var(--blush); }
.panels { display: flex; gap: 12px; height: 290px; }
.panel {
  position: relative; flex: 1; min-width: 0;
  border-radius: 4px;
  background: rgba(255, 253, 252, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 32px;
  cursor: pointer; overflow: hidden;
  transition: flex-grow .8s var(--ease), background-color .5s, box-shadow .4s;
}
.panel.is-open { flex-grow: 2.6; cursor: default; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rose-soft); }
.panel:not(.is-open):hover { background: var(--paper); }
.panel__no { font-family: var(--f-latin); font-weight: 500; font-size: 60px; line-height: 1; color: var(--rose); }
.panel__peek { position: absolute; left: 34px; bottom: 32px; writing-mode: vertical-rl; font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: .14em; color: var(--ink-2); transition: opacity .4s; }
.panel.is-open .panel__peek { opacity: 0; }
.panel__body { position: absolute; left: 32px; right: 32px; bottom: 32px; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; pointer-events: none; }
.panel.is-open .panel__body { opacity: 1; transform: none; transition: opacity .6s .3s, transform .8s var(--ease) .3s; pointer-events: auto; }
.panel h3 { font-family: var(--f-head); font-weight: 600; font-size: clamp(21px, 2.1vw, 26px); letter-spacing: -.03em; margin-bottom: 12px; }
.panel p { color: var(--ink-2); max-width: 32em; }
.addon { font-family: var(--f-sans); font-size: 14px; font-weight: 700; color: var(--rose-deep); border: 1px solid var(--rose-soft); border-radius: 999px; padding: 3px 11px; vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.file { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; color: var(--rose-deep); font-weight: 600; font-size: 15px; padding-top: 16px; border-top: 1px solid var(--line); }
.file i { font-size: 22px; }

/* ---------- 요금 ---------- */
.toggle { position: relative; display: flex; width: max-content; margin: 0 auto 40px; padding: 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rose-soft); }
.toggle button { position: relative; z-index: 1; height: 48px; min-width: 176px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--muted); transition: color .4s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.toggle button small { font-weight: 500; font-size: 13px; }
.toggle button.is-active { color: #FFF8F6; }
.toggle__pill { position: absolute; top: 5px; left: 5px; height: 48px; width: var(--w, 176px); border-radius: 999px; background: var(--rose-deep); transform: translateX(var(--x, 0)); transition: transform .6s var(--ease), width .6s var(--ease); }

.menu { max-width: 820px; margin: 0 auto; padding: 36px 44px 30px; }
.menu__head, .row { display: grid; grid-template-columns: auto 1fr auto 150px; align-items: center; column-gap: 20px; }
.menu__head { padding-bottom: 14px; border-bottom: 1px solid var(--rose-soft); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.menu__head span:last-child { text-align: right; color: var(--rose-deep); }
.row { padding: 22px 0; animation: row-in .7s var(--ease) both; animation-delay: calc(var(--i) * .07s); }
.row + .row { border-top: 1px dashed var(--line); }
@keyframes row-in { from { opacity: 0; transform: translateY(14px); } }
.row__who b { font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: -.03em; }
.row__who small { margin-left: 10px; color: var(--muted); font-size: 14px; }
.row__dots { height: 3px; background-image: radial-gradient(circle, var(--rose) .9px, transparent 1.3px); background-size: 8px 3px; background-repeat: repeat-x; background-position: left center; opacity: .55; align-self: center; }
.row__reg { position: relative; color: var(--muted); font-size: 16px; text-decoration: none; }
.row__reg::after { content: ""; position: absolute; left: -3px; right: -3px; top: 54%; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: left; animation: strike .6s var(--ease) forwards; animation-delay: calc(var(--i) * .07s + .5s); }
@keyframes strike { to { transform: scaleX(1); } }
.row__price { text-align: right; color: var(--rose-deep); font-weight: 700; }
.row__price span { font-family: var(--f-latin); font-weight: 600; font-size: 46px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.row__price small { font-size: 16px; margin-left: 3px; }
.js .menu:not(.in) .row, .js .menu:not(.in) .row__reg::after { animation-play-state: paused; }
/* ---------- 할인 혜택 (요금 아래 띠) ---------- */
.perks { max-width: 820px; margin: 40px auto 0; }
.perks__title { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-family: var(--f-head); font-size: 17px; color: var(--ink-2); text-align: center; }
.perks__title svg { width: 14px; height: 14px; color: var(--rose); }
.perks__title b { color: var(--rose-deep); font-weight: 700; }
.perks__title b span { font-family: var(--f-latin); font-size: 26px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.perks__list { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.perks__list li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px; text-align: center; }
.perks__list li + li { border-left: 1px solid var(--line); }
.perks__list span { font-family: var(--f-head); font-weight: 600; font-size: 16px; letter-spacing: -.03em; }
.perks__list small { color: var(--muted); font-size: 12.5px; }
.perks__list b { margin-top: 4px; color: var(--rose-deep); font-size: 15px; }

/* ---------- 지역별 추가 금액 (루트) ---------- */
.route { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.route__line { position: absolute; left: 12.5%; right: 12.5%; top: 9px; height: 1px; background: var(--line); }
.route__fill { position: absolute; inset: 0; background: var(--rose); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.js .route:not(.in) .route__fill { transform: scaleX(0); }
.stop { position: relative; text-align: center; transition: opacity .7s, transform .9s var(--ease); }
.js .stop { opacity: 0; transform: translateY(18px); }
.js .route.in .stop { opacity: 1; transform: none; }
.route.in .stop:nth-of-type(2) { transition-delay: .35s; } .route.in .stop:nth-of-type(3) { transition-delay: .7s; } .route.in .stop:nth-of-type(4) { transition-delay: 1.05s; }
.stop__pin { position: relative; z-index: 1; display: block; width: 19px; height: 19px; margin: 0 auto; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rose); }
.stop__pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--rose); }
.stop:first-of-type .stop__pin { background: var(--rose-deep); box-shadow: 0 0 0 6px rgba(207,129,125,.18); }
.stop:first-of-type .stop__pin::after { background: var(--paper); inset: 7px; }
.stop__price { margin-top: 20px; color: var(--rose-deep); font-weight: 700; font-size: 17px; }
.stop__price b { font-family: var(--f-latin); font-weight: 600; font-size: 46px; line-height: 1; }
.stop__price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.stop h3 { margin-top: 8px; font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.stop__area { margin: 6px auto 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 15em; }
.region__note { margin: 44px auto 0; max-width: 620px; text-align: center; color: var(--muted); font-size: 15px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- 마지막 CTA (청첩장 카드) ---------- */
.final { padding: clamp(72px, 9vw, 120px) 0; background: var(--blush); }
.invite { max-width: 680px; margin: 0 auto; padding: clamp(40px, 6vw, 60px) clamp(16px, 5vw, 48px); text-align: center; }
.invite__logo { width: 150px; margin: 0 auto 26px; }
.invite__cta { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }

/* ---------- 푸터 ---------- */
.footer { padding: 52px 0 44px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 32px; }
.footer .logo img { height: 30px; }
.footer__links { justify-self: end; display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.footer__links a:hover { color: var(--rose-deep); }
.footer__desc { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin-top: 18px; line-height: 1.7; }
.footer__copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin-top: 16px; font-family: var(--f-latin); letter-spacing: .08em; }

.dock { display: none; }

/* ---------- 스크롤 등장 ---------- */
.reveal { transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * .1s); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
.js .frame.reveal { transform: translateY(26px) scale(.985); }
.js .frame.reveal.in { transform: none; }
.rise { transition: transform 1.1s var(--ease); }
.js .rise { transform: translateY(110%); }
.mask:nth-child(2) .rise { transition-delay: .1s; }
.js .in .rise, .js .rise.in { transform: none; }

/* ---------- 제목 강조 형광펜 ---------- */
.h2 em { background: linear-gradient(transparent 62%, rgba(227,179,175,.5) 62%, rgba(227,179,175,.5) 90%, transparent 90%) no-repeat 0 0 / 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.2s var(--ease) .55s; }
.h2.in em, html:not(.js) .h2 em { background-size: 100% 100%; }

/* ---------- 읽는 만큼 채워지는 문장 ---------- */
.scrub .w { color: rgba(102,80,76,.22); transition: color .5s; }
.scrub .w.on { color: var(--ink-2); }

/* ---------- 커서, 자석 버튼, 기울어지는 카드 (마우스 환경만) ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role="tab"] { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--rose-deep); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--rose); mix-blend-mode: multiply; transition: opacity .3s, width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s, border-color .45s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(227,179,175,.35); border-color: transparent; }
.cursor-ring.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.magnetic { transition: background-color .3s, transform .3s var(--ease), translate .35s var(--ease); }
.js .tilt.reveal.in { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 1s var(--ease), transform .7s var(--ease); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { gap: 24px; font-size: 14.5px; }
  .principle__grid { grid-template-columns: 1fr; gap: 64px; }
  .cert { max-width: 600px; width: 100%; margin: 0 auto; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .br-m { display: inline; }
  .br-d { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 48px; align-items: flex-start; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__visual { order: -1; max-width: 320px; justify-self: center; }
  .envelopes { width: 36%; left: -10%; bottom: -6%; }
  .env--front { transform: translate(36%, -22%) rotate(9deg); }
  .hero__copy { text-align: center; }
  .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; }
  .hero__sub { margin-top: 20px; }
  .hero__cta { justify-content: center; margin-top: 32px; }

  .flow { grid-template-columns: 1fr; gap: 26px; max-width: 420px; margin: 0 auto; }
  .flow::before, .flow::after { left: 7px; right: auto; top: 10px; bottom: 30px; width: 1px; height: auto; }
  .flow::after { transform-origin: top; }
  .js .flow:not(.in)::after { transform: scaleY(0); }
  .flow__step { text-align: left; padding-left: 40px; }
  .flow__dot { position: absolute; left: 0; top: 4px; margin: 0; }
  .flow__no { display: inline; margin-right: 10px; }
  .flow__step h3 { display: inline; }

  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; padding: 24px 26px; }
  .panel__no { font-size: 38px; }
  .panel__peek { writing-mode: horizontal-tb; left: 92px; top: 30px; bottom: auto; font-size: 18px; letter-spacing: 0; }
  .panel__body { position: static; display: none; margin-top: 14px; opacity: 1; transform: none; }
  .panel.is-open .panel__body { display: block; animation: fade-up .6s var(--ease); }

  .menu { padding: 26px 22px 20px; }
  .menu__head { display: none; }
  .row { grid-template-columns: 1fr auto; row-gap: 2px; padding: 18px 0; }
  .row__who { grid-row: span 2; }
  .row__who b { font-size: 22px; display: block; }
  .row__who small { margin-left: 0; }
  .row__dots { display: none; }
  .row__reg { justify-self: end; font-size: 14px; }
  .row__price span { font-size: 40px; }

  .route { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .route__line, .stop__pin { display: none; }
  .stop__price { margin-top: 0; }
  .stop__price b { font-size: 40px; }
  .stop__area { font-size: 13px; }
  .region__note { margin-top: 20px; }

  .stamp { width: 86px; height: 86px; right: -8px; top: -44px; }
  .stamp__big { font-size: 24px; }
  .stamp__small { font-size: 11px; }

  .footer { padding-bottom: 110px; }
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__links { justify-self: center; }
  .perks__list { grid-template-columns: 1fr 1fr; }
  .perks__list li:nth-child(3) { border-left: 0; }
  .perks__list li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .dock { display: block; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; transform: translateY(140%); transition: transform .6s var(--ease); }
  .dock.is-shown { transform: none; }
  .dock .btn { width: 100%; height: 54px; box-shadow: 0 12px 28px -12px rgba(120,60,55,.6); }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero__visual { max-width: 260px; }
  .hero__title { font-size: clamp(32px, 9.4vw, 42px); }
  .hero__cta { flex-direction: column; gap: 14px; }
  .hero__cta .btn { width: 100%; }
  .tenets { grid-template-columns: 1fr; }
  .tenet { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 18px 0; }
  .tenet__no { grid-row: span 2; margin: 2px 0 0; font-size: 22px; }
  .cert { padding: 40px 6px 30px; }
  .toggle { width: 100%; }
  .toggle button { min-width: 0; flex: 1; flex-direction: column; gap: 0; height: 56px; line-height: 1.25; padding: 0 8px; }
  .toggle__pill { height: 56px; }
  .invite__cta { flex-direction: column; gap: 16px; }
  .invite__cta .btn { width: 100%; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

/* =========================================================
   스크롤 연동 애니메이션
   CSS scroll-driven animation 지원 브라우저(Chrome, Edge, Safari 26+)에서만 동작.
   미지원 브라우저는 정적인 화면으로 그대로 보이며 오류가 나지 않음.
   transform과 겹치지 않도록 개별 속성(translate/scale/rotate)만 사용.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__copy { animation: sc-hero-copy linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero__visual { animation: sc-hero-visual linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .tenet__no { animation: sc-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .invite { animation: sc-invite linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .section .h2, .final .h2 { animation: sc-title linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes sc-hero-copy { to { translate: 0 -60px; opacity: .2; } }
@keyframes sc-hero-visual { to { translate: 0 80px; scale: .92; } }
@keyframes sc-rise { from { translate: 0 24px; } to { translate: 0 0; } }
@keyframes sc-invite { from { scale: .94; } to { scale: 1; } }
@keyframes sc-title { from { translate: 0 28px; } to { translate: 0 0; } }

/* =========================================================
   모션 줄이기 설정 존중
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .intro, .petals { display: none; }
  .js .hero-in, .js .reveal, .js .rise, .js .stop, .js .cert.reveal .cert__list li, .js .flow__step { opacity: 1 !important; transform: none !important; }
  .js .hero__logo { clip-path: none; }
  .js .orbit circle { stroke-dashoffset: 0; }
  .js .orbit__dot { opacity: 1; }
  .js .env__flap { transform: none; }
  .js .env__seal { opacity: 1; transform: none; }
  .js .cert.reveal .stamp { opacity: .92; transform: none; }
  .js .rule.reveal span, .js .reveal .rule span { transform: none; }
  .js .flow:not(.in) .flow__step { opacity: 1; transform: none; }
  .js .flow:not(.in)::after { transform: none; }
  .h2 em { background-size: 100% 100%; }
}

/* 화면에는 숨기고 스크린리더만 읽는 텍스트 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
