/* 밍글 사이트 — 카드 #010 확정 시안(4안) 이식. 토큰·규칙 근거: designs/DESIGN.md
   subscription/public/assets/css/mingle.css 와 공통 부분이 같다 — :root 토큰을 바꾸면 두 앱을 같이 바꾼다.
   .js 는 하이드레이션 뒤 fx.js 가 붙인다 → 그 전에는 숨김 규칙이 걸리지 않아 문구·CTA 가 그대로 보인다. */

:root {
    --bg: #0B0B0B; --ink: #EDEDEA; --ink-2: rgba(237, 237, 234, .66); --ink-3: rgba(237, 237, 234, .42); --line: rgba(237, 237, 234, .13);
    --surface: #1B1B1A; --accent: #FF5A1F; --accent-ink: #0B0B0B; --light: #ECEBE6; --error: #FF6B5B;
    --btn-bg: #FF5A1F; --btn-ink: #0B0B0B;
    --field-bg: #151514; --field-line: rgba(237, 237, 234, .14); --radius: 16px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1); --wrap: 1320px; --pad: 40px; --hd: 80px;
    interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 17px; line-height: 1.65; letter-spacing: -0.012em;
    word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
mark { background: none; color: var(--accent); }
em { font-style: normal; }
.nb { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
h1, h2 { font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; }
.lead { font-size: 19px; color: var(--ink-2); line-height: 1.7; }

/* ── 버튼 (자석 translate 는 fx.js) */
.btn {
    display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 8px 0 26px;
    border-radius: 999px; border: 0; cursor: pointer; font-size: 17px; font-weight: 600; white-space: nowrap;
    background: var(--btn-bg); color: var(--btn-ink);
    transition: transform .6s var(--ease), background-color .4s var(--ease), color .4s var(--ease), translate .5s var(--ease), opacity .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .ic { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #0B0B0B; color: var(--accent); transition: transform .6s var(--ease); }
.btn:hover .ic { transform: rotate(-45deg); }
.btn .ic svg { width: 16px; height: 16px; }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 28px; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost .ic { display: none; }
.btn-sm { height: 46px; padding: 0 6px 0 20px; font-size: 15px; gap: 10px; }
.btn-sm .ic { width: 34px; height: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 헤더: 내리면 숨고 올리면 나온다 (fx 없이 Header.jsx 가 클래스만 바꾼다) */
.hd { position: fixed; z-index: 40; top: 0; left: 0; right: 0; transition: background-color .5s var(--ease), translate .6s var(--ease); }
.hd.scrolled { background: rgba(11, 11, 11, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hd.hide { translate: 0 -100%; }
.hd-in { display: flex; align-items: center; gap: 36px; height: var(--hd); max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.hd-logo img { height: 22px; width: auto; }
.gnb { display: flex; gap: 32px; margin-left: auto; font-size: 16px; font-weight: 500; }
.gnb a { opacity: .75; transition: opacity .3s; display: inline-flex; align-items: center; gap: 3px; }
.gnb a:hover, .gnb a.on { opacity: 1; }
.gnb svg { width: 14px; height: 14px; }
.hd-burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; flex-direction: column; justify-content: center; gap: 6px; align-items: center; cursor: pointer; }
.hd-burger span { width: 20px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.hd-burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.hd-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

/* 모바일 메뉴 */
.mnav { position: fixed; z-index: 39; inset: 0; background: var(--bg); padding: calc(var(--hd) + 24px) var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.mnav.open { opacity: 1; visibility: visible; }
.mnav ul { display: flex; flex-direction: column; }
.mnav li a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 680; letter-spacing: -0.045em; }
.mnav li a svg { width: 22px; height: 22px; color: var(--ink-3); }
.mnav .btn { width: 100%; justify-content: space-between; }
.mnav-info { margin-top: 20px; font-size: 14px; color: var(--ink-3); display: flex; flex-direction: column; gap: 4px; }

/* ── 등장 연출 */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
.js [data-split] .ln > span { translate: 0 105%; rotate: 2deg; transform-origin: left bottom; transition: translate 1.1s var(--ease), rotate 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.js [data-split].in .ln > span { translate: none; rotate: none; }
/* 첫 화면 문구는 JS 없이 CSS 애니메이션으로 — 하이드레이션이 늦어도 제때 나타난다 */
.intro .ln > span { animation: line-in 1.1s var(--ease) both; animation-delay: calc(var(--d, 150ms) + var(--i) * 90ms); transform-origin: left bottom; }
.intro-fade { animation: fade-up 1s var(--ease) both; animation-delay: var(--d, 400ms); }
@keyframes line-in { from { translate: 0 105%; rotate: 2deg; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } }
[data-words] .w { transition: opacity .4s; }
.js [data-words] .w { opacity: .16; }
.js [data-words] .w.on { opacity: 1; }

/* ── 숫자 */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; flex-direction: column; gap: 8px; }
.facts b { font-size: clamp(48px, 5vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts li > span { font-size: 15px; color: var(--ink-2); }

/* ── 작업 화면: 포트폴리오 대표색(--bg) 위에 목업 */
.vis { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .2), transparent 60%), var(--bg, #222); }
.vis-in { position: absolute; inset: 6%; transition: transform 1.2s var(--ease); }
.vis-in img { object-fit: contain; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .35)); }
a:hover .vis-in { transform: scale(1.05); }

/* ── 포트폴리오 카드 · 탭 */
.wcard a { display: block; }
.wcard .vis { border-radius: var(--radius); }
.wc-meta { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; padding-top: 18px; }
.wc-meta h3 { font-size: 21px; }
.wc-tags { grid-row: 2; font-size: 14px; color: var(--ink-3); }
.wc-go { grid-row: 1 / 3; grid-column: 2; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); transition: background-color .4s, color .4s, transform .6s var(--ease); }
.wc-go svg { width: 16px; height: 16px; }
.wcard a:hover .wc-go { background: var(--ink); color: var(--bg); transform: rotate(-45deg); }
.tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); }
.tab { border: 0; background: none; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: background-color .3s, color .3s; }
.tab small { font-size: 12px; opacity: .6; }
.tab.on { background: var(--ink); color: var(--bg); }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

/* ── FAQ · 접힘 */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; cursor: pointer; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { transition: translate .5s var(--ease); }
.faq summary:hover span { translate: 8px 0; }
.faq summary i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); transition: transform .5s var(--ease), background-color .4s; }
.faq summary i svg { width: 16px; height: 16px; }
.faq[open] summary i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq p { padding: 0 60px 28px 0; color: var(--ink-2); }
.faq::details-content, .more::details-content { block-size: 0; overflow: hidden; transition: block-size .55s var(--ease), content-visibility .55s allow-discrete; }
.faq[open]::details-content, .more[open]::details-content { block-size: auto; }

/* ── 폼 */
.form { display: flex; flex-direction: column; gap: 18px; }
.f-head { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f-prog { white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--field-line); overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--done, 0)); transition: transform .6s var(--ease); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; border: 1px solid var(--field-line); background: var(--field-bg); border-radius: 14px; padding: 15px 16px; font-size: 16px; outline: none; transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.field ::placeholder { color: var(--ink-3); }
.field.err input, .field.err textarea { border-color: var(--error); }
.f-err { font-size: 13px; font-weight: 600; color: var(--error); }
details.more { border: 1px solid var(--field-line); border-radius: 14px; }
.more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; cursor: pointer; font-size: 15px; font-weight: 600; }
.more summary::-webkit-details-marker { display: none; }
.more summary em { margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.more summary svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .4s var(--ease); }
.more[open] summary svg { transform: rotate(45deg); }
.more-in { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font-size: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--field-line); background: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chips button:hover { border-color: var(--ink-2); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.files label { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px dashed var(--field-line); cursor: pointer; }
.files label:hover { border-color: var(--ink-2); }
.files span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--surface); }
.files span button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.agree-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agree { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; position: relative; }
.agree input { position: absolute; z-index: 1; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.agree i { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--field-line); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.agree i svg { width: 14px; height: 14px; opacity: 0; }
.agree input:checked + i { background: var(--accent); border-color: var(--accent); }
.agree input:checked + i svg { opacity: 1; }
.agree input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.agree-row .link { margin-left: auto; border: 0; background: none; padding: 0; font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-submit { justify-content: space-between; width: 100%; height: 62px; }
.form.full .btn-submit .ic { animation: nudge 1.1s var(--ease) infinite; }
@keyframes nudge { 50% { translate: 6px 0; } }
.direct { display: flex; flex-direction: column; gap: 14px; }
.direct div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; font-size: 16px; }
.direct dt { color: var(--ink-3); }

/* ── 모달 (개인정보 전문 · 접수 완료) */
.modal { position: fixed; z-index: 60; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: calc(100svh - 40px); display: flex; flex-direction: column; background: #151514; border-radius: 24px; box-shadow: 0 0 0 1px var(--line); animation: pop .45s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.modal-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.modal-x svg { width: 16px; height: 16px; }
.modal-body { overflow-y: auto; padding: 24px; }
.modal-done { padding: 40px 32px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.modal-done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.modal-done .ok svg { width: 28px; height: 28px; }
.modal-done h2 { font-size: 26px; }
.modal-done p { color: var(--ink-2); }
.modal-done .btn { margin-top: 12px; }
/* toast-ui Viewer 본문을 어두운 바탕에 맞춘다 */
.term .toastui-editor-contents { font-family: inherit; font-size: 15px; color: var(--ink-2); word-break: keep-all; }
.term .toastui-editor-contents :is(h1, h2, h3, h4, h5, h6, strong, b) { color: var(--ink); border: 0; }
.term .toastui-editor-contents :is(table th, table td) { border-color: var(--line); color: var(--ink-2); }
.term .toastui-editor-contents table th { background: var(--surface); }
/* 패키지 CSS 가 p·목록·인용에 #222/#999 를 직접 줘 위 색 상속을 끊는다(이 바탕에 #222 = 대비 1.15) · pre 는 밝은 바탕에 밝은 글자가 된다 */
.term .toastui-editor-contents :is(p, ul, ol, blockquote) { color: inherit; }
.term .toastui-editor-contents :is(pre, code) { background: var(--surface); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ── 토스트 (react-toastify 를 어두운 톤으로) */
.Toastify__toast { font-family: inherit; border-radius: 14px; background: #1F1F1E; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .4); }
.Toastify__close-button { color: var(--ink-3); }

/* ── 푸터: 워드마크가 아래에서 차오른다 */
.ft { padding: 96px 0 40px; }
.ft-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 64px; }
.ft-say { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.4; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--ink-2); }
.ft-links a:hover { color: var(--ink); }
.ft-mark { overflow: hidden; }
.ft-mark img { width: 100%; height: auto; translate: 0 calc((1 - var(--p, 1)) * 60%); }
.ft-info { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 36px; font-size: 13px; color: var(--ink-3); }
.ft-info a:hover { color: var(--ink); }

/* ── 떠 있는 문의 버튼 */
.float { position: fixed; z-index: 35; right: 28px; bottom: 28px; display: flex; gap: 10px; align-items: center; transform: translateY(calc(100% + 48px)); transition: transform .7s var(--ease); }
.float.show { transform: none; }
.float .tel { display: none; }
.float .btn { box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }

/* ═══════ 홈 */
/* 히어로: 작업 화면 링이 화면 전체를 감싸고 문구는 가운데 — 고정 구간(75vh) 동안 --p 0→1 이 곧 줌 진행률 */
.hero-pin { position: relative; height: 175vh; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 760px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; --z: var(--p, 0); }
@property --r { syntax: '<length>'; inherits: true; initial-value: 0px; }
.ring-stage { position: absolute; inset: 0; perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.ring-stage.dragging { cursor: grabbing; }
.ring { --r: 1000px; position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; animation: ring-open 2.2s cubic-bezier(.65, 0, .25, 1) both; transform: translateZ(calc(-80px + var(--z, 0) * 560px)) rotateX(calc(var(--tilt, 0deg) - var(--z, 0) * 16deg)) rotateY(calc(var(--rot, 0) * 1deg)); }
@keyframes ring-open { from { --r: 120px; } }
.ring-card { position: absolute; width: 440px; left: -220px; top: -147px; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(calc(var(--r) * -1)); backface-visibility: hidden; transition: scale .5s var(--ease); }
.ring-card .vis { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; animation: fade 1.1s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.ring-name { position: absolute; left: 2px; top: calc(100% + 12px); font-size: 15px; font-weight: 600; color: var(--ink-2); opacity: 0; translate: 0 -6px; transition: opacity .4s, translate .5s var(--ease); white-space: nowrap; }
.ring-stage:hover .ring-name { opacity: 1; translate: none; }
.ring-stage.dragging .ring-card { scale: .95; }
.hero-veil { position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--z, 0) * 1.3); background: radial-gradient(52% 46% at 50% 50%, rgba(11, 11, 11, .94) 30%, rgba(11, 11, 11, .55) 70%, transparent), linear-gradient(180deg, #0B0B0B, transparent 18%, transparent 82%, #0B0B0B); }
.hero-center { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none; opacity: calc(1 - var(--z, 0) * 1.4); filter: blur(calc(var(--z, 0) * 10px)); translate: 0 calc(var(--z, 0) * -60px); }
.hero-center .btn { pointer-events: auto; }
.hero h1 { font-size: clamp(44px, 5.9vw, 92px); font-weight: 700; letter-spacing: -0.06em; line-height: 1.08; --d: 700ms; }
.hero .lead { margin-top: 26px; max-width: 520px; font-size: 18px; --d: 1.1s; }
.hero .cta-row { margin-top: 32px; justify-content: center; --d: 1.25s; }

/* 오렌지 띠: 맨 위 속도 띠(서비스 이름 사이 밍글 심볼, 스크롤한 만큼 돈다) + 단어가 켜지는 문장 */
.band { background: var(--accent); color: #0B0B0B; padding: 0 0 120px; --ink: #0B0B0B; --ink-2: rgba(11, 11, 11, .72); overflow: hidden; }
.vmq { overflow: hidden; white-space: nowrap; padding: 26px 0; border-bottom: 1.5px solid #0B0B0B; font-size: clamp(28px, 3.2vw, 48px); font-weight: 720; letter-spacing: -0.04em; }
.vmq-track { display: flex; width: max-content; will-change: transform; }
.vmq-track > div { display: flex; align-items: center; flex-shrink: 0; }
.vmq .sep { display: inline-block; margin: 0 .55em; }
.vmq .sep img { display: block; height: .78em; width: auto; rotate: calc(var(--s, 0) * 1deg); }
.band-in { padding-top: 110px; }
.band-big { font-size: clamp(56px, 8.6vw, 132px); font-weight: 760; letter-spacing: -0.065em; line-height: .98; text-align: right; }
.band-low { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: end; margin-top: 110px; }
.band-low > p { font-size: 18px; color: var(--ink-2); max-width: 420px; }
.band .facts { padding-top: 28px; border-top: 1.5px solid #0B0B0B; }
.band .facts b { font-size: clamp(44px, 4.4vw, 68px); }

/* 섹션 공통 */
.sec { padding: 150px 0; }
.sec-head.row { display: grid; grid-template-columns: 1fr 2.1fr; gap: 40px; }
.sec-head.row > * { grid-column: 2; }
.sec-head h2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 680; }
.sec-head p { margin-top: 20px; font-size: 18px; color: var(--ink-2); }

/* 서비스: 줄에 올리면 펼쳐진다 */
.svc-rows { margin-top: 72px; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 1fr 2.1fr; column-gap: 40px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
.svc::before { content: ''; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--surface); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc h3 { font-size: clamp(32px, 3.7vw, 58px); font-weight: 680; letter-spacing: -0.055em; line-height: 1.12; transition: color .4s, translate .7s var(--ease); }
.svc-k { font-size: 15px; font-weight: 500; color: var(--ink-3); transition: color .4s; }
.svc-open { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc-body { overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px 32px; color: var(--ink-2); }
.svc-body > p:first-child { padding-top: 16px; }
.svc-fit { font-size: 15px; color: var(--ink-3); padding-top: 16px; }
.svc-fit b { display: block; font-weight: 600; color: var(--ink-2); }
.svc-link { grid-column: 1; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; margin-top: 6px; justify-self: start; }
.svc-link svg { width: 14px; height: 14px; }
.svc:hover::before, .svc:focus-within::before { transform: scaleY(1); }
.svc:hover h3, .svc:focus-within h3 { color: var(--accent); translate: 14px 0; }
.svc:hover .svc-k, .svc:focus-within .svc-k { color: var(--accent); }
.svc:hover .svc-open, .svc:focus-within .svc-open { grid-template-rows: 1fr; }

/* 포트폴리오: 세로 스크롤 → 가로 이동 (높이는 fx.js 가 트랙 폭으로 계산) */
.hpin { position: relative; }
.hpin-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.hpin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hpin-head h2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 680; }
.hpin-head sup { font-size: 18px; font-weight: 600; color: var(--accent); vertical-align: top; }
.hpin-track { display: flex; gap: 24px; width: max-content; padding: 0 max(var(--pad), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.hpin-track .wcard { width: 560px; flex-shrink: 0; }
.hpin-track .vis { aspect-ratio: auto; height: 400px; }
.wcard.more a { width: 360px; height: 400px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; padding: 36px; font-size: 34px; font-weight: 680; letter-spacing: -0.045em; line-height: 1.2; transition: background-color .4s, color .4s; }
.wcard.more a:hover { background: var(--accent); color: #0B0B0B; }
.wcard.more i { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #0B0B0B; display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; }
.wcard.more a:hover i { background: #0B0B0B; color: var(--accent); }
.wcard.more svg { width: 22px; height: 22px; }

/* 진행 방식: 화면에 고정된 채 스크롤하면 번호가 굴러가고 단계 설명이 바뀐다 (밝은 섹션) */
.story { position: relative; height: calc(var(--n, 5) * 70vh + 100vh); background: var(--light); color: #0B0B0B; --ink: #0B0B0B; --ink-2: rgba(11, 11, 11, .66); --ink-3: rgba(11, 11, 11, .45); --line: rgba(11, 11, 11, .14); --btn-bg: #0B0B0B; --btn-ink: var(--light); }
.story .btn .ic { background: var(--accent); color: #0B0B0B; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-in { display: grid; grid-template-columns: 1fr 1.05fr 1fr; grid-template-rows: 1fr auto; gap: 40px 56px; align-items: center; height: 72vh; }
.story-head { align-self: start; }
.story-head h2 { font-size: clamp(56px, 6.6vw, 104px); font-weight: 760; letter-spacing: -0.065em; line-height: .98; }
.story-head p { margin-top: 28px; font-size: 18px; color: var(--ink-2); }
.story-head .btn { margin-top: 32px; }
.story-num { height: 1em; overflow: hidden; font-size: clamp(180px, 21vw, 320px); font-weight: 780; letter-spacing: -0.08em; line-height: 1; color: var(--accent); }
.story-roll { display: flex; flex-direction: column; translate: 0 calc(var(--step, 0) * -1em); transition: translate .8s var(--ease); }
.story-roll span { height: 1em; display: block; }
.story-steps { position: relative; align-self: center; min-height: 220px; }
.story-steps li { position: absolute; inset: 0 0 auto; opacity: 0; translate: 0 40px; transition: opacity .25s, translate .6s var(--ease); }
.story-steps li.past { translate: 0 -40px; }
.story-steps li.on { opacity: 1; translate: none; transition: opacity .45s .2s, translate .8s var(--ease) .2s; }
.story-steps h3 { font-size: clamp(30px, 2.8vw, 42px); font-weight: 700; letter-spacing: -0.045em; }
.story-steps p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 380px; }
.story-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 12px; }
.story-dots button { display: flex; flex-direction: column; gap: 12px; border: 0; background: none; padding: 0 0 4px; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color .4s; }
.story-dots button:hover { color: var(--ink); }
.story-dots i { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.story-dots i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.story-dots .past { color: var(--ink); }
.story-dots .past i::after { transform: scaleX(1); }
.story-dots .on { color: var(--ink); }
.story-dots .on i::after { transform: scaleX(var(--sp, 0)); }

/* 함께한 곳 */
.trust { padding-bottom: 60px; }
/* 줄이 안 차면 마지막 줄은 가운데로 — 열 수(--cols)·간격(--gap)으로 칸 폭을 정한다 */
.logo-grid { --cols: 11; --gap: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: 64px; padding: 12px; border-radius: 26px; background: var(--surface); }
.logo-grid img { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); height: auto; border-radius: 16px; transition: transform .6s var(--ease); }
.logo-grid img:hover { transform: translateY(-6px) rotate(-4deg); }

/* FAQ */
.faq-in { display: grid; grid-template-columns: 1fr 2.1fr; gap: 40px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }

/* 문의: 오렌지 마감 블록 — 두 줄이 스크롤에 맞춰 양쪽에서 밀려 들어와 제자리에 선다 (--p 0→1) */
.contact { background: var(--accent); color: #0B0B0B; padding: 0 0 120px; overflow: hidden; }
.c-big { display: flex; flex-direction: column; padding: 72px var(--pad) 24px; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; font-size: clamp(56px, 8vw, 132px); font-weight: 780; letter-spacing: -0.065em; line-height: 1.02; white-space: nowrap; }
.c-big span { translate: calc((1 - var(--p, 1)) * 45vw) 0; }
.c-big span:last-child { align-self: flex-end; translate: calc((var(--p, 1) - 1) * 45vw) 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; margin-top: 56px; --ink: #0B0B0B; --ink-2: rgba(11, 11, 11, .72); --ink-3: rgba(11, 11, 11, .55); }
.contact-copy h2 { font-size: 22px; font-weight: 600; line-height: 1.55; letter-spacing: -0.02em; }
.contact .direct { margin-top: 44px; }
.contact .form { --ink: #EDEDEA; --ink-2: rgba(237, 237, 234, .66); --ink-3: rgba(237, 237, 234, .42); --surface: #1B1B1A; --bg: #0B0B0B; background: #0B0B0B; color: var(--ink); padding: 40px; border-radius: 28px; }

/* ═══════ 서브 페이지 공통 머리 */
.page-head { padding: calc(var(--hd) + 96px) 0 72px; }
.page-head h1 { font-size: clamp(48px, 6.4vw, 100px); font-weight: 740; letter-spacing: -0.06em; line-height: 1.04; }
.page-head .lead { margin-top: 28px; max-width: 640px; }
.page-head .cta-row, .ab-hero .cta-row { margin-top: 36px; }

/* 포트폴리오 목록 */
.pf-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 40px; }
.pf-bar p { color: var(--ink-3); font-size: 15px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; padding-bottom: 150px; }
.pf-grid .wcard.hide { display: none; }
.pf-empty { padding: 80px 0 150px; color: var(--ink-3); }

/* 포트폴리오 상세 */
.pv-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: calc(var(--hd) + 60px) 0 72px; overflow: hidden; background: var(--pbg, #1B1B1A); }
.pv-hero picture, .pv-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 11, .55), rgba(11, 11, 11, .1) 40%, rgba(11, 11, 11, .85)); }
.pv-hero .wrap { position: relative; z-index: 1; }
.pv-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 28px; }
.pv-back:hover { color: var(--ink); }
.pv-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.pv-hero h1 { font-size: clamp(44px, 6.2vw, 96px); font-weight: 740; letter-spacing: -0.06em; line-height: 1.06; max-width: 1000px; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pv-tags span { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(237, 237, 234, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pv-over { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; padding: 120px 0 96px; }
.pv-over .comment { font-size: 22px; font-weight: 500; line-height: 1.7; letter-spacing: -0.02em; white-space: pre-line; }
.pv-over .eng { margin-top: 28px; font-size: 16px; color: var(--ink-3); white-space: pre-line; }
.pv-meta { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pv-meta div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 16px; font-size: 15px; }
.pv-meta dt { color: var(--ink-3); }
.pv-mock { border-radius: 28px; aspect-ratio: 16 / 9; }
.pv-mock .vis-in { inset: 8% 10%; }
.pv-shot { margin-top: 120px; }
.pv-shot h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 680; margin-bottom: 32px; }
.pv-shot picture img { width: 100%; height: auto; border-radius: 20px; background: var(--surface); }
.pv-cta { display: flex; justify-content: center; margin-top: 96px; }
.pv-site { margin-top: 28px; gap: 8px; }
.pv-site svg { width: 14px; height: 14px; }
.pv-nav { padding: 150px 0; }
.pv-nav h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 680; margin-bottom: 32px; }
.pv-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* 회사소개 */
.ab-hero { padding: calc(var(--hd) + 96px) 0 0; }
.ab-hero h1 { font-size: clamp(52px, 7.4vw, 116px); font-weight: 760; letter-spacing: -0.065em; line-height: 1; }
.ab-hero .lead { margin-top: 32px; max-width: 620px; }
.ab-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 96px; }
.ab-strip .vis { border-radius: var(--radius); }
.ab-intro { display: grid; grid-template-columns: 1fr 2.1fr; gap: 40px; }
.ab-intro .big { font-size: clamp(30px, 3.4vw, 50px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.3; }
.ab-intro .big + p { margin-top: 32px; font-size: 18px; color: var(--ink-2); max-width: 640px; }
.ab-intro .facts { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.ab-values li { padding: 36px 32px 40px; border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.ab-values h3 { font-size: 26px; font-weight: 680; letter-spacing: -0.04em; }
.ab-values p { color: var(--ink-2); }
.ab-steps { margin-top: 72px; border-top: 1px solid var(--line); counter-reset: s; }
.ab-steps li { display: grid; grid-template-columns: 1fr 2.1fr; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.ab-steps li > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: baseline; }
.ab-steps b { font-size: 15px; font-weight: 600; color: var(--accent); }
.ab-steps h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 680; letter-spacing: -0.045em; }
.ab-steps p { color: var(--ink-2); }
.ab-place dl { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ab-place dl > div { padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ab-place dt { font-size: 14px; color: var(--ink-3); }
.ab-place dd { font-size: 18px; font-weight: 500; }

/* 404 */
.nf { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 120px var(--pad); }
.nf b { font-size: clamp(120px, 20vw, 260px); font-weight: 780; letter-spacing: -0.08em; line-height: 1; color: var(--accent); }
.nf h1 { font-size: clamp(28px, 3vw, 40px); }

/* ═══════ 반응형 */
@media (max-width: 1024px) {
    :root { --pad: 24px; --hd: 68px; }
    .gnb { display: none; }
    .hd-in { gap: 12px; }
    .hd-cta { margin-left: auto; }
    .hd-burger { display: flex; }
    .facts { grid-template-columns: 1fr 1fr; row-gap: 36px; }

    .ring { --r: 620px; }
    .ring-card { width: 280px; left: -140px; top: -93px; }
    .band-in { padding-top: 72px; }
    .band-low { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; }
    .sec { padding: 104px 0; }
    .sec-head.row, .faq-in, .ab-intro { grid-template-columns: 1fr; gap: 16px; }
    .sec-head.row > * { grid-column: 1; }
    .svc { grid-template-columns: 1fr; row-gap: 6px; }
    .svc-open { grid-column: 1; grid-template-rows: 1fr; }
    .svc-body { grid-template-columns: 1fr; }
    .svc::before { display: none; }
    .svc:hover h3 { translate: none; }
    .hpin { height: auto !important; }
    .hpin-sticky { position: static; height: auto; padding: 104px 0; gap: 32px; }
    .hpin-head { flex-direction: column; gap: 16px; align-items: flex-start; }
    .hpin-track { transform: none !important; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
    .hpin-track::-webkit-scrollbar { display: none; }
    .hpin-track > li { scroll-snap-align: start; flex-shrink: 0; }
    .story { height: calc(var(--n, 5) * 60vh + 100vh); }
    .story-in { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 24px; height: auto; }
    .story-head { grid-column: 1 / -1; }
    .story-head h2 { font-size: 56px; margin-top: 14px; }
    .story-head p, .story-head .btn { display: none; }
    .story-num { grid-column: 2; grid-row: 2; font-size: 150px; }
    .story-steps { grid-column: 1; grid-row: 2; min-height: 200px; }
    .story-dots { gap: 6px; }
    .story-dots button { font-size: 0; gap: 0; padding-bottom: 0; }
    .logo-grid { --cols: 6; }
    .contact-in { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }

    .page-head { padding: calc(var(--hd) + 64px) 0 48px; }
    .pf-grid { gap: 48px 16px; padding-bottom: 104px; }
    .pv-over { grid-template-columns: 1fr; gap: 48px; padding: 80px 0 64px; }
    .pv-shot { margin-top: 80px; }
    .pv-nav { padding: 104px 0; }
    .ab-hero { padding-top: calc(var(--hd) + 64px); }
    .ab-strip { grid-template-columns: 1fr 1fr; margin-top: 64px; }
    .ab-values { grid-template-columns: 1fr; }
    .ab-steps li, .ab-steps li > div { grid-template-columns: 1fr; gap: 8px; }
    .ab-place dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --pad: 20px; }
    body { font-size: 16px; }
    .lead { font-size: 17px; }
    h3 { font-size: 20px; }
    .hd-logo img { height: 18px; }
    .hd-cta .ic { display: none; }
    .btn.hd-cta { padding: 0 18px; height: 42px; font-size: 15px; }
    .btn { height: 56px; font-size: 16px; }
    .cta-row .btn { flex: 1 1 100%; justify-content: space-between; }
    .cta-row .btn-ghost { justify-content: center; }
    .f-row { grid-template-columns: 1fr; }
    .faq summary { font-size: 17px; padding: 22px 0; }
    .faq p { padding-right: 0; }
    .float { left: 16px; right: 16px; bottom: 14px; }
    .float .tel { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
    .float .tel svg { width: 22px; height: 22px; }
    .float .btn { flex: 1; justify-content: space-between; }
    .ft-top { flex-direction: column; align-items: flex-start; }
    .ft-say { font-size: 22px; }

    .hero { min-height: 760px; justify-content: flex-start; padding-top: 112px; }
    .ring { top: 89%; --r: 460px; }
    .hero h1 { font-size: 34px; }
    .hero .lead { font-size: 16px; }
    .hero-veil { background: linear-gradient(180deg, #0B0B0B 62%, rgba(11, 11, 11, .2) 70%, transparent 74%, transparent 90%, #0B0B0B); }
    .ring-stage { perspective: 600px; }
    .ring-card { width: 220px; left: -110px; top: -73px; }
    .ring-card .vis { border-radius: 10px; }
    .band { padding-bottom: 72px; }
    .vmq { padding: 18px 0; font-size: 26px; }
    .band-big { font-size: 52px; text-align: left; }
    .band .facts b { font-size: 44px; }
    .sec { padding: 80px 0; }
    .sec-head h2, .hpin-head h2 { font-size: 34px; }
    .svc { padding: 28px 0; }
    .svc h3 { font-size: 30px; }
    .hpin-sticky { padding: 80px 0; }
    .hpin-track { gap: 12px; }
    .hpin-track .wcard { width: 290px; }
    .hpin-track .vis { height: 230px; }
    .wcard.more a { width: 220px; height: 230px; padding: 24px; font-size: 24px; }
    .wcard.more i { width: 48px; height: 48px; }
    .story-head h2 { font-size: 44px; }
    .story-num { font-size: 104px; }
    .story-steps h3 { font-size: 26px; }
    .story-steps p { font-size: 16px; }
    .logo-grid { --cols: 4; --gap: 8px; padding: 8px; border-radius: 20px; }
    .logo-grid img { border-radius: 12px; }
    .contact { padding-bottom: 72px; }
    .c-big { padding: 48px var(--pad) 8px; font-size: 9.2vw; }
    .contact .form { padding: 24px 18px; border-radius: 22px; }

    .page-head h1 { font-size: 44px; }
    .pf-bar { flex-direction: column; align-items: flex-start; }
    .pf-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
    .pv-hero { min-height: 72svh; padding-bottom: 48px; }
    .pv-hero h1 { font-size: 38px; }
    .pv-over .comment { font-size: 18px; }
    .pv-mock { border-radius: 18px; aspect-ratio: 4 / 3; }
    .pv-nav { padding: 80px 0; }
    .pv-nav ul { grid-template-columns: 1fr; }
    .pv-cta .btn { flex: 1; justify-content: space-between; }
    .ab-hero h1 { font-size: 46px; }
    .ab-intro .big { font-size: 26px; }
    .ab-values li { padding: 28px 24px 32px; }
    .modal-box { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .rv, .js [data-words] .w { opacity: 1; transform: none; }
    .js [data-split] .ln > span { translate: none; rotate: none; }
    .c-big span { translate: none !important; }
}
.ft-links button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.ft-links button:hover { color: var(--ink); }
.svc-link .ic { display: inline-flex; }

/* ═══════ front 전용 (subscription 엔 없음) — 숫자 3칸 · 원하는 디자인 예시 */
/* 숫자는 3개(공개 프로젝트·함께한 곳·첫 연락) — 모바일도 한 줄 3칸(2열이면 하나가 홀로 남는다) */
.facts { grid-template-columns: repeat(3, 1fr); column-gap: 20px; }
.field > .label em { margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.dsg { display: flex; flex-direction: column; gap: 10px; }
.dsg-row { display: grid; grid-template-columns: 84px 1fr; align-items: start; gap: 10px; }
/* 칩 한 줄 높이(14px × 1.65 + 위아래 7px + 테두리)에 맞춰 가운데 — 칩이 두 줄로 넘어가도 첫 줄에 붙는다 */
.dsg-k { min-height: 39px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.f-q { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--field-line); background: none; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .3s, color .3s; }
.f-q:hover, .f-q:focus-visible { border-color: var(--ink-2); color: var(--ink); }
.dlg { padding: 20px; border: 0; background: none; color: inherit; width: 100%; height: 100%; max-width: none; max-height: none; }
.dlg[open] { display: flex; align-items: center; justify-content: center; }
.dlg::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:has(.dlg[open]) { overflow: hidden; }
.dlg-design { max-width: 1040px; }
.dlg-design .modal-head p { display: flex; flex-direction: column; gap: 2px; }
.dlg-design .modal-head small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.dz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
/* 선택지 4개(분위기)는 2×2 — 4열이면 영상 속 글씨가 너무 작다. 폭을 줄여 두 줄이 900px 화면에 들어오게 */
.dlg-design.two { max-width: 860px; }
.two .dz { grid-template-columns: 1fr 1fr; }
.dz button { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 18px; border: 1px solid var(--field-line); border-radius: 18px; background: none; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .3s, background-color .3s; }
.dz button:hover { border-color: var(--ink-2); }
.dz button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.dz img, .dz video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 8px; border-radius: 10px; background: var(--surface); }
.dz b { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 17px; font-weight: 700; }
.dz b i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--field-line); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.dz b i svg { width: 13px; height: 13px; }
.dz button[aria-pressed="true"] b i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dz span { padding: 0 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 1024px) {
    .dz, .two .dz { grid-template-columns: 1fr; }
    .dlg-design, .dlg-design.two { max-width: 560px; }
}
@media (max-width: 640px) {
    .dlg { padding: 12px; }
}

/* ═══════ 히어로 ≤1024 — 링 대신 세로로 흐르는 세 줄. 줌이 없으니 고정 구간도 없다(고정하면 글·그림이 사라진 뒤 검정 화면만 75vh 남음) */
.hm { display: none; }
@media (max-width: 1024px) {
    .ring-stage { display: none; }
    .hero-pin { height: auto; }
    .hero { position: relative; --z: 0; justify-content: flex-start; padding-top: calc(var(--hd) + 9vh); }
    .hm { display: grid; position: absolute; inset: -25% -35%; grid-template-columns: repeat(3, 1fr); gap: 14px; rotate: -12deg; }
    .hm-col { display: flex; flex-direction: column; gap: 14px; animation: hm-up 36s linear infinite; }
    .hm-col:nth-child(2) { animation-direction: reverse; animation-duration: 44s; }
    .hm-col .vis { border-radius: 14px; flex-shrink: 0; }
    @keyframes hm-up { to { transform: translateY(calc(-100% / 3)); } }
    .hero .hero-veil { background: radial-gradient(70% 42% at 50% 46%, rgba(11, 11, 11, .92) 40%, rgba(11, 11, 11, .55) 100%), linear-gradient(180deg, #0B0B0B, transparent 16%, transparent 84%, #0B0B0B); }
}
@media (max-width: 640px) {
    .hero { padding-top: 112px; }
    .hero .hero-veil { background: linear-gradient(180deg, rgba(11, 11, 11, .9) 52%, rgba(11, 11, 11, .45) 76%, rgba(11, 11, 11, .7)); }
}
@media (prefers-reduced-motion: reduce) { .hm-col { animation: none; } }
