/* 권민지 변호사 — 병원 층별 안내판
   흰 바탕 · 잉크 헤어라인 · 직각. 버건디는 켜진 줄, 기한, 주요 행동에만 쓴다.
   제목·번호 = 페이퍼로지 / 본문 = 프리텐다드. 서브셋은 ~/kwonminji_site_src/build_fonts.py 로 다시 만든다. 서브셋은 ~/kwonminji_site_src/build_fonts.py 로 다시 만든다. */

@font-face { font-family: "Paperlogy"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(fonts/paperlogy-700.sub.woff2) format("woff2"); }
@font-face { font-family: "Paperlogy"; font-weight: 600; font-style: normal; font-display: swap;
  src: url(fonts/paperlogy-600.sub.woff2) format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 45 920; font-style: normal; font-display: swap;
  src: url(fonts/pretendard.sub.woff2) format("woff2-variations"); }

:root {
  --burg: #7A0026;
  --burg-d: #5C001C;
  --ink: #141416;
  --ink-2: #2E2E33;
  --mute: #5E5E66;
  --line: rgba(20, 20, 22, .17);
  --line-soft: rgba(20, 20, 22, .09);
  --panel: #F3F3F4;
  --paper: #FFFFFF;
  --kakao: #FEE500;

  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --title: "Paperlogy", var(--sans);

  --hd: 4rem;
  --gut: clamp(1rem, 2.2vw, 2rem);
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.75; color: var(--ink-2);
  background: var(--paper); word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--burg); scrollbar-color: var(--ink) var(--panel); scrollbar-width: thin;
}
::selection { background: var(--burg); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: var(--ink); }
:focus-visible { outline: 2px solid var(--burg); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; border-radius: 0; }
em { font-style: normal; color: var(--burg); }

.wrap { width: min(100% - var(--gut) * 2, 90rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.arw { width: 1.75rem; height: .875rem; flex: none; transition: transform .45s var(--out); }

.h2 {
  font-family: var(--title); font-weight: 700; color: var(--ink);
  font-size: clamp(1.625rem, 2.6vw, 2.625rem); line-height: 1.34; letter-spacing: -.028em; text-wrap: balance;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3.25rem; padding: 0 1.5rem; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: .9688rem; letter-spacing: -.01em;
  transition: background .3s var(--out), color .3s var(--out), border-color .3s var(--out);
}
.btn--fill { background: var(--burg); color: #fff; border-color: var(--burg); }
.btn--fill:hover { background: var(--burg-d); border-color: var(--burg-d); }
.btn--line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--line:hover { background: #fff; color: var(--burg); border-color: #fff; }
.btn--line:hover .arw { transform: translateX(.35rem); }
.btn--sm { min-height: 2.375rem; padding: 0 1.125rem; font-size: .8438rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- 헤더 ---------- */
.hd { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.hd__in { height: var(--hd); display: flex; align-items: center; gap: 2.5rem; }
.hd__mark { font-family: var(--title); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; color: var(--ink); display: flex; align-items: baseline; gap: .75rem; }
.hd__mark small { font-family: var(--sans); font-weight: 500; font-size: .75rem; letter-spacing: 0; color: var(--mute); padding-left: .75rem; border-left: 1px solid var(--line); }
.hd__nav { display: flex; gap: 2.25rem; margin-left: auto; font-family: var(--title); font-size: .9063rem; font-weight: 600; color: var(--ink-2); }
.hd__nav a { padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .3s var(--out), color .3s var(--out); }
.hd__nav a:hover { color: var(--burg); border-color: var(--burg); }
.hd__r { display: flex; align-items: center; gap: 1.25rem; padding-left: 2rem; border-left: 1px solid var(--line); height: 2.25rem; }
.hd__tel { font-family: var(--title); font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.hd__tel:hover { color: var(--burg); }

/* ---------- 히어로 ---------- */
.hero { padding-top: clamp(1.25rem, 2.4vw, 2.25rem); }
.hero__grid { display: grid; grid-template-columns: 46fr 28fr 26fr; grid-template-rows: auto 1fr; column-gap: clamp(1rem, 1.9vw, 1.75rem);
  grid-template-areas: "say who form" "index who form"; align-items: stretch; }
.hero__say { grid-area: say; }
.hero__index { grid-area: index; }
.hero__who { grid-area: who; }
.hero .hero__form { grid-area: form; }

.hero h1 {
  margin-top: .875rem; font-family: var(--title); font-weight: 700; color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 3.25rem); line-height: 1.3; letter-spacing: -.032em;
  text-wrap: balance;
}
.hero h1 small { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; letter-spacing: -.02em; color: var(--mute); margin: .25rem 0 .625rem; }
.hero h1 span { display: block; min-height: 2.68em; transition: opacity .38s var(--out), transform .5s var(--out), filter .38s var(--out); }
.hero h1.is-out > span { opacity: 0; transform: translateY(.5rem); filter: blur(3px); }
.hero__first { margin-top: .625rem; display: flex; gap: .875rem; align-items: baseline; font-size: .9688rem; color: var(--ink-2); min-height: 1.75em; transition: opacity .38s var(--out); }
.hero__first b { font-family: var(--title); font-weight: 600; font-size: .875rem; color: var(--burg); flex: none; }
.hero__first.is-out { opacity: 0; }

.dir { position: relative; margin-top: 1.375rem; border-top: 1px solid var(--line); }
.dir__band {
  position: absolute; left: 0; right: 0; top: 0; height: var(--row-h, 3.25rem); background: var(--burg);
  transform: translateY(var(--band-y, 0)); transition: transform .62s var(--out); pointer-events: none;
}
.dir li { border-bottom: 1px solid var(--line); }
.dir__row {
  position: relative; width: 100%; min-height: 3.25rem; padding: .5rem .875rem; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 1rem; text-align: left; color: var(--ink);
  transition: color .3s var(--out) .08s;
}
.dir__n { font-family: var(--title); font-weight: 600; font-size: 1.0625rem; color: var(--burg); width: 2rem; font-variant-numeric: tabular-nums; transition: color .3s var(--out) .08s; }
.dir__q { flex: 1; font-family: var(--title); font-weight: 600; font-size: 1.0313rem; letter-spacing: -.025em; }
.dir__row:hover .arw { transform: translateX(.35rem); }
.dir__row[aria-selected="true"], .dir__row[aria-selected="true"] .dir__n { color: #fff; }
.hero__more { display: inline-flex; align-items: center; gap: .75rem; margin-top: .875rem; font-size: .875rem; font-weight: 600; color: var(--burg); }
.hero__more:hover .arw { transform: translateX(.35rem); }

.hero__who { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.hero__who img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: 50% 18%; }
.hero__who figcaption { background: var(--paper); border-top: 1px solid var(--line); text-align: center; padding: 1rem .5rem 1.125rem; }
.hero__who b { display: block; font-family: var(--title); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; }
.hero__who span { display: block; margin-top: .25rem; font-size: .8125rem; color: var(--mute); }

.hero__form { display: flex; flex-direction: column; background: var(--panel); border-top: 2px solid var(--ink); padding: clamp(1.25rem, 1.9vw, 1.75rem) clamp(1.125rem, 1.7vw, 1.625rem) 1.5rem; }
.hero__form h2 { font-family: var(--title); font-weight: 700; font-size: 1.3125rem; letter-spacing: -.03em; color: var(--ink); line-height: 1.4; }
.form { margin-top: 1.125rem; display: grid; gap: .75rem; }
.f { position: relative; display: block; background: var(--paper); border: 1px solid #BDBDC3; transition: border-color .25s var(--out); }
.f span { position: absolute; left: .875rem; top: .4rem; font-size: .75rem; color: var(--mute); pointer-events: none; }
.f input, .f textarea { display: block; width: 100%; border: 0; background: none; outline: none; padding: 1.3rem .875rem .4rem; font-size: .9688rem; }
.f textarea { resize: vertical; min-height: 5rem; line-height: 1.6; }
.f ::placeholder { color: var(--mute); font-size: .875rem; }
.f:focus-within { border-color: var(--burg); box-shadow: inset 0 0 0 1px var(--burg); }
.agree { display: flex; gap: .5rem; align-items: flex-start; font-size: .8125rem; color: var(--mute); line-height: 1.55; cursor: pointer; }
.agree input { margin: .2rem 0 0; accent-color: var(--burg); flex: none; }
.agree a { text-decoration: underline; color: var(--ink-2); }
.hero__direct { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero__form .form { margin-bottom: 1.5rem; }
.hero__direct p { font-size: .8125rem; color: var(--mute); }
.hero__direct-tel { display: inline-block; margin-top: .125rem; font-family: var(--title); font-weight: 700; font-size: clamp(1.5rem, 2vw, 1.875rem); letter-spacing: -.02em; color: var(--burg); font-variant-numeric: tabular-nums; line-height: 1.3; }
.hero__direct-tel:hover { color: var(--burg-d); }
.hero__direct-k { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line-soft); font-size: .9063rem; font-weight: 600; color: var(--ink); }
.hero__direct-k:hover { color: var(--burg); }
.hero__direct-k:hover .arw { transform: translateX(.35rem); }
.form__note { text-align: center; font-size: .8125rem; color: var(--mute); }
.form__note.is-ok { color: var(--ink); font-weight: 600; }
.form__note.is-err { color: var(--burg); font-weight: 600; }

.rail { margin-top: clamp(1.25rem, 2.2vw, 2rem); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail li { text-align: center; padding: 1.25rem .75rem; font-family: var(--title); font-weight: 600; font-size: .9063rem; color: var(--ink-2); border-left: 1px solid var(--line); letter-spacing: -.01em; }
.rail li:first-child { border-left: 0; }

/* ---------- 상황별 대응 ---------- */
.stage { padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(4rem, 7vw, 7rem); }
.stage__tabs { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.stage__tab {
  background: none; border: 0; border-left: 1px solid var(--line-soft); cursor: pointer; padding: .9375rem .5rem; text-align: center;
  font-size: .875rem; font-weight: 500; color: var(--mute); transition: color .3s var(--out), background .3s var(--out);
}
.stage__tab:first-child { border-left: 0; }
.stage__tab i { font-style: normal; font-family: var(--title); font-weight: 600; margin-right: .5rem; font-variant-numeric: tabular-nums; }
.stage__tab:hover { color: var(--ink); }
.stage__tab.is-on { background: var(--burg); color: #fff; }

.stage__panel { margin-top: 2rem; display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(1.5rem, 3.4vw, 3.5rem); align-items: start; }
.stage__fig { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); }
.stage__fig { position: relative; }
.stage__fig img { width: 100%; height: 100%; object-fit: cover; }
.stage__panel:not([hidden]) .stage__fig img { animation: wipe .9s var(--out) both; }
.stage__panel:not([hidden]) .stage__body { animation: rise .7s var(--out) .08s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); transform: scale(1.06); } to { clip-path: inset(0); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(.875rem); } to { opacity: 1; transform: none; } }

.stage__q { font-family: var(--title); font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.45; letter-spacing: -.035em; color: var(--ink); }
.stage__q span { color: var(--burg); margin-right: .875rem; font-variant-numeric: tabular-nums; }
.stage__dl { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.stage__dl > div { display: grid; grid-template-columns: 7.25rem 1fr; gap: 1rem; padding: 1.125rem 0; border-bottom: 1px solid var(--line-soft); }
.stage__dl dt { font-family: var(--title); font-weight: 600; font-size: .9063rem; color: var(--burg); padding-top: .1rem; }
.stage__dl > div:last-child dt { color: var(--ink); }
.stage__dl dd { font-size: .9688rem; line-height: 1.8; max-width: 38em; }
.steps { counter-reset: s; display: grid; gap: .375rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 1.625rem 1fr; color: var(--mute); }
.steps li::before { content: counter(s); font-family: var(--title); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps li:first-child { color: var(--ink); font-weight: 600; }
.steps li:first-child::before { color: var(--burg); }
.stage__act { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.tel { font-size: .9375rem; color: var(--mute); }
.tel b { font-family: var(--title); font-weight: 600; font-size: 1.1875rem; color: var(--ink); margin-left: .375rem; font-variant-numeric: tabular-nums; }
.tel:hover b { color: var(--burg); }

/* ---------- 소개 ---------- */
.about { padding: clamp(4rem, 7vw, 7rem) 0; background: var(--panel); }
.about__grid { display: grid; grid-template-columns: .74fr 1.26fr; gap: clamp(1.75rem, 5vw, 5.5rem); align-items: start; }
.about__ph { border: 1px solid var(--line); }
.about__ph img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; }
.lead { margin-top: 1.5rem; font-size: 1.0313rem; line-height: 1.9; max-width: 40em; }
.cv { margin-top: 2rem; border-top: 2px solid var(--ink); }
.cv li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; padding: 1.0625rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cv b { font-family: var(--title); font-weight: 600; font-size: 1.0313rem; color: var(--ink); letter-spacing: -.02em; }
.cv span { font-size: .9063rem; color: var(--mute); line-height: 1.7; }
.cv--plain { border-top: 0; margin-top: 0; }
.cv--plain li { display: block; font-size: .9375rem; padding: .8125rem 0; }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 0; font-size: .875rem; font-weight: 600; color: var(--burg); }
.more summary::-webkit-details-marker { display: none; }
.chev { width: 1rem; height: 1rem; flex: none; transition: transform .4s var(--out); }
details[open] > summary .chev { transform: rotate(180deg); }
.about blockquote { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-family: var(--title); font-weight: 600; font-size: clamp(1.125rem, 1.6vw, 1.4375rem); line-height: 1.7; letter-spacing: -.03em; color: var(--ink); max-width: 30em; }

/* ---------- 수행 사례 ---------- */
.cases { padding: clamp(4rem, 7vw, 7rem) 0; }
.cases__list { margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.case { display: grid; grid-template-columns: 8.5rem minmax(0, .9fr) minmax(0, 1.25fr); gap: 1.75rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .3s var(--out); }
.case:hover { background: var(--panel); }
.case__f { font-size: .8125rem; font-weight: 700; color: var(--burg); padding-left: .875rem; }
.case h3 { font-family: var(--title); font-weight: 700; font-size: 1.1875rem; line-height: 1.5; letter-spacing: -.03em; color: var(--ink); }
.case p { font-size: .9375rem; line-height: 1.8; color: var(--mute); }
.fine { margin-top: 1.5rem; font-size: .8125rem; line-height: 1.75; color: var(--mute); max-width: 62em; }

/* ---------- 서류가 오기 전에 ---------- */
.before { background: var(--burg); color: #fff; padding: clamp(3.5rem, 6vw, 6rem) 0; }
.before__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.75rem, 5vw, 5.5rem); align-items: end; }
.before h2 { font-family: var(--title); font-weight: 700; font-size: clamp(1.625rem, 2.6vw, 2.625rem); line-height: 1.34; letter-spacing: -.028em; }
.before p { font-size: 1rem; line-height: 1.9; color: #F3DCE3; max-width: 36em; }
.before .btn { margin-top: 1.75rem; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 7vw, 7rem) 0; }
.faq__grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(1.75rem, 5vw, 5.5rem); align-items: start; }
.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.375rem .25rem; font-family: var(--title); font-weight: 600; font-size: 1.0938rem; letter-spacing: -.025em; color: var(--ink); transition: color .3s var(--out); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--burg); }
.faq__a { padding: 0 .25rem 1.625rem; font-size: .9688rem; line-height: 1.9; color: var(--ink-2); max-width: 44em; }

/* ---------- 마지막 상담 ---------- */
.end { padding: clamp(4rem, 7vw, 7rem) 0; background: var(--panel); }
.end__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.75rem, 5vw, 5.5rem); align-items: start; }
.end__tel { display: inline-block; margin-top: 1.75rem; font-family: var(--title); font-weight: 700; font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 1.1; letter-spacing: -.03em; color: var(--burg); font-variant-numeric: tabular-nums; border-bottom: 2px solid var(--burg); padding-bottom: .25rem; }
.end__tel:hover { color: var(--burg-d); border-color: var(--burg-d); }
.end__ways { margin-top: 2rem; border-top: 1px solid var(--line); max-width: 30rem; }
.end__ways a { display: flex; justify-content: space-between; align-items: center; padding: 1rem .25rem; border-bottom: 1px solid var(--line); font-weight: 500; font-size: .9688rem; color: var(--ink); }
.end__ways a:hover { color: var(--burg); }
.end__ways a:hover .arw { transform: translateX(.35rem); }
.end address { margin-top: 1.75rem; font-size: .875rem; line-height: 1.9; color: var(--mute); }
.end address a { text-decoration: underline; margin-right: .75rem; color: var(--ink-2); }
.end address span { display: block; }
.end__form { background: var(--paper); }

/* ---------- 푸터 ---------- */
.ft { background: var(--ink); color: #B9B9C0; padding: 3rem 0 2.5rem; font-size: .8125rem; line-height: 1.85; }
.ft .hd__mark { color: #fff; }
.ft__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.ft__top nav { display: flex; gap: 1.75rem; }
.ft__top nav a { color: #E4E4E8; }
.ft__top nav a:hover { color: #fff; text-decoration: underline; }
.ft__meta { margin-top: 1.5rem; color: #D2D2D8; }
.ft__fine { margin-top: 1rem; max-width: 70em; }
.ft__copy { margin-top: 1.5rem; color: #8E8E96; }

.mbar { display: none; }

/* ---------- 우측 동그란 버튼: 전화 · 카카오톡 ----------
   상담 폼이 화면에 보이는 동안은 비켜 있고, 폼이 사라지면 들어온다.
   본문을 가리지 않도록 데스크톱에서는 양쪽 여백을 버튼 폭만큼 넓힌다. */
@media (min-width: 1181px) { .wrap { width: min(100% - 15rem, 90rem); } }
.side { position: fixed; right: 1.5rem; bottom: 2rem; z-index: 105; display: none; gap: .75rem; }
@media (min-width: 1181px) { .side { display: grid; } }
.side a {
  position: relative; width: 5.25rem; height: 5.25rem; border-radius: 50%; display: grid; place-items: center; text-align: center;
  opacity: 0; visibility: hidden; transform: translateX(2.5rem) scale(.9);
  transition: opacity .5s var(--out), transform .7s var(--out), visibility 0s linear .7s, background .3s var(--out);
}
.side.is-on a { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--out), transform .7s var(--out), background .3s var(--out); }
.side.is-on a:nth-child(2) { transition-delay: .07s; }
.side b { font-family: var(--title); font-weight: 700; font-size: .9688rem; line-height: 1.25; letter-spacing: -.02em; }
.side span {
  position: absolute; right: calc(100% + .625rem); top: 50%; transform: translate(.5rem, -50%); white-space: nowrap; pointer-events: none;
  background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; padding: .5rem .875rem; opacity: 0; font-variant-numeric: tabular-nums;
  transition: opacity .3s var(--out), transform .4s var(--out);
}
.side a:hover span, .side a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.side__tel { background: var(--burg); color: #fff; }
.side__tel:hover { background: var(--burg-d); }
.side__kakao { background: var(--kakao); color: #2A1B00; }
.side__kakao:hover { background: #F2DA00; }

/* ---------- 첫 화면 스크롤 표시 ---------- */
.cue { position: absolute; left: 50%; bottom: .875rem; z-index: 5; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .4375rem; pointer-events: none; transition: opacity .5s var(--out), transform .6s var(--out); }
@media (min-width: 1181px) { .cue { display: flex; } }
.cue span { font-size: .6875rem; font-weight: 700; letter-spacing: .28em; color: var(--ink); padding-left: .28em; }
.cue i { position: relative; width: 1px; height: 1.625rem; background: var(--line); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: var(--burg); animation: cue 1.9s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes cue { 0% { transform: translateY(-110%); } 60%, 100% { transform: translateY(240%); } }
.cue.is-gone { opacity: 0; transform: translateX(-50%) translateY(.75rem); }

/* 데스크톱: 히어로가 첫 화면을 정확히 채운다. 안내판·사진·폼은 가운데, 경력 레일과 SCROLL은 바닥. */
@media (min-width: 1181px) {
  .hero { position: relative; min-height: calc(100svh - var(--hd)); display: flex; flex-direction: column; padding-bottom: 5.25rem; }
  .hero__grid { margin-block: auto; }
  .rail { margin-top: clamp(1.25rem, 2.2vw, 2rem); }
  /* 폼 패널: 빈 회색을 남기지 않고 '지금 상황' 칸이 남는 높이를 받는다 */
  .hero .hero__form .form { flex: 1; grid-template-rows: auto auto 1fr; }
  .hero .hero__form .f--area { display: flex; flex-direction: column; }
  .hero .hero__form .f--area textarea { flex: 1; min-height: 5rem; resize: none; }
  .hero__direct { margin-top: 0; }
}

/* ============ 반응형 ============ */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; grid-template-areas: "say who" "index who" "form form"; row-gap: 1.5rem; }
  .hero__form .form { grid-template-columns: 1fr 1fr; }
  .hero__form .f--area, .hero__form .agree, .hero__form .btn, .hero__form .form__note { grid-column: 1 / -1; }
  .hd__nav { display: none; }
  .hd__r { margin-left: auto; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  body { padding-bottom: 3.5rem; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: grid; grid-template-columns: 1.25fr 1fr 1fr; background: var(--burg); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; color: #fff; font-weight: 700; font-size: .9375rem; border-left: 1px solid rgba(255,255,255,.22); }
  .mbar a:not(.mbar__go) { background: var(--ink); }
  .mbar__k { box-shadow: inset 0 3px 0 var(--kakao); }
}
@media (max-width: 900px) {
  :root { --hd: 3.5rem; }
  .hd__r { border-left: 0; padding-left: 0; }
  .hd__tel { display: none; }
  .hd__mark small { display: none; }
  .hero { padding-top: 0; }
  .hero__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "who" "say" "form" "index"; gap: 0; width: 100%; }
  .hero__who { border: 0; border-bottom: 1px solid var(--line); flex-direction: column; }
  .hero__who img { aspect-ratio: 16 / 7; flex: none; object-position: 50% 17%; }
  .hero__who figcaption { display: flex; justify-content: center; align-items: baseline; gap: .75rem; padding: .5rem 1rem; }
  .hero__who b { font-size: 1.125rem; }
  .hero__who span { margin: 0; }
  .hero__say { padding: 1rem var(--gut) 0; }
  .hero h1 small { font-size: .9375rem; margin-bottom: .375rem; }
  .hero h1 span { min-height: 2.68em; }
  .hero__index { padding: 1.75rem var(--gut) 0; }
  .hero .hero__form { margin: 1rem var(--gut) 0; padding: 1rem 1rem 1.25rem; }
  .hero .hero__form h2 { display: none; }
  .hero .hero__form .form { margin-top: 0; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .hero .hero__form .f--area { display: none; }
  .hero .hero__form .agree, .hero .hero__form .btn, .hero .hero__form .form__note { grid-column: 1 / -1; }
  .rail { grid-template-columns: 1fr 1fr; margin-top: 2rem; }
  .rail li { border-left: 0; border-top: 1px solid var(--line); padding: 1rem .5rem; font-size: .8125rem; }
  .rail li:nth-child(-n+2) { border-top: 0; }
  .rail li:nth-child(even) { border-left: 1px solid var(--line); }
  .stage__tabs { grid-template-columns: repeat(3, 1fr); }
  .stage__tab:nth-child(4) { border-left: 0; }
  .stage__tab:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .stage__panel, .about__grid, .before__in, .faq__grid, .end__grid { grid-template-columns: 1fr; }
  .stage__dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .about__ph { max-width: 20rem; }
  .cv li { grid-template-columns: 1fr; gap: .25rem; }
  .case { grid-template-columns: 1fr; gap: .375rem; padding: 1.25rem 0; }
  .case__f { padding-left: 0; }
  .ft__top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  body { padding-bottom: 3.5rem; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: grid; grid-template-columns: 1.25fr 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0); background: var(--burg); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; color: #fff; font-weight: 700; font-size: .9375rem; border-left: 1px solid rgba(255,255,255,.22); }
  .mbar a:first-child { border-left: 0; }
  .mbar a:not(.mbar__go) { background: var(--ink); }
  .mbar__k { box-shadow: inset 0 3px 0 var(--kakao); }
}
@media (min-width: 1800px) { html { font-size: 18px; } }
@media (min-width: 2400px) { html { font-size: 20.5px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* hidden 속성이 display:grid에 덮이지 않게 */
[hidden] { display: none !important; }

/* 키 낮은 노트북(1280x800, 1366x768): 히어로를 조여서 경력 레일까지 첫 화면에 넣는다.
   이 높이에서는 SCROLL 표시를 세우지 않는다(접히는 선 아래로 밀려나기 때문). */
@media (min-width: 1181px) and (max-height: 880px) {
  .cue { display: none; }
  .hero { padding-top: .75rem; padding-bottom: 1rem; }
  .hero h1 { font-size: clamp(1.625rem, 2.45vw, 2.375rem); margin-top: .25rem; }
  .hero h1 small { font-size: .9375rem; margin: 0 0 .25rem; }
  .hero__first { margin-top: .375rem; font-size: .9063rem; }
  .dir { margin-top: .875rem; }
  .dir__row { min-height: 2.5rem; padding-block: .125rem; }
  .hero__more { margin-top: .5rem; font-size: .8125rem; }
  .hero__who figcaption { padding: .5rem .5rem .625rem; }
  .hero__who b { font-size: 1.1875rem; }
  .hero__form { padding-top: .875rem; padding-bottom: .875rem; }
  .hero__form h2 { font-size: 1.125rem; }
  .hero__form .form { gap: .4375rem; margin-top: .625rem; }
  .hero .hero__form .form { margin-bottom: .75rem; }
  .f input, .f textarea { padding: 1.1rem .75rem .25rem; font-size: .9063rem; }
  .f span { top: .25rem; left: .75rem; }
  .hero .hero__form .f--area textarea { min-height: 3rem; }
  .hero__form .btn { min-height: 2.75rem; }
  .form__note { font-size: .75rem; }
  .hero__direct { padding-top: .625rem; }
  .hero__direct-tel { font-size: 1.375rem; }
  .hero__direct-k { margin-top: .4375rem; padding-top: .4375rem; }
  .rail { margin-top: .875rem; }
  .rail li { padding: .75rem .5rem; font-size: .8125rem; }
}


/* 히어로: C안 채택 (2026-09-20) — 옅은 회색 면 위에 안내판, 폼만 흰 판으로 뜬다. 아래 섹션은 A안 그대로. */
.hero { background: var(--panel); }
.hero .hero__form { background: var(--paper); }
.hero__who { border: 0; }
.rail { background: var(--paper); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
@media (min-width: 1181px) { .hero__grid { grid-template-columns: 42fr 32fr 26fr; } }
@media (max-width: 900px) { .rail { border-left: 0; border-right: 0; } .hero__who figcaption { background: var(--panel); border-top: 0; } }

/* ============================================================
   모바일 최적화 (2026-09-21, 허탁님 지시) — PC 는 건드리지 않는다
   ① 하단 고정바: 전화 상담 · 카톡 상담 두 개만
   ② 인물 사진: 4:5 원본을 16:7 띠로 눌러 가로로 잘리던 것을 명함형 카드로
   ③ iOS 입력 확대 방지, 터치 영역, 안전영역
   ============================================================ */
@media (max-width: 1180px) {
  /* ① 하단바 — 두 칸, 전화는 버건디 / 카톡은 카카오 노랑 */
  .mbar { grid-template-columns: 1fr 1fr; background: var(--burg); }
  .mbar a {
    min-height: 3.5rem; padding: .75rem .5rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    font-size: 1rem; font-weight: 700; letter-spacing: -.02em; border-left: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .mbar a:not(.mbar__go) { background: none; }          /* 없어진 클래스의 잔여 규칙 해제 */
  .mbar__tel { background: var(--burg); color: #fff; }
  .mbar__tel:active { background: var(--burg-d); }
  .mbar__k { background: var(--kakao); color: #2A1B00; box-shadow: none; }
  .mbar__k:active { background: #F2DA00; }
  body { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 900px) {
  /* ② 인물 사진 — 세로 비율 그대로 두고 옆에 이름을 세운다 */
  .hero__who {
    display: grid; grid-template-columns: 42% 1fr; align-items: center;
    gap: clamp(.875rem, 4vw, 1.25rem);
    margin: 0 var(--gut); padding: .875rem 0 1.125rem;
    border: 0; border-bottom: 1px solid var(--line); background: none;
  }
  .hero__who img {
    aspect-ratio: 3 / 4; height: auto; flex: none;
    object-fit: cover; object-position: 50% 10%;
    background: var(--panel);
  }
  .hero__who figcaption {
    background: none; border: 0; padding: 0; text-align: left;
    display: block; align-self: center;
  }
  .hero__who b { font-size: clamp(1.375rem, 6.4vw, 1.75rem); line-height: 1.25; }
  .hero__who span {
    display: block; margin-top: .5rem; padding-top: .5rem;
    border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.6;
  }
  .hero__say { padding-top: 1.375rem; }

  /* ③ iOS 는 16px 미만 입력칸에 초점이 가면 화면을 확대한다 — 확대되면 레이아웃이 밀린다 */
  .f input, .f textarea, .f select { font-size: 1rem; }
  .f input, .f textarea { padding: 1.375rem .875rem .5rem; }
  .agree { padding: .375rem 0; }                        /* 체크박스 터치 여유 */
  .agree input { width: 1.125rem; height: 1.125rem; }
  .hd__nav a, .ft__top nav a, .end__ways a { padding-block: .625rem; }
  a, button { -webkit-tap-highlight-color: rgba(122, 0, 38, .12); }

  /* 표: 화면 밖으로 밀지 않고 손으로 밀어 보게 한다 */
  .cmpwrap { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
}

/* 손가락으로 누르는 것들에 최소 높이를 준다 (모바일·태블릿) */
@media (max-width: 1180px) {
  .btn--sm { min-height: 2.75rem; padding-inline: 1rem; }
  .hero__more, .post__cat, .pnav a, .end__ways a { padding-block: .75rem; }
  .agree { gap: .625rem; }
  .agree input { width: 1.375rem; height: 1.375rem; margin-top: .125rem; }
  .agree a { display: inline-block; padding: .5rem .25rem; margin: -.5rem -.25rem; }
  .faq__item summary { padding-block: 1.125rem; }
  .end address a { display: inline-block; padding: .5rem .5rem .5rem 0; margin-right: .25rem; }
}
