/* 머리 · 모바일 메뉴 · 페이지 넘김 막 · 푸터 · 떠 있는 버튼 */
.hd { --fg: var(--ink); --pill: rgb(236 230 218 / .62); --pill-line: rgb(18 18 18 / .1);
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: var(--hd-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gut); color: var(--fg); transition: color .4s, translate .6s var(--ease); pointer-events: none; }
.hd > * { pointer-events: auto; }
.hd[data-tone="dark"] { --fg: var(--ivory); --pill: rgb(27 26 25 / .58); --pill-line: rgb(236 230 218 / .1); }
.hd.is-hide { translate: 0 -110%; }
.hd-logo { position: relative; display: flex; align-items: center; height: 40px; }
.hd-logo img { height: 40px; width: auto; transition: opacity .26s var(--ease), scale .44s var(--ease); }
.hd-word { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 112px; pointer-events: none; clip-path: inset(0 100% 0 0); opacity: 0; transition: clip-path .46s var(--ease), opacity .18s linear; }
.hd-logo:hover img { opacity: 0; scale: .7; }
.hd-logo:hover .hd-word { clip-path: inset(0 -3% 0 0); opacity: 1; }
.hd-nav { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--pill); border: 1px solid var(--pill-line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); transition: background .4s, border-color .4s; }
.hd-nav a { position: relative; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; transition: background .3s, color .3s; }
.hd-nav a:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.hd-nav a[aria-current="page"] { background: var(--fg); color: var(--ivory); }
.hd[data-tone="dark"] .hd-nav a[aria-current="page"] { color: var(--ink); }
.hd-menu { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--pill); border: 1px solid var(--pill-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); place-content: center; gap: 6px; }
.hd-menu i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: translate .4s var(--ease), rotate .4s var(--ease); }
@media (max-width: 860px) {
  .hd-menu { display: grid; }
  .hd-nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gut); border: 0; border-radius: 0; background: var(--ink); color: var(--ivory); clip-path: circle(0 at calc(100% - var(--gut) - 22px) 32px); transition: clip-path .7s var(--ease-io); visibility: hidden; }
  .hd-nav a { padding: 6px 0; border-radius: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
  .hd-nav a[aria-current="page"] { background: none; color: var(--accent); }
  .hd.is-open { --fg: var(--ivory); }
  .hd.is-open .hd-nav { clip-path: circle(150% at calc(100% - var(--gut) - 22px) 32px); visibility: visible; }
  .hd.is-open .hd-menu i:first-child { translate: 0 3.75px; rotate: 45deg; }
  .hd.is-open .hd-menu i:last-child { translate: 0 -3.75px; rotate: -45deg; }
  .hd-logo img { height: 32px; }
}

/* 페이지 넘김 막: 위가 둥근 먹색 면이 아래에서 올라와 덮는다 */
.veil { position: fixed; inset: 0; z-index: 90; pointer-events: none; translate: 0 calc(100% + 14vh); }   /* 쉴 때는 위에 붙은 곡선 머리(14vh)까지 화면 밖으로 */
.veil svg { position: absolute; left: 0; bottom: 100%; width: 100%; height: 14vh; fill: var(--ink); margin-bottom: -1px; }
.veil i { position: absolute; inset: 0; background: var(--ink); }
.veil.is-cover { pointer-events: auto; translate: 0 0; transition: translate .62s var(--ease-io); }
.veil.is-cover svg { display: none; }
.veil.is-lift { translate: 0 calc(-100% - 14vh); transition: translate .9s var(--ease-io); }
.veil.is-lift svg { top: 100%; bottom: auto; rotate: 180deg; display: block; }

/* 푸터: 본문 아래에서 드러나는 막 + 화면보다 큰 워드마크 */
.ft { position: sticky; bottom: 0; z-index: 1; background: var(--ink); color: var(--ivory); overflow: hidden; }
.ft-in { padding: 120px var(--gut) 0; }
.ft-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.ft-info { display: grid; gap: 6px; font-size: 14px; font-weight: 300; color: #CFC9BE; }
.ft-info b { font-weight: 600; color: var(--ivory); margin-right: 12px; }
.ft-fam { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.ft-fam a { font-weight: 500; color: var(--ivory); transition: color .2s; }
.ft-fam a:hover { color: var(--accent); }
.ft-copy { margin-top: 18px; font-size: 12.5px; color: var(--sub-dk); }
.ft-tags { display: flex; gap: clamp(20px, 5vw, 96px); font-size: 14px; color: #CFC9BE; }
.ft-mark { margin: 64px calc(var(--gut) * -0.3) clamp(28px, 3vw, 48px); color: var(--ivory); }
@media (max-width: 760px) {
  .ft-in { padding-top: 80px; }
  .ft-cols { grid-template-columns: 1fr; }
  .ft-tags { gap: 18px; font-size: 12px; }
}

/* 마지막 부름 */
.cta { padding: 220px var(--gut) 240px; display: grid; justify-items: center; gap: 72px; text-align: center; }
.cta-type { min-height: 1.3em; font-size: clamp(28px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; color: var(--accent); }
.cta-caret { display: inline-block; width: .06em; height: .95em; margin-left: .1em; vertical-align: -.08em; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* 글자 뒤 별(site.js가 찍음): 글자 둘레에 모이고 가장자리로 흐려짐, 빛번짐 없이 투명도만 */
.cta { position: relative; isolation: isolate; }
.cta-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.8s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 70% 58% at 50% 44%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 70% 58% at 50% 44%, #000 45%, transparent 100%); }
.cta.is-lit .cta-stars { opacity: 1; }
.cta-stars i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: var(--ivory); opacity: var(--o); animation: twinkle var(--tw) ease-in-out var(--td) infinite; }
.cta-stars i.is-spark { border-radius: 0; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
/* 글자 아래 한가운데: 아주 작은 오렌지 별 하나 + 거기서 옆으로 크게 퍼지는 빛(글자가 찍히기 시작할 때 한 번 퍼지고 멈춤) */
.cta { overflow-x: clip; }
.cta-type { position: relative; isolation: isolate; }
.cta-star { position: absolute; left: 50%; top: 96%; z-index: -1; width: 0; height: 0; pointer-events: none; }
.cta-star::before { content: ""; position: absolute; left: 0; top: 0; width: min(1250px, 150vw); height: min(560px, 80vw); translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 64%, transparent), color-mix(in srgb, var(--accent) 32%, transparent) 12%, color-mix(in srgb, var(--accent) 15%, transparent) 32%, color-mix(in srgb, var(--accent) 6%, transparent) 60%, transparent 100%);
  opacity: 0; scale: .3; transition: opacity 2.4s var(--ease), scale 3.2s var(--ease); }
.cta-star b { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; background: color-mix(in srgb, var(--accent) 55%, #fff); clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%);
  opacity: 0; transition: opacity 1.6s var(--ease) .3s; }
.cta.is-lit .cta-star::before { opacity: 1; scale: 1; }
.cta.is-lit .cta-star b { opacity: .95; }
@media (max-width: 760px) { .cta-star::before { height: 95vw; } .cta-star b { width: 14px; height: 14px; left: -7px; top: -7px; } }
@media (prefers-reduced-motion: reduce) { .cta-star::before, .cta-star b { transition: none; } }
@keyframes twinkle { 50% { opacity: calc(var(--o) * .45); } }
@media (prefers-reduced-motion: reduce) { .cta-stars i { animation: none; } }
@media (max-width: 760px) { .cta-stars i:nth-child(n+45) { display: none; } }
@media (max-width: 760px) { .cta { padding: 140px var(--gut) 160px; gap: 48px; } }

/* 떠 있는 버튼: 맨 위로 + 돌아가는 문의 고리 */
.fl { position: fixed; z-index: 35; right: clamp(16px, 2.4vw, 40px); bottom: clamp(16px, 2.4vw, 36px); display: grid; justify-items: center; gap: 14px; }
.fl-top { width: 52px; height: 52px; border-radius: 50%; background: var(--ivory); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .18); opacity: 0; translate: 0 12px; transition: opacity .4s, translate .5s var(--ease); }
.fl.is-on .fl-top { opacity: 1; translate: none; }
.fl-top svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--ivory); display: grid; place-items: center; box-shadow: 0 0 0 1px rgb(236 230 218 / .14), 0 10px 30px rgb(0 0 0 / .28); transition: scale .5s var(--ease); }
.fl-ring:hover { scale: 1.08; }
.fl-text { position: absolute; inset: 0; width: 100%; animation: fl-spin 14s linear infinite; }
.fl-text text { font-size: 9.6px; font-weight: 700; letter-spacing: .14em; fill: currentColor; }
.fl-tri { width: 16px; height: 14px; background: var(--accent); clip-path: var(--tri); transition: rotate .6s var(--ease); }
.fl-ring:hover .fl-tri { rotate: 180deg; }
@keyframes fl-spin { to { rotate: 360deg; } }
@media (max-width: 760px) { .fl-ring { width: 76px; height: 76px; } .fl-top { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .fl-text { animation: none; } }
