/* 럽트리 v5 (LT-REQ-003 리빌딩). 색·글꼴·모서리는 지금 테마(v4)를 그대로 쓰고, 배치만 새로 짠다. docs/rebuild/02-디자인토큰.md */
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/montserrat-800.woff2") format("woff2"); }

:root {
  --bg: #fffaf6; --surface: #fdf1ea; --paper: #ffffff;
  --ink: #1e2142; --ink-sub: #6b4a3a;
  --accent: #5b5fd6; --accent-hover: #4a4ec6; --on-accent: #ffffff;
  --brand-red: #e24823; --brand-trunk: #875335; --warm-ink: #8a3a22; --warm-tint: #fdece6;
  --line: #efe1d3; --dotted: #c9a892;
  --err: #b3261e; --error: var(--err); /* join.js가 --error를 쓴다 */
  --night: #3d2a20; --night-ink: #fff7f1; --night-sub: #e6cfc2; --night-line: #5a4335;
  --screen: #2b2f5c; --track: rgba(255, 247, 241, .2); /* 목업 영상 창 안쪽·재생 막대 바탕 */
  --font-text: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Montserrat", var(--font-text);
  --m: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --gutter: max(var(--m), calc((100% - var(--wrap)) / 2));
  --sec: clamp(72px, 10vw, 136px);
  --r-btn: 2px; --r-card: 4px;
  /* v5.1 아침빛 (페이지 머리 바탕에만): 해가 드는 쪽의 따뜻한 빛 */
  --glow: #ffe2d0; --glow-2: #fff0e2; --glow-word: #fbe3d6;
  --r-bubble: 14px; /* 묻고 답하기 말풍선 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 30; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* ---------- 버튼 3종 (알약 없음) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--accent); border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--warm-tint); border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.tlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--warm-ink); text-decoration: none; }
.tlink:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- 섹션 라벨·제목 ---------- */
.label { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: .18em; color: var(--warm-ink); }
.label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--brand-red); vertical-align: .08em; }
.h-big { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
.h-sec { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.em { color: var(--brand-red); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-sub); }
.state::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--brand-red); vertical-align: .08em; }

/* ---------- 상단바 ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 72px; padding: 0 var(--gutter); }
.top__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.top__brand img { width: 34px; height: 34px; }
.top__word { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: .12em; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { display: inline-flex; align-items: center; min-height: 72px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.top__nav a:hover { color: var(--warm-ink); }
.top__nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand-red); }
.top__menu { display: none; }

/* ---------- 히어로: 풀폭 워드마크 ---------- */
.hero { padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); } /* 아래 구역과 나누는 선 (v5.2: 흐르는 띠를 뺐다) */
.hero__kicker { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.word { position: relative; margin: clamp(16px, 2.5vw, 28px) 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 17.4vw, 248px); line-height: .86; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; display: flex; align-items: flex-end; }
.word__tree { display: inline-block; width: .74em; height: .8em; margin: 0 .015em 0 .03em; }
.word__tree .tree { width: 100%; height: 100%; }
.hero__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; margin-top: clamp(48px, 6vw, 80px); }
.hero__tag { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.statuscard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; display: grid; gap: 6px; }
.statuscard__name { font-size: 1.25rem; font-weight: 800; }
.statuscard p { color: var(--ink-sub); font-size: .9375rem; }
.statuscard .tlink { justify-self: start; }


/* ---------- 섹션 공통 ---------- */
.sec { padding: var(--sec) var(--gutter); }
.sec--tint { background: var(--surface); }
.sec__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }

/* 한 줄 소개 */
.intro2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; }
.intro2__text { display: grid; gap: 18px; }

/* ---------- 프로그램 ---------- */
.prog { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; align-items: stretch; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.prog__card { display: grid; gap: 22px; align-content: start; }
.prog__name { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1rem; }
.facts dt { color: var(--ink-sub); font-weight: 600; }
.note { font-size: .9375rem; color: var(--ink-sub); padding: 12px 14px; background: var(--surface); border-radius: var(--r-card); }
.prog__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 목업: 지원하면 만들어지는 영상 */
.mock { background: var(--ink); border-radius: var(--r-card); padding: clamp(16px, 2vw, 24px); display: grid; gap: 14px; align-content: center; color: var(--night-ink); }
.mock__bar { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--night-sub); }
.mock__bar b { font-family: var(--font-display); letter-spacing: .12em; color: var(--night-ink); }
.mock__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden; background: var(--screen); }
.mock__screen img { width: 100%; height: 100%; object-fit: cover; }
.mock__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 4px; background: var(--brand-red); display: grid; place-items: center; }
.mock__play::before { content: ""; border-left: 16px solid var(--paper); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.mock__meta { display: grid; gap: 2px; }
.mock__title { font-weight: 700; font-size: 1.0625rem; }
.mock__sub { font-size: .875rem; color: var(--night-sub); }
.mock__progress { height: 4px; background: var(--track); }
.mock__progress span { display: block; width: 38%; height: 100%; background: var(--brand-red); }
.mock__cap { font-size: .8125rem; color: var(--night-sub); }

/* 영상 카드 가로 슬라이더 */
.songs { margin-top: clamp(40px, 5vw, 64px); }
.songs__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.songs__title { font-size: 1.25rem; font-weight: 800; }
.songs__nav { display: flex; gap: 6px; }
.songs__nav button { min-width: 44px; min-height: 44px; border: 1.5px solid var(--ink); border-radius: var(--r-btn); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.songs__nav button:hover { background: var(--warm-tint); }
.songs__nav button:disabled { border-color: var(--dotted); color: var(--dotted); cursor: default; background: var(--bg); }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 31%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.slide { scroll-snap-align: start; }
.slide a { display: grid; gap: 10px; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 12px 16px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.slide a:hover { border-color: var(--brand-trunk); }
.slide__thumb { aspect-ratio: 16 / 9; background: var(--surface); border-radius: 2px; overflow: hidden; }
.slide__thumb img { width: 100%; height: 100%; object-fit: cover; }
.slide__title { font-weight: 700; line-height: 1.45; }
.slide__meta { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--ink-sub); }
.slide__go { font-weight: 700; color: var(--warm-ink); }

/* ---------- 푸터: 워드마크 반복 ---------- */
.foot { background: var(--night); color: var(--night-ink); padding: clamp(48px, 6vw, 80px) var(--gutter) 0; overflow: hidden; }
.foot__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; font-size: .9375rem; }
.foot__row a { color: var(--night-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot__row a:hover { text-decoration: underline; }
.foot__h { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .18em; color: var(--night-sub); margin-bottom: 4px; }
.foot__legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--night-line); font-size: .8125rem; color: var(--night-sub); }
.foot__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 18.6vw, 270px); line-height: .78; letter-spacing: -.04em; color: var(--night-ink); margin-top: clamp(24px, 4vw, 48px); white-space: nowrap; transform: translateY(.1em); }

/* ---------- 스크롤 등장 ---------- */
.js [data-rise] { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- 시작 화면 (대표 요청 v2): 하트 잎 하나가 궤적을 따라 날아와 로고 하트 자리에 멈춤 → 반전 → 로고 ----------
   움직임은 v5.js(궤적), 단계는 클래스: is-landed(멈춤·반전·나무) → is-out(사라짐). 자바스크립트가 멈춰도 4.6초 뒤 CSS가 걷는다. */
.splash { display: none; }
.intro-on .splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 50; background: var(--ink); cursor: pointer; overflow: hidden;
  transition: opacity .4s ease-in, visibility 0s linear .4s; animation: splashSafety .4s ease-in 4.6s forwards; }
/* 반전: 하트 가운데(--hx, --hy, v5.js가 넣음)에서 밝은 바탕이 원으로 퍼진다 */
.splash::before { content: ""; position: absolute; inset: 0; background: var(--bg); clip-path: circle(0 at var(--hx, 50%) var(--hy, 42%)); transition: clip-path .55s cubic-bezier(.5, 0, .2, 1); }
.intro-on body { overflow: hidden; }
.splash__stage { position: relative; z-index: 1; width: min(64vw, 46vh); aspect-ratio: 974 / 1046; }
.splash__tree { position: absolute; inset: 0; opacity: 0; transform: scale(.42); transform-origin: 49.95% 42.6%; /* 로고 하트 가운데 */
  transition: opacity .35s ease-out .12s, transform .6s cubic-bezier(.3, 1.45, .5, 1) .12s; }
.splash__tree .tree { width: 100%; height: 100%; }
/* 로고 하트 자리 (src/lib/tree.js HEART를 viewBox 140 108 974 1046 비율로 바꾼 값) */
.splash__leaf { position: absolute; left: 29.67%; top: 26.39%; width: 40.55%; color: var(--brand-red); opacity: 0; will-change: transform; transition: color .45s ease-out; }
.splash__leaf svg { width: 100%; height: auto; fill: currentColor; overflow: visible; }
.splash__hint { position: absolute; z-index: 1; right: var(--m); bottom: var(--m); font-size: .8125rem; color: var(--night-sub); transition: opacity .2s; }
.splash.is-landed::before { clip-path: circle(150% at var(--hx, 50%) var(--hy, 42%)); }
.splash.is-landed .splash__leaf { color: var(--bg); animation: settle .45s ease-out; }
.splash.is-landed .splash__tree { opacity: 1; transform: none; }
.splash.is-landed .splash__hint { opacity: 0; }
.splash.is-out { opacity: 0; visibility: hidden; }
@keyframes settle { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; } }

/* ---------- 로고 나무 (views/partials/tree.ejs) ---------- */
.tree__trunk { fill: var(--brand-trunk); }
.tree__lobe { fill: var(--brand-red); }

/* ---------- 공통 보조 ---------- */
.js-only { display: none; }
.js .js-only { display: revert; }
.h-sub { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.4; font-weight: 800; letter-spacing: -.01em; }
.muted { color: var(--ink-sub); }
.empty { padding: 48px 16px; text-align: center; color: var(--ink-sub); border-top: 2px solid var(--ink); }
.morelink { margin-top: 20px; }
.tlink--inline { display: inline; min-height: 0; }
.sec--tight { padding-top: clamp(40px, 5vw, 64px); }
.label--dark { color: var(--night-sub); }
.btn--line-light { color: var(--night-ink); border-color: var(--night-ink); }
.btn--line-light:hover { background: var(--night-line); color: var(--night-ink); border-color: var(--night-ink); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-btn); background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 700; line-height: 1.5; }
.tag--event { background: var(--warm-tint); color: var(--warm-ink); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 6px; }

/* ---------- 페이지 머리 ---------- */
.pagehero { padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(32px, 4vw, 56px); }
.pagehero .wrap { display: grid; gap: 16px; }
.pagehero .lead { max-width: 640px; }
.pagehero__split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 56px; }
.pagehero__tree { justify-self: end; width: min(280px, 100%); }
.pagehero__tree .tree { width: 100%; height: auto; }
.pagehero--center .wrap { justify-items: center; text-align: center; max-width: 760px; }
.pagehero--center .prose { text-align: left; }
.singerfacts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.singerfacts .facts { border-top: 0; padding-top: 0; }

/* 두 칸 (제목 | 본문) */
.twocol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: start; }
.prose { display: grid; gap: 16px; font-size: 1.0625rem; }
.prose a { color: var(--warm-ink); font-weight: 700; }

/* ---------- 우리의 약속 ---------- */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise { display: grid; align-content: start; gap: 10px; padding: 24px 20px 26px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r-card); }
.promise__no { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--brand-red); }
.promise__title { font-size: 1.1875rem; font-weight: 800; line-height: 1.4; }
.promise p { color: var(--ink-sub); font-size: .9375rem; }

/* ---------- 참여 흐름 (목업형 설명) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow__step { display: grid; align-content: start; gap: 14px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); position: relative; }
.flow__step + .flow__step::before { content: "→"; position: absolute; left: -15px; top: 26px; width: 14px; text-align: center; color: var(--brand-red); font-weight: 800; } /* 순서 표시 */
.flow__no { font-weight: 800; font-size: 1.1875rem; }
.flow__no span { font-family: var(--font-display); color: var(--brand-red); margin-right: 6px; }
.flow__step > p:last-child { color: var(--ink-sub); font-size: .9375rem; }
.flowmock { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); font-size: .8125rem; }
.flowmock--dark { background: var(--ink); border-color: var(--ink); color: var(--night-ink); }
.flowmock__row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.flowmock--dark .flowmock__row { background: transparent; border-color: var(--night-line); }
.flowmock__k { color: var(--ink-sub); }
.flowmock--dark .flowmock__k { color: var(--night-sub); }
.flowmock__v { font-weight: 700; }
.flowmock__btn { justify-self: start; padding: 6px 12px; background: var(--accent); color: var(--on-accent); border-radius: 2px; font-weight: 700; }
.flowmock__state { font-weight: 800; }
.flowmock__state::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--brand-red); }
.flowmock__bar { height: 6px; background: var(--line); }
.flowmock__bar span { display: block; width: 55%; height: 100%; background: var(--accent); }
.flowmock__screen { position: relative; aspect-ratio: 16 / 9; background: var(--screen); border-radius: 2px; }

/* ---------- FAQ 아코디언 ---------- */
.faqwrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 4px; font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 2px; font-family: var(--font-display); font-weight: 800; } /* 열림·닫힘 표시 */
.faq__item[open] summary::after { content: "−"; background: var(--ink); color: var(--bg); }
.faq__item p { padding: 0 4px 20px; color: var(--ink-sub); }

/* ---------- 하단 CTA 띠 ---------- */
.cta { background: var(--ink); color: var(--night-ink); padding: clamp(64px, 8vw, 112px) var(--gutter); }
.cta__in { display: grid; gap: 18px; }
.cta__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.cta__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- 럽트리 소개 ---------- */
.road { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.road__step { display: grid; gap: 10px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.road__step--now { border-color: var(--ink); border-width: 2px; }
.road__tag { font-weight: 700; font-size: .875rem; color: var(--warm-ink); }
.road__title { font-size: 1.25rem; font-weight: 800; }
.road__step p:last-child { color: var(--ink-sub); }
.kv { display: grid; border-top: 2px solid var(--ink); }
.kv > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; color: var(--warm-ink); }

/* ---------- 신비로운 가수 ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps3__item { display: grid; align-content: start; gap: 12px; padding-top: 22px; border-top: 3px solid var(--ink); }
.steps3__no { font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; line-height: 1; color: var(--brand-red); }
.steps3__title { font-size: 1.3125rem; font-weight: 800; }
.steps3__item p { color: var(--ink-sub); }
.ways3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ways3__item { display: grid; gap: 8px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.ways3__item h3 { font-size: 1.1875rem; font-weight: 800; }
.ways3__item p { color: var(--ink-sub); font-size: .9375rem; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }

/* ---------- 공지 ---------- */
.tabs { display: flex; gap: 0; margin-bottom: 24px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tabs a[aria-current="page"] { font-weight: 800; box-shadow: inset 0 -3px 0 var(--brand-red); }
.nlist { border-top: 2px solid var(--ink); }
.nrow { display: grid; gap: 6px; padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.nrow:hover { background: var(--paper); }
.nrow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .875rem; color: var(--ink-sub); }
.nrow__title { font-size: 1.1875rem; font-weight: 800; line-height: 1.45; }
.nrow__sum { color: var(--ink-sub); font-size: .9375rem; }
.article { max-width: 820px; display: grid; gap: 18px; }
.article__banner { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-card); }
.article__until { font-size: .875rem; color: var(--ink-sub); margin-top: -8px; }
.article__back { margin-top: 16px; }

/* ---------- 문의 ---------- */
.contactgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contactcard2 { display: grid; align-content: start; gap: 12px; }
.contactcard2 .btn { justify-self: start; }
.contactcard2__val { font-size: 1.25rem; font-weight: 800; }
.contactcard2__val a { color: var(--ink); }

/* ---------- 이벤트 배너 (views/partials/eventbanner.ejs) ---------- */
.evb { position: relative; width: calc(100% - 2 * var(--m)); max-width: var(--wrap); margin: clamp(32px, 4vw, 56px) auto 0; }
.evb--page { margin-top: 0; }
.evb__track { position: relative; aspect-ratio: 3 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.evb__slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .4s ease-out; }
.evb__slide.is-on { opacity: 1; z-index: 1; }
.evb__slide[hidden] { display: none; }
.evb__slide img { width: 100%; height: 100%; object-fit: cover; }
.evb__ctrl { align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.js .evb__ctrl { display: flex; }
.evb__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: var(--r-btn); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; font-size: .875rem; cursor: pointer; }
.evb__btn:hover { background: var(--warm-tint); }
.evb__dots { display: inline-flex; align-items: center; margin: 0 4px; }
.evb__dot { width: 28px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.evb__dot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--dotted); } /* 위치 표시 */
.evb__dot[aria-current="true"]::before { background: var(--brand-red); }

/* ---------- 지원서 (기존 폼 마크업에 새 디자인) ---------- */
.applygrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 40px; align-items: start; }
.applynote { display: grid; gap: 16px; }
.checklist { display: grid; gap: 10px; }
.checklist li { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brand-red); border-radius: var(--r-card); font-size: .9375rem; } /* 왼쪽 선: 꼭 알아 둘 것 표시 */
.checklist strong { display: block; color: var(--ink); }
.guidebox { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.guide { display: grid; gap: 18px; counter-reset: none; }
.guidecard { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; }
.guidecard > :not(.guidecard__no) { grid-column: 2; }
.guidecard__no { grid-row: 1 / span 4; width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: var(--bg); border-radius: 2px; font-family: var(--font-display); font-weight: 800; font-size: .875rem; }
.guidecard__title { font-size: 1.0625rem; font-weight: 800; }
.guidecard p, .guidecard dd { font-size: .9375rem; color: var(--ink-sub); }
.guidecard__points { display: grid; gap: 6px; }
.guidecard__points > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; }
.guidecard__points dt { font-weight: 700; color: var(--warm-ink); font-size: .9375rem; }
.guidebox__sign { text-align: right; font-weight: 700; color: var(--warm-ink); }
.applycard { max-width: 820px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 4vw, 48px); }
.applycard__head { display: grid; gap: 10px; margin-bottom: 28px; }
.applycard__reward { font-weight: 600; }
.apply__closed { padding: 18px; background: var(--surface); border-radius: var(--r-card); }
.form { display: grid; gap: 28px; }
.form__summary { padding: 16px 18px; border: 1.5px solid var(--err); border-radius: var(--r-card); background: var(--warm-tint); }
.form__summary a { color: var(--ink); }
.form__error { color: var(--err); font-weight: 700; }
.form__error:empty { display: none; }
.form__body { display: grid; gap: 22px; }
.form__body > .btn { justify-self: stretch; }
.checks { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); }
.checks__list { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks__list legend { font-size: 1.125rem; font-weight: 800; margin-bottom: 8px; padding: 0; }
.checks__hint { font-size: .875rem; color: var(--ink-sub); }
.check, .radio { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; line-height: 1.5; }
.check input, .radio input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.checks .check { padding: 10px 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-card); }
.checks .check:has(input:checked) { border-color: var(--ink); }
.step { font-size: 1.25rem; font-weight: 800; padding-top: 22px; border-top: 2px solid var(--ink); }
.form__body .step:first-child { border-top: 0; padding-top: 0; }
.step__no { color: var(--warm-ink); }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend, .field__label { font-weight: 700; padding: 0; }
.field__sublabel { font-weight: 600; font-size: .9375rem; }
.req { margin-left: 4px; padding: 1px 6px; border-radius: 2px; background: var(--warm-tint); color: var(--warm-ink); font-size: .75rem; font-weight: 700; vertical-align: .1em; }
.field__help { font-size: .875rem; color: var(--ink-sub); }
.field__error { color: var(--err); font-weight: 700; font-size: .875rem; }
.field input[type="text"], .field input[type="url"], .field input[type="email"], .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--dotted); border-radius: var(--r-card);
}
.field input:hover, .field select:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__pair { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .radio { position: relative; padding: 0 16px; border: 1.5px solid var(--dotted); border-radius: var(--r-btn); background: var(--paper); font-weight: 600; }
.chips .radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips .radio:hover { border-color: var(--ink); }
.chips .radio:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips .radio:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.upload { display: grid; gap: 10px; }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__pick { display: grid; justify-items: center; gap: 8px; padding: 24px 16px; text-align: center; border: 1.5px dashed var(--dotted); border-radius: var(--r-card); background: var(--paper); cursor: pointer; } /* 점선: 파일을 놓는 자리 */
.upload__pick:hover { border-color: var(--ink); background: var(--bg); }
.upload:focus-within .upload__pick { outline: 3px solid var(--accent); outline-offset: 2px; }
.upload__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-btn); font-weight: 700; }
.upload__name { color: var(--ink-sub); font-size: .875rem; }
.upload__bar { height: 8px; background: var(--line); overflow: hidden; }
.upload__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upload__status { font-size: .875rem; font-weight: 700; }
.upload__status:empty { display: none; }
.consent { padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); }
.consent a { color: var(--warm-ink); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.asklink { display: grid; justify-items: start; gap: 12px; }

/* ---------- 태블릿·휴대폰 ---------- */
@media (max-width: 960px) {
  .hero__row, .intro2, .prog, .twocol, .faqwrap, .applygrid, .pagehero__split { grid-template-columns: minmax(0, 1fr); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .steps3, .ways3 { grid-template-columns: minmax(0, 1fr); }
  .flow__step + .flow__step::before { content: "↓"; left: 50%; top: -15px; margin-left: -7px; }
  .pagehero__tree { justify-self: start; width: 160px; }
  .slider { grid-auto-columns: minmax(240px, 46%); }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .top__in { min-height: 60px; gap: 8px; }
  .top__brand img { width: 30px; height: 30px; }
  .top__word { font-size: 1rem; }
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .top__menu { display: block; position: relative; }
  .top__menu summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: var(--r-btn); font-weight: 700; cursor: pointer; }
  .top__menu summary::-webkit-details-marker { display: none; }
  .top__menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(240px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; padding: 6px; }
  .top__menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
  .top__menu nav a[aria-current="page"] { color: var(--warm-ink); }
  .word { font-size: 17vw; }
  .hero__acts .btn { flex: 1 1 100%; }
  .slider { grid-auto-columns: 78%; }
  .songs__nav { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts dd { margin-bottom: 8px; }
  .foot__row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .promises, .road, .contactgrid { grid-template-columns: minmax(0, 1fr); }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .field__pair { grid-template-columns: minmax(0, 1fr); }
  .guidecard__points > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .evb__ctrl { justify-content: center; }
  .cta__acts .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .btn, .slide a, .nrow, .evb__slide, .upload__bar span { transition: none; }
  .intro-on .splash { display: none; }
}
.foot__todo { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-sub); }
/* 처리방침 본문 */
.doc { max-width: 820px; }
.doc h2 { font-size: 1.25rem; font-weight: 800; margin-top: 16px; }
.doc ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 4px; }
.doc__meta { color: var(--ink-sub); font-size: .9375rem; }

/* =====================================================================
   v5.1 보강 (대표 요청 2026-10-27: "나머지 탭이 밋밋하다", 지원 화면은 채용 랜딩 레퍼런스 참고)
   알약형 버튼·그림자는 여전히 쓰지 않는다. 아침빛(--glow)은 페이지 머리 바탕에만 쓴다.
   ===================================================================== */
.ico { width: 24px; height: 24px; flex: none; }

/* ---------- 페이지 머리 v2: 아침빛 바탕 + 그림 + 큰 영문 이름 ---------- */
.phero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(72px, 9vw, 136px);
  background: radial-gradient(48% 70% at 90% 12%, var(--glow) 0%, transparent 72%), radial-gradient(42% 60% at 0% 100%, var(--glow-2) 0%, transparent 70%), var(--bg); }
.phero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: center; }
.phero__text { display: grid; gap: 18px; justify-items: start; }
.phero__text .lead { max-width: 560px; }
.phero__text .hero__acts { margin-top: 10px; }
.phero__word { position: absolute; right: var(--m); bottom: 0; z-index: 0; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: min(clamp(88px, 19vw, 280px), calc((100vw - 2 * var(--m)) / 3.8)); line-height: .74; letter-spacing: -.045em; color: var(--glow-word); white-space: nowrap; pointer-events: none; user-select: none; } /* 페이지 이름 (레퍼런스의 큰 영문 글자) */

/* 머리 그림: 해(원) + 로고 나무 + 사실 꼬리표 */
.phero__word--l6 { font-size: min(clamp(88px, 19vw, 280px), calc((100vw - 2 * var(--m)) / 4.5)); }
.phero__word--l7 { font-size: min(clamp(88px, 19vw, 280px), calc((100vw - 2 * var(--m)) / 5.3)); }
.hvis { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.hvis::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: var(--warm-tint); } /* 아침 해 */
.hvis__tree { position: absolute; inset: 15% 19% 9%; }
.hvis__tree .tree { width: 100%; height: 100%; }
.hvis__leaf { position: absolute; color: var(--brand-red); }
.hvis__leaf svg { width: 100%; height: auto; fill: currentColor; }
.hvis__leaf--1 { top: 9%; right: 12%; width: 30px; transform: rotate(18deg); }
.hvis__leaf--2 { bottom: 26%; left: 6%; width: 22px; transform: rotate(-22deg); }
.hvis__chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: var(--r-card); font-size: .9375rem; font-weight: 700; white-space: nowrap; animation: floaty 5s ease-in-out infinite; }
.hvis__chip .ico { width: 20px; height: 20px; color: var(--brand-red); }
.hvis__chip--1 { top: 2%; left: 0; }
.hvis__chip--2 { top: 32%; right: -4%; animation-delay: -1.2s; }
.hvis__chip--3 { bottom: 24%; left: -6%; animation-delay: -2.4s; }
.hvis__chip--4 { bottom: 3%; right: 2%; animation-delay: -3.6s; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* ---------- 숫자 띠 (레퍼런스의 큰 숫자) ---------- */
.bignums { background: var(--ink); color: var(--night-ink); padding: 0 var(--gutter); }
.bignums__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bignums__list li { display: grid; gap: 6px; padding: clamp(28px, 3.5vw, 44px) clamp(16px, 2vw, 28px); }
.bignums__list li + li { border-left: 1px solid var(--night-line); }
.bignums__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -.03em; color: var(--brand-red); white-space: nowrap; }
.bignums__n small { margin-left: 4px; font-family: var(--font-text); font-size: .36em; font-weight: 800; letter-spacing: 0; color: var(--night-ink); }
.bignums__list li > p:last-child { font-size: .9375rem; color: var(--night-sub); }

/* ---------- 가운데 정렬 섹션 제목 ---------- */
.sec__head--center { justify-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- 아이콘 카드 ---------- */
.icards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.icard { display: grid; align-content: start; gap: 12px; padding: clamp(24px, 2.6vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.icard__ico { width: 56px; height: 56px; display: grid; place-items: center; background: var(--warm-tint); color: var(--brand-red); border-radius: var(--r-card); }
.icard__ico .ico { width: 28px; height: 28px; }
.icard h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.4; }
.icard p { color: var(--ink-sub); font-size: .9375rem; }

/* ---------- 묻고 답하기 (말풍선) ---------- */
.talkwrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; align-items: start; }
.chat { display: grid; gap: 12px; }
.chat__q { justify-self: end; max-width: min(80%, 520px); }
.chat__q p { padding: 14px 18px; background: var(--ink); color: var(--night-ink); border-radius: var(--r-bubble) var(--r-bubble) 2px var(--r-bubble); font-weight: 700; }
.chat__a { display: flex; align-items: flex-end; gap: 10px; max-width: min(90%, 640px); margin-bottom: 14px; }
.chat__who { flex: none; width: 44px; height: 44px; padding: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; } /* 답하는 쪽: 럽트리 */
.chat__who .tree { width: 100%; height: 100%; }
.chat__a p { padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) 2px; color: var(--ink); }

/* ---------- 진행 순서 (점선으로 이은 단계) ---------- */
.ptl { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ptl::before { content: ""; position: absolute; top: 31px; left: 32px; right: calc(25% - 8px); height: 2px; background: repeating-linear-gradient(90deg, var(--dotted) 0 8px, transparent 8px 14px); } /* 순서 표시 */
.ptl__step { position: relative; display: grid; align-content: start; gap: 6px; }
.ptl__ico { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); }
.ptl__step:last-child .ptl__ico { background: var(--brand-red); border-color: var(--brand-red); color: var(--paper); } /* 도착 단계 */
.ptl__no { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; color: var(--warm-ink); }
.ptl__step h3 { font-size: 1.1875rem; font-weight: 800; }
.ptl__step > p:last-child { color: var(--ink-sub); font-size: .9375rem; }

/* 알아 둘 것 (아이콘) */
.applynote .h-sec { margin-bottom: 8px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; border-left-width: 1px; border-left-color: var(--line); }
.checklist__ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--warm-tint); color: var(--brand-red); border-radius: var(--r-card); }
.checklist__ico .ico { width: 22px; height: 22px; }

/* ---------- 지원서: 왼쪽 순서 안내 + 오른쪽 지원서 ---------- */
.formsec { background: var(--surface); }
.formwrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.formwrap--solo { grid-template-columns: minmax(0, 1fr); }
.formwrap .applycard { max-width: none; margin: 0; }
.formwrap--solo .applycard { max-width: 820px; margin: 0 auto; }
.formnav { position: sticky; top: 96px; display: grid; gap: 12px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.formnav__h { font-weight: 800; }
.formnav ol { display: grid; counter-reset: fn; }
.formnav li { counter-increment: fn; }
.formnav a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-sub); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.formnav a::before { content: counter(fn); flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--dotted); border-radius: 2px; font-family: var(--font-display); font-weight: 800; font-size: .75rem; color: var(--ink-sub); }
.formnav a:hover { color: var(--ink); }
.formnav a.is-on { color: var(--ink); font-weight: 800; }
.formnav a.is-on::before { background: var(--ink); border-color: var(--ink); color: var(--bg); } /* 지금 쓰는 칸 */
.formnav__note { padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-sub); }

/* ---------- 상시 접수 띠 (레퍼런스의 마감 카운트다운 대신. 마감이 없으므로 숫자를 세지 않는다) ---------- */
.openband { background: var(--ink); color: var(--night-ink); padding: clamp(56px, 7vw, 96px) var(--gutter); }
.openband__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.openband__state { color: var(--night-sub); font-weight: 700; margin-bottom: 12px; }
.openband__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.openband__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* 머리 그림 변형: 영상 화면 · 공지 쪽지 · 편지 */
.hvis__video { position: absolute; top: 24%; left: 7%; right: 7%; display: grid; gap: 10px; align-content: center; padding: 16px; background: var(--ink); border-radius: var(--r-card); color: var(--night-ink); }
.hvis__vbar { font-size: .75rem; color: var(--night-sub); }
.hvis__vbar b { font-family: var(--font-display); letter-spacing: .12em; color: var(--night-ink); margin-right: 6px; }
.hvis__vscreen { position: relative; aspect-ratio: 16 / 9; background: var(--screen); border-radius: 2px; }
.hvis__vtrack { height: 4px; background: var(--track); }
.hvis__vtrack span { display: block; width: 42%; height: 100%; background: var(--brand-red); }
.hvis__vtitle { font-weight: 700; font-size: .9375rem; }
.hvis__notes { position: absolute; inset: 16% 14% 14%; }
.hvis__note { position: absolute; display: grid; gap: 10px; align-content: start; width: 62%; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: var(--r-card); }
.hvis__note .tag { justify-self: start; }
.hvis__note i { display: block; height: 8px; background: var(--line); border-radius: 2px; }
.hvis__note i:nth-of-type(2) { width: 80%; }
.hvis__note i:nth-of-type(3) { width: 55%; }
.hvis__note--1 { left: 0; top: 0; transform: rotate(-4deg); }
.hvis__note--2 { right: 0; top: 26%; transform: rotate(3deg); border-color: var(--brand-red); }
.hvis__note--3 { left: 10%; bottom: 0; transform: rotate(-1deg); }
.hvis__letter { position: absolute; inset: 24% 10% 22%; display: grid; gap: 10px; align-content: center; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: var(--r-card); transform: rotate(-3deg); }
.hvis__letter::before { content: ""; position: absolute; right: 16px; top: 16px; width: 40px; height: 48px; border: 2px dashed var(--brand-red); border-radius: 2px; } /* 우표 자리 */
.hvis__lto { font-weight: 800; font-size: 1.125rem; }
.hvis__laddr { font-weight: 700; color: var(--warm-ink); font-size: .9375rem; }
.hvis__letter i { display: block; height: 8px; background: var(--line); border-radius: 2px; }
.hvis__letter i:nth-of-type(2) { width: 85%; }
.hvis__letter i:nth-of-type(3) { width: 60%; }
.hvis__lfrom { justify-self: end; font-size: .8125rem; color: var(--ink-sub); }
.phero--short { padding-bottom: clamp(56px, 7vw, 96px); }
.phero--short .hvis { max-width: 360px; }
.phero--center .phero__in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; max-width: 760px; margin: 0 auto; gap: 16px; }
.donemark { width: 120px; }
.donemark .tree { width: 100%; height: auto; }

/* 이름 풀이 LOVE + TREE = 럽트리 */
.nameeq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.nameeq__part { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 120px; }
.nameeq__ico, .nameeq__logo { width: 64px; height: 64px; display: grid; place-items: center; background: var(--warm-tint); color: var(--brand-red); border-radius: 50%; margin-bottom: 6px; }
.nameeq__ico .ico { width: 32px; height: 32px; }
.nameeq__logo { background: transparent; }
.nameeq__logo .tree { width: 60px; height: 60px; }
.nameeq__en { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: .02em; line-height: 1.1; }
.nameeq__part--sum .nameeq__en { color: var(--brand-red); }
.nameeq__part > p:last-child { color: var(--ink-sub); font-size: .9375rem; }
.nameeq__op { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--dotted); }

/* 진행 순서 3단계 변형 (소개의 자라는 단계, 완료 화면) */
.ptl--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ptl--3::before { right: calc(33.3% - 8px); }
.ptl--3 .ptl__step:last-child .ptl__ico { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.ptl--3 .ptl__step--now .ptl__ico { background: var(--brand-red); border-color: var(--brand-red); color: var(--paper); } /* 지금 */
.ptl--3 .ptl__step--next .ptl__ico { border-style: dashed; color: var(--ink-sub); } /* 아직 오지 않은 단계 */
.sec__subhead { margin-bottom: 28px; }
.donenote { display: grid; gap: 6px; margin-top: 40px; padding: 18px 20px; background: var(--surface); border-radius: var(--r-card); color: var(--ink-sub); font-size: .9375rem; }
.donenote a { color: var(--warm-ink); font-weight: 700; }
.donenote + .hero__acts { margin-top: 28px; }

/* 약속 카드 아이콘 */
.promise__top { display: flex; justify-content: space-between; align-items: center; }
.promise__ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--warm-tint); color: var(--brand-red); border-radius: var(--r-card); }

/* 운영 정보 카드 */
.kv--card { padding: 8px clamp(16px, 2.4vw, 28px) 4px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r-card); }
.kv--card > div:last-child { border-bottom: 0; }

/* 인용 */
.pullq { margin: 12px 0 0; padding: 18px 20px; border-left: 3px solid var(--brand-red); background: var(--paper); border-radius: 0 var(--r-card) var(--r-card) 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.6; }

/* 빈 목록 */
.emptybox { display: grid; justify-items: center; gap: 8px; padding: clamp(40px, 6vw, 72px) 16px; text-align: center; color: var(--ink-sub); }
.emptybox__tree { width: 84px; margin-bottom: 8px; }
.emptybox__tree .tree { width: 100%; height: auto; }
.emptybox__title { font-size: 1.25rem; font-weight: 800; color: var(--ink); }

/* 문의 카드 아이콘 */
.contactcard2 .icard__ico { margin-bottom: 4px; }

@media (max-width: 960px) {
  .phero__in, .talkwrap, .formwrap { grid-template-columns: minmax(0, 1fr); }
  .hvis { max-width: 360px; }
  .bignums__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bignums__list li:nth-child(3) { border-left: 0; }
  .bignums__list li:nth-child(n + 3) { border-top: 1px solid var(--night-line); }
  .icards { grid-template-columns: minmax(0, 1fr); }
  .ptl { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ptl::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--dotted) 0 8px, transparent 8px 14px); }
  .ptl__step { padding-left: 84px; min-height: 64px; }
  .ptl__ico { position: absolute; left: 0; top: 0; margin: 0; }
  .formnav { display: none; }
  .ptl--3 { grid-template-columns: minmax(0, 1fr); }
  .phero__text .hero__acts { justify-self: stretch; }
  .openband__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hvis { max-width: 300px; margin-top: 8px; }
  .hvis__chip { font-size: .8125rem; padding: 8px 10px; }
  .hvis__chip--2 { right: -2%; }
  .hvis__chip--3 { left: -2%; }
  .chat__q { max-width: 92%; }
  .chat__a { max-width: 100%; }
  .openband__acts .btn { flex: 1 1 100%; }
  .nameeq { gap: 8px 12px; }
  .nameeq__part { min-width: 88px; }
  .nameeq__part--sum { flex-basis: 100%; }
  .hvis__note { padding: 14px; }
  .hvis__letter { padding: 18px; }
  .hvis__laddr { font-size: .8125rem; overflow-wrap: anywhere; }
  .hvis--video .hvis__chip--3, .hvis--video .hvis__chip--4, .hvis--letter .hvis__chip--3, .hvis--letter .hvis__chip--4 { display: none; } /* 좁은 화면: 꼬리표가 그림을 가리지 않게 */
}
@media (prefers-reduced-motion: reduce) {
  .hvis__chip { animation: none; }
}
