/* 모로 헤어 아틀리에 — 우윳빛 라일락 바탕, 먹빛 가는 글자, 전기 보라 한 점. 사진은 모두 알약(캡슐) 모양. */
:root {
  --milk: #eeebf2;
  --paper: #f8f7fa;
  --ink: #1c1922;
  --ink-soft: #57516a;
  --violet: #4b2fbf;
  --lilac: #b8acd6;
  --line: rgba(28, 25, 34, .14);
  --f-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-latin: "Bodoni Moda", "Didot", serif;
  --gutter: clamp(20px, 4.4vw, 72px);
  --rail: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--milk); color: var(--ink); font: 400 16px/1.7 var(--f-body); letter-spacing: -0.015em; word-break: keep-all; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2, h3 { font-weight: 300; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 70; background: var(--violet); color: #fff; padding: 10px 16px; }
.skip:focus { top: 48px; }

.h2 { font-size: clamp(34px, 5vw, 72px); font-weight: 250; line-height: 1.12; letter-spacing: -0.05em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color .25s, color .25s, transform .25s; }
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: var(--ink); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.text-link { display: inline-block; margin-top: 24px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--violet); }

/* 머리: 휴대폰은 위 막대 + 오른쪽 서랍, 넓은 화면은 왼쪽 세로 레일 */
.rail { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gutter); background: rgba(238, 235, 242, .92); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo span { font-family: var(--f-latin); font-style: italic; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.logo small { font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; }
.rail-menu { position: relative; z-index: 3; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 7px; }
.rail-menu i { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .35s; }
.rail-menu[aria-expanded="true"] i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
.rail-menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
.rail-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(86vw, 360px); display: flex; flex-direction: column; gap: 4px; padding: 96px 32px 32px; background: var(--paper); box-shadow: -30px 0 60px -30px rgba(28, 25, 34, .4); transform: translateX(105%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); visibility: hidden; }
.rail-nav.is-open { transform: none; visibility: visible; }
.rail-nav a { padding: 12px 0; font-size: 30px; font-weight: 250; letter-spacing: -0.04em; text-decoration: none; border-bottom: 1px solid var(--line); }
.rail-nav .rail-nav-book { margin-top: auto; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font-size: 17px; font-weight: 600; text-align: center; padding: 16px; }
.ce-nav-open .rail::after { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(28, 25, 34, .35); }
.rail-book { display: none; }

@media (min-width: 1024px) {
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); height: auto; flex-direction: column; justify-content: space-between; padding: 64px 0 0; border-bottom: 0; border-right: 1px solid var(--line); background: var(--milk); }
  .logo { writing-mode: vertical-rl; transform: rotate(180deg); align-items: center; gap: 14px; }
  .logo span { font-size: 40px; }
  .rail-menu { display: none; }
  .rail-nav { position: static; width: auto; transform: none; visibility: visible; background: none; box-shadow: none; padding: 0; gap: 26px; align-items: center; }
  .rail-nav a { writing-mode: vertical-rl; font-size: 15px; font-weight: 500; letter-spacing: .08em; padding: 0; border: 0; }
  .rail-nav a:hover, .rail-nav a[aria-current] { color: var(--violet); }
  .rail-nav .rail-nav-book { display: none; }
  .rail-book { display: flex; align-items: center; justify-content: center; width: 100%; height: 132px; background: var(--violet); color: #fff; text-decoration: none; writing-mode: vertical-rl; font-weight: 600; letter-spacing: .3em; transition: background-color .25s; }
  .rail-book:hover { background: var(--ink); }
  .wrap { margin-left: var(--rail); }
}

/* 첫 화면 — 대표 효과 1: 사진 기둥 두 줄이 서로 반대로 흐른다 */
.hero { display: grid; gap: 40px; padding: 40px var(--gutter) 56px; }
.hero-meta { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.hero-title { margin-top: 28px; font-size: clamp(50px, 13vw, 140px); font-weight: 200; line-height: 1.02; letter-spacing: -0.07em; }
.hero-lead { margin-top: 28px; max-width: 26em; color: var(--ink-soft); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 460px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.col { overflow: hidden; }
.col-track img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px; margin-bottom: 12px; background: var(--lilac); }
.ce-js .col-up .col-track { animation: flow-up 46s linear infinite; }
.ce-js .col-down .col-track { animation: flow-down 46s linear infinite; }
.hero-cols:hover .col-track { animation-play-state: paused; }
@keyframes flow-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes flow-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 64px; min-height: calc(100vh - 36px); padding: 0 var(--gutter); align-items: center; }
  .hero-text { padding: 80px 0; }
  .hero-cols { height: calc(100vh - 36px); gap: 18px; }
  .col-track img { margin-bottom: 18px; }
  .col-down { padding-top: 120px; }
}

.sec-head { display: grid; gap: 16px; margin-bottom: 40px; }
.sec-head p { max-width: 30em; color: var(--ink-soft); }
@media (min-width: 1024px) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 64px; } .sec-head p { justify-self: end; } }

/* 시술 목록 — 대표 효과 2: 줄 위에 커서를 올리면 사진이 커서를 따라온다 */
.services { position: relative; padding: 88px var(--gutter); background: var(--paper); }
.svc { border-top: 1px solid var(--ink); }
.svc-row a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.svc-name { font-size: clamp(28px, 4.4vw, 60px); font-weight: 250; letter-spacing: -0.05em; line-height: 1.15; transition: transform .45s cubic-bezier(.2, .7, .2, 1), color .3s; }
.svc-desc { grid-column: 1; font-size: 14px; color: var(--ink-soft); }
.svc-price { grid-column: 2; grid-row: 1; align-self: center; font-family: var(--f-latin); font-style: italic; font-size: 18px; font-synthesis: none; }
.svc-thumb { grid-column: 2; grid-row: 2; justify-self: end; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.follow { display: none; }
@media (min-width: 1024px) {
  .services { padding: 160px var(--gutter); }
  .svc-row a { grid-template-columns: 1.2fr 1fr auto; align-items: center; padding: 28px 0; }
  .svc-desc { grid-column: 2; grid-row: 1; }
  .svc-price { grid-column: 3; font-size: 22px; min-width: 7em; text-align: right; }
  .svc-thumb { display: none; }
  .svc-row a:hover .svc-name, .svc-row a:focus-visible .svc-name { transform: translateX(24px); color: var(--violet); }
}
@media (min-width: 1024px) and (pointer: fine) {
  .follow { display: block; position: fixed; left: 0; top: 0; z-index: 30; width: 240px; height: 320px; margin: -160px 0 0 -120px; border-radius: 999px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-400px, -400px, 0) scale(.6); transition: opacity .3s; will-change: transform; }
  .follow.is-on { opacity: 1; }
  .follow img { width: 100%; height: 100%; object-fit: cover; }
}

/* 디자이너 */
.designers { padding: 88px 0 88px var(--gutter); }
.designers .sec-head { padding-right: var(--gutter); }
.people { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--gutter); scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.people li { flex: 0 0 62vw; max-width: 300px; scroll-snap-align: start; }
.people img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 24px 24px; }
.people h3 { margin-top: 18px; font-size: 28px; font-weight: 300; letter-spacing: -0.04em; }
.people h3 span { font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.people p { font-size: 14px; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .designers { padding: 160px var(--gutter); }
  .designers .sec-head { padding-right: 0; }
  .people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; overflow: visible; padding: 0; }
  .people li { max-width: none; }
  .people li:nth-child(even) { margin-top: 72px; }
}

/* 공간 */
.atelier { position: relative; padding: 0 var(--gutter) 88px; }
.atelier img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }
.atelier-text { position: relative; margin: -48px 16px 0; padding: 32px 26px; background: var(--paper); border-radius: 24px; }
.atelier-text p { margin-top: 16px; color: var(--ink-soft); max-width: 28em; }
@media (min-width: 1024px) {
  .atelier { padding-bottom: 160px; }
  .atelier img { aspect-ratio: 21 / 9; border-radius: 36px; }
  .atelier-text { position: absolute; left: calc(var(--gutter) + 48px); bottom: 208px; width: 460px; margin: 0; padding: 44px; }
}

/* 후기 */
.voices { padding: 0 var(--gutter) 88px; }
.voice-grid { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.voice-grid li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.voice-grid blockquote { font-size: 20px; font-weight: 300; line-height: 1.6; letter-spacing: -0.03em; }
.voice-grid p { margin-top: 14px; font-size: 13px; color: var(--violet); font-weight: 600; }
@media (min-width: 1024px) {
  .voices { padding-bottom: 160px; }
  .voice-grid { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .voice-grid li { padding: 40px 0; }
  .voice-grid blockquote { font-size: 24px; }
}

/* 예약 (어두운 구역) */
.book { background: var(--ink); color: var(--paper); padding: 88px var(--gutter); display: grid; gap: 48px; }
.book-title { font-size: clamp(72px, 16vw, 200px); font-weight: 150; letter-spacing: -0.08em; line-height: .95; }
.book-main p { margin-top: 24px; max-width: 30em; color: rgba(248, 247, 250, .72); }
.book .btn-line { border-color: rgba(248, 247, 250, .5); color: var(--paper); }
.book .btn-line:hover { background: var(--paper); color: var(--ink); }
.book .btn-violet:hover { background: var(--paper); color: var(--ink); }
.book-info { margin: 0; display: grid; gap: 0; }
.book-info div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(248, 247, 250, .18); }
.book-info dt { color: var(--lilac); font-size: 14px; font-weight: 600; }
.book-info dd { margin: 0; }
.book-info small { color: rgba(248, 247, 250, .6); font-size: 13px; }
@media (min-width: 1024px) { .book { grid-template-columns: 1.2fr 1fr; padding: 160px var(--gutter); align-items: end; gap: 96px; } }

.foot { padding: 48px var(--gutter) 110px; font-size: 13px; color: var(--ink-soft); }
.foot-logo { font-family: var(--f-latin); font-style: italic; font-size: 44px; color: var(--ink); line-height: 1; margin-bottom: 18px; }
.foot-small { margin-top: 8px; font-size: 12px; opacity: .8; }
@media (min-width: 1024px) { .foot { padding-bottom: 56px; } }

.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(75, 47, 191, .6); }
@media (min-width: 1024px) { .fab { display: none; } }

/* ===== 서브 페이지 ===== */
.sub-head { padding: 56px var(--gutter) 56px; }
.crumb { font-size: 13px; color: var(--ink-soft); }
.crumb a { text-decoration: none; }
.sub-title { margin-top: 20px; font-size: clamp(46px, 10vw, 128px); font-weight: 200; line-height: 1.03; letter-spacing: -0.07em; }
.sub-lead { margin-top: 24px; max-width: 32em; color: var(--ink-soft); font-size: 17px; }
@media (min-width: 1024px) { .sub-head { padding: 120px var(--gutter) 96px; } }

.split { display: grid; gap: 36px; padding: 0 var(--gutter) 88px; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 28px 28px; }
.split-text p { color: var(--ink-soft); max-width: 32em; }
.split-text p + p { margin-top: 16px; }
.split-text .h2 { margin-bottom: 24px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: center; padding-bottom: 160px; } }

.bios { background: var(--paper); padding: 88px var(--gutter); }
.bio-list { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.bio { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.bio img { width: 88px; height: 116px; object-fit: cover; border-radius: 999px; }
.bio h3 { font-size: 30px; font-weight: 300; letter-spacing: -0.04em; }
.bio h3 span { font-size: 14px; color: var(--ink-soft); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.bio p { margin-top: 8px; color: var(--ink-soft); max-width: 40em; }
.bio ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bio li { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
@media (min-width: 1024px) { .bios { padding: 160px var(--gutter); } .bio { grid-template-columns: 140px 1fr; gap: 48px; padding: 40px 0; } .bio img { width: 140px; height: 186px; } }

.things { padding: 88px var(--gutter); display: grid; gap: 16px; }
.things figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.things figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.things figcaption b { display: block; color: var(--ink); font-size: 18px; font-weight: 500; }
@media (min-width: 1024px) { .things { grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0 var(--gutter) 160px; } .things figure:nth-child(2) { margin-top: 80px; } }

/* 가격표 */
.price-sec { padding: 0 var(--gutter) 64px; }
.price-sec + .price-sec { padding-top: 24px; }
.price-sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(30px, 4vw, 52px); font-weight: 250; letter-spacing: -0.05em; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.price-sec h2 small { font-family: var(--f-latin); font-style: italic; font-size: 18px; color: var(--ink-soft); letter-spacing: 0; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: right; font-size: 15px; }
.ptable thead th { font-size: 12px; color: var(--ink-soft); font-weight: 600; padding: 12px 0; }
.ptable th[scope="row"] { text-align: left; font-weight: 500; }
.ptable th[scope="row"] small { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.ptable td { font-family: var(--f-latin); font-style: italic; font-synthesis: none; width: 22%; }
.ptable td.na { font-family: var(--f-body); font-style: normal; color: var(--ink-soft); }
.ptable a { text-decoration: none; }
.ptable a:hover { color: var(--violet); }
@media (min-width: 1024px) { .price-sec { padding-bottom: 96px; } .ptable th, .ptable td { padding: 20px 0; font-size: 17px; } }

.sig { background: var(--ink); color: var(--paper); padding: 88px var(--gutter); display: grid; gap: 40px; }
.sig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px; }
.sig-kicker { color: var(--lilac); font-size: 14px; font-weight: 600; }
.sig .h2 { margin-top: 12px; }
.sig-lead { margin-top: 20px; color: rgba(248, 247, 250, .75); max-width: 32em; }
.steps { margin-top: 32px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid rgba(248, 247, 250, .16); }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--f-latin); font-style: italic; font-size: 30px; line-height: 1; color: var(--lilac); }
.steps b { font-weight: 600; }
.steps span { color: rgba(248, 247, 250, .7); font-size: 15px; }
.sig-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.sig-facts div { display: grid; }
.sig-facts dt { font-size: 13px; color: var(--lilac); }
.sig-facts dd { margin: 0; font-family: var(--f-latin); font-style: italic; font-size: 30px; font-synthesis: none; }
.sig-facts dd small { font-family: var(--f-body); font-style: normal; font-size: 14px; margin-left: 4px; }
.sig .btn-line { border-color: rgba(248, 247, 250, .5); color: var(--paper); }
@media (min-width: 1024px) { .sig { grid-template-columns: .8fr 1.2fr; gap: 120px; padding: 160px var(--gutter); align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ce-js .col-up .col-track, .ce-js .col-down .col-track { animation: none; }
  .rail-nav { transition: none; }
  .svc-name { transition: none; }
}
