/* 퍼스널X — 레퍼런스 lusion.co (밝은 라벤더 바탕 · 둥근 미디어 카드 · 대형 타이포 · 리본 선)
   페이지: / · /services/ · /process/ · /about/ · /contact/  (src/ → build.py) */
:root {
  --bg: #eef0f6;
  --ink: #0e0f13;
  --muted: #5d606c;
  --line: rgba(14, 15, 19, .12);
  --accent: #ff5121;
  --dark: #16171d;
  --white: #fff;
  --pad: clamp(20px, 2.6vw, 36px);
  --r: 16px;
  --ease: cubic-bezier(.625, .05, 0, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.65 var(--font); letter-spacing: -.01em; word-break: keep-all; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* 공통 글자 */
.caps { font-size: 13px; line-height: 1.5; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.big { position: relative; z-index: 1; font-size: clamp(36px, 7vw, 120px); line-height: 1.08; font-weight: 600; letter-spacing: -.05em; }
[data-lines] > span { display: block; overflow: hidden; padding-bottom: .06em; }
[data-lines] .ln { display: block; }
.indent { padding-left: .9em; }
.note { font-size: 14px; color: var(--muted); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vw, 88px); }
main > section { position: relative; padding: clamp(96px, 13vw, 190px) var(--pad) 0; }

.pill { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .5s var(--ease), background .3s; }
.pill:hover { transform: scale(1.05) rotate(-1deg); }
.pill--dark { background: var(--dark); color: var(--white); }
.pill--lg { height: 58px; padding: 0 30px; font-size: 16px; }
.pill--accent { background: var(--accent); color: var(--white); }
.pill--accent .dot { background: var(--white); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.pill--dark .dot { background: var(--accent); }
.dots { display: inline-block; width: 14px; height: 6px; background: radial-gradient(circle, currentColor 3px, transparent 3.5px) 0 0 / 7px 6px repeat-x; }
.more { display: inline-block; margin-top: 18px; font-weight: 700; border-bottom: 2px solid var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 600; transition: background .3s, color .3s; }
.chips a:hover { background: var(--accent); color: var(--white); }

/* 헤더 */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 16px var(--pad); transition: background .4s, box-shadow .4s; }
.hdr.is-scrolled { background: rgba(238, 240, 246, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr__logo { font-size: 24px; line-height: 1; font-weight: 900; letter-spacing: -.01em; }
.hdr__logo b, .ftr__logo b { color: var(--accent); }
.hdr__nav { display: flex; gap: 6px; }
.hdr__nav a { padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: background .3s; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { background: var(--white); }
.hdr__btns { display: flex; gap: 8px; justify-self: end; }
.hdr__menu { display: none; }
.menu { position: fixed; inset: 0; z-index: 40; background: var(--dark); color: var(--white); display: grid; place-content: center; gap: 40px; padding: var(--pad); }
.menu[hidden] { display: none; }
.menu a { display: block; font-size: clamp(34px, 6vw, 72px); line-height: 1.3; font-weight: 600; letter-spacing: -.04em; transition: color .3s; }
.menu a:hover { color: var(--accent); }
.menu__tel a { font-size: 18px; color: #b9bbc6; }
body.menu-open .hdr { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .hdr__logo { color: var(--white); }

/* 홈: 히어로 */
main > .hero { padding-top: 88px; }
.hero__card { position: relative; height: calc(100svh - 136px); min-height: 460px; border-radius: var(--r); overflow: hidden; background: var(--dark); }
.hero__media { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover; will-change: transform; }
.hero__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 14, .1) 30%, rgba(10, 10, 14, .72)); }
.hero__text { position: absolute; left: clamp(20px, 3vw, 48px); right: clamp(20px, 3vw, 48px); bottom: clamp(24px, 3vw, 48px); z-index: 1; color: var(--white); }
.hero__title { font-size: clamp(34px, 5.2vw, 84px); line-height: 1.12; font-weight: 700; letter-spacing: -.05em; }
.hero__sub { margin-top: 16px; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255, 255, 255, .85); }
.hero__kicker { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14px; font-weight: 700; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
main > .hero { position: relative; }
.hero__phone { position: absolute; z-index: 2; right: calc(var(--pad) + 4vw); bottom: 64px; width: min(clamp(220px, 19vw, 290px), calc((100svh - 280px) / 2.2)); }
.hero__phone .phone { width: 100%; }
.hero__phone .note { margin-top: 10px; text-align: center; color: rgba(255, 255, 255, .75); font-size: 13px; }
@media (min-width: 901px) { .hero__text { right: calc(var(--pad) + 4vw + clamp(220px, 19vw, 290px) + 40px); } }
.marks { display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 12px; font-size: 14px; }
.marks span:nth-child(2), .marks span:nth-child(4) { text-align: center; } .marks span:last-child { text-align: right; }
.marks__label { text-align: center; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* 리본 선 */
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.ribbon path { fill: none; stroke: var(--accent); stroke-width: clamp(18px, 3.2vw, 54px); stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* 홈: 인트로 */
.intro__row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 6vw, 88px); }
.intro__text { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.7; font-weight: 500; }
.worries { padding: 28px; border-radius: var(--r); background: var(--white); }
.worries li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.worries li:first-child { border-top: 0; }
.intro__text { display: grid; gap: 16px; }

/* 홈: AI는 어디를 보고 추천할까 */
.src-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.src-grid li { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r); background: var(--white); }
.src-grid b { font-size: 14px; color: var(--accent); }
.src-grid h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.035em; }
.src-grid p { color: var(--muted); font-size: 16px; flex: 1; }
.src-grid a { font-size: 15px; font-weight: 700; }
.sources__sum { margin-top: clamp(40px, 5vw, 72px); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.4; font-weight: 700; letter-spacing: -.04em; }

/* 서비스 줄 (홈·서비스 공통) */
.feat { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.feat:nth-of-type(even) > .device { order: 2; }
.feat h2, .feat h3 { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -.045em; margin: 8px 0 16px; }
.feat__text > p:not(.caps):not(.for) { color: var(--muted); }
.ticks { display: grid; gap: 8px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 26px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border: 2.5px solid var(--accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.for { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--white); font-size: 15px; font-weight: 600; }
.ai-why { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--accent); font-size: 15px; font-weight: 700; color: var(--ink); }
.ai-why::before { content: "AI가 보는 이유 — "; color: var(--accent); }
.feat--key { padding: clamp(28px, 4vw, 56px); border: 0; border-radius: var(--r); background: var(--white); }
.feat--key .for { background: var(--bg); }
.chips a.is-key { background: var(--accent); color: var(--white); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.also .caps { width: 100%; }
.also .pill { margin-left: auto; }

/* 기기 목업 (xmedia-site 와 같은 틀) */
.device { position: relative; }
.device--device { padding: 0 9% 7% 0; }
.lap__lid { padding: 2.2% 2.2% 2.6%; border-radius: 14px 14px 0 0; background: #151a21; box-shadow: 0 30px 60px -34px rgba(12, 23, 36, .55); }
.lap__scr { display: flex; flex-direction: column; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #fff; }
.lap__bar { display: flex; flex: none; align-items: center; gap: 5px; height: 7%; min-height: 16px; padding: 0 2.2%; background: #ecebe7; }
.lap__bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9c7c1; }
.lap__bar span { flex: 0 1 46%; margin-left: 3%; padding: 0 10px; overflow: hidden; border-radius: 4px; background: #fff; color: #6b7178; font-size: clamp(9px, .7vw, 11px); line-height: 1.7; white-space: nowrap; text-overflow: ellipsis; }
.lap__scr img, .phone__scr img { flex: 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 0; }
.lap__base { position: relative; height: clamp(8px, 1.2vw, 16px); margin: 0 -6%; border-radius: 0 0 14px 14px / 0 0 100% 100%; background: linear-gradient(#dfe2e6, #a9afb6); }
.lap__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 40%; border-radius: 0 0 8px 8px; background: #c3c8ce; transform: translateX(-50%); }
.phone { padding: 2.2%; border-radius: 16% / 7.5%; background: #0e1217; box-shadow: 0 24px 40px -18px rgba(12, 23, 36, .6); }
.device--device .phone { position: absolute; right: 0; bottom: 0; width: 24%; padding: 2%; }
.device--phone .phone { width: min(300px, 62%); margin: 0 auto; padding: 10px; border-radius: 44px; }
.device--phone .phone__scr { border-radius: 34px; }
.phone__scr { position: relative; display: flex; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 12% / 5.6%; background: #fff; }
.phone__scr::before { content: ""; position: absolute; left: 50%; top: 2%; z-index: 1; width: 30%; height: 3.4%; border-radius: 99px; background: #0e1217; transform: translateX(-50%); }
@media (hover: hover) {
  .lap__scr img, .phone__scr img { transition: object-position 1.4s var(--ease); }
  .device:hover img { object-position: 50% 100%; transition-duration: 8s; transition-timing-function: cubic-bezier(.45, 0, .55, 1); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .device.is-live img { animation: shot 14s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
}
@keyframes shot { 0%, 12% { object-position: 50% 0; } 88%, 100% { object-position: 50% 100%; } }

/* 홈: 결과 */
.reel { position: relative; width: 40%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--accent); margin-bottom: clamp(56px, 8vw, 120px); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .3em; color: var(--white); font-size: clamp(28px, 8vw, 150px); font-weight: 400; letter-spacing: -.02em; opacity: var(--label, 0); }
.reel__label i { font-style: normal; font-size: .28em; display: grid; place-items: center; width: 2.6em; height: 1.5em; border-radius: 999px; background: var(--white); color: var(--ink); }
.rows li { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows__n { font-size: 14px; font-weight: 700; color: var(--muted); }
.rows h3 { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.25; font-weight: 700; letter-spacing: -.04em; transition: transform .6s var(--ease), color .3s; }
.rows p { color: var(--muted); }
.rows li:hover h3 { color: var(--accent); transform: translateX(10px); }

/* 홈: 진행 요약 */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 li { padding: 32px; border-radius: var(--r); background: var(--white); }
.steps3 b { font-size: 14px; color: var(--accent); }
.steps3 h3 { font-size: 26px; letter-spacing: -.04em; margin: 8px 0; }
.steps3 p { color: var(--muted); }

/* 공통: 마무리 CTA */
main > .cta { text-align: center; padding-bottom: clamp(96px, 12vw, 180px); }
.cta__title { font-size: clamp(38px, 7.6vw, 130px); line-height: 1.08; font-weight: 700; letter-spacing: -.055em; margin: 14px 0 20px; }
.cta__title > span:last-child { color: var(--accent); }
.cta__sub { max-width: 520px; margin: 0 auto 32px; color: var(--muted); }

/* 하위 페이지 머리 */
main > .page-head { padding-top: clamp(140px, 16vw, 220px); }
.page-head__lead { max-width: 640px; margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px); }
.page-head .chips { margin-top: 32px; }
.page-head .note { margin-top: 20px; }
main > .feats--list { padding-top: clamp(56px, 7vw, 96px); }

/* 진행 방식 */
.timeline li { display: grid; grid-template-columns: minmax(80px, 16vw) 1fr; gap: 24px; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.timeline b { font-size: clamp(48px, 8vw, 120px); line-height: .9; font-weight: 700; letter-spacing: -.05em; color: var(--accent); }
.timeline h2 { font-size: clamp(26px, 3vw, 44px); letter-spacing: -.045em; margin-bottom: 10px; }
.timeline p { max-width: 640px; color: var(--muted); }
.timeline .out { margin-top: 16px; display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; }

/* 왜 퍼스널X */
main > .about-visual { padding-top: clamp(56px, 7vw, 96px); }
.about-visual__card { width: 40%; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #000; }
.about-visual__card video { width: 100%; height: 100%; object-fit: cover; }
.company__box { display: grid; gap: 10px; max-width: 760px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r); background: var(--white); }
.company__name { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.company dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin-top: 12px; font-size: 16px; }
.company dt { color: var(--muted); }

/* 상담 */
main > .contact { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(96px, 12vw, 160px); }
.contact__row { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 110px); }
.contact__side { display: grid; align-content: start; gap: 14px; }
.nums { counter-reset: n; margin-bottom: 24px; }
.nums li { counter-increment: n; padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.nums li::before { content: "0" counter(n); font-size: 13px; font-weight: 700; color: var(--accent); margin-right: 12px; }
.contact__direct { font-size: 20px; font-weight: 700; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r); background: var(--white); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field em { color: var(--accent); font-style: normal; margin-left: 2px; }
.field input { width: 100%; height: 52px; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font: 500 18px var(--font); color: var(--ink); border-radius: 0; }
.field input:focus { outline: 0; border-color: var(--accent); }
.field.is-error input { border-color: #d6311b; }
.err { min-height: 1em; font-size: 13px; color: #d6311b; }
.form__agree { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.form__agree input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form__agree details { margin-top: 6px; color: var(--muted); font-size: 14px; }
.form__agree summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form .pill { grid-column: 1 / -1; justify-self: start; }
.form .pill[aria-busy="true"] { opacity: .6; pointer-events: none; }
.form__msg { grid-column: 1 / -1; min-height: 1.6em; font-size: 15px; }
.form__msg.is-ok { color: #1c7a3e; } .form__msg.is-fail { color: #d6311b; }

/* 푸터 */
.ftr { background: var(--dark); color: #c9cad3; padding: clamp(48px, 6vw, 80px) var(--pad) 28px; border-radius: var(--r) var(--r) 0 0; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; font-size: 15px; }
.ftr nav { display: grid; gap: 6px; font-weight: 700; color: var(--white); }
.ftr a:hover { color: var(--accent); }
.ftr__logo { color: var(--white); font-size: clamp(56px, 16vw, 280px); line-height: .9; font-weight: 900; letter-spacing: -.04em; margin: clamp(48px, 7vw, 100px) 0 20px; }
.ftr__copy { font-size: 13px; color: #8a8c98; }

/* 모션 없음 */
.no-motion .reel { width: 100%; } .no-motion .reel__label { opacity: 1; }

/* 반응형 */
@media (max-width: 1000px) {
  .hdr { grid-template-columns: 1fr auto; }
  .hdr__nav { display: none; }
  .hdr__menu { display: inline-flex; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .intro__row, .contact__row { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat:nth-of-type(even) > .device { order: 0; }
  .rows li { grid-template-columns: 40px 1fr; gap: 6px 14px; }
  .rows p { grid-column: 2; }
  .steps3 { grid-template-columns: 1fr; }
  .src-grid { grid-template-columns: 1fr 1fr; }
  .hero__phone { position: static; width: min(300px, 72%); margin: 28px auto 0; }
  .hero__phone .note { color: var(--muted); }
  .about-visual__card { width: 100%; }
  .ftr__cols { grid-template-columns: 1fr; }
  .also .pill { margin-left: 0; }
}
@media (max-width: 560px) {
  .hdr { padding: 12px var(--pad); }
  .hdr__logo { font-size: 23px; }
  .hdr__btns .pill { height: 42px; padding: 0 16px; }
  .hdr__btns .pill--dark { display: none; }
  .hero__card { height: 74svh; min-height: 420px; }
  .marks span:nth-child(2), .marks span:nth-child(4) { visibility: hidden; }
  .form { grid-template-columns: 1fr; }
  .indent { padding-left: 0; }
  .worries { padding: 20px; }
  .worries li { font-size: 17px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .src-grid { grid-template-columns: 1fr; }
  br.pc { display: none; }
  .ribbon { opacity: .35; }
  .src-grid li { padding: 22px; }
  .hero__btns .pill--lg { height: 50px; padding: 0 20px; font-size: 15px; }
  .device--phone .phone { width: 70%; border-radius: 36px; } .device--phone .phone__scr { border-radius: 28px; }
}
