/* =========================================================
   젬마의원 메인 시안 v2
   로고의 '모낭 점 + 머리카락 선'을 그래픽 시스템으로:
   선 = 피부선·머리카락, 점 = 모낭, 금색 링 = 루페 렌즈·온도 다이얼
   ========================================================= */
:root {
  --night: #0b0f0d;          /* 영상·첫 화면 */
  --night-2: #111815;
  --green: #1f5744;          /* 로고 그린 — 넓은 면으로 */
  --green-2: #194a3a;
  --gold: #ddbb66;           /* 로고·링 전용 */
  --white: #ffffff;
  --off: #f4f4f1;
  --ink: #111513;
  --mute: #66706b;
  --line-d: rgba(255, 255, 255, .14);
  --line-l: rgba(17, 21, 19, .12);
  --pad: clamp(20px, 5vw, 80px);
  --gnb-h: 84px;
  --cbar-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--white); background: var(--night); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
ol, ul { list-style: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.in-frame { scrollbar-width: none; }
html.in-frame::-webkit-scrollbar { display: none; }
.wrap { width: 100%; max-width: calc(1360px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.v1 .only-v2, .v2 .only-v1 { display: none !important; }
/* 첫 로딩: 움직임 준비 전 깜빡임 방지 (head에 3초 안전장치) */
.pre .hero__copy, .pre .hero__data, .pre .hero__chips, .pre .gnb { visibility: hidden; }

/* ---------- 상단 메뉴 ---------- */
.gnb { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--gnb-h); color: var(--white); transition: background .4s var(--ease), color .4s var(--ease), height .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.gnb__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding-inline: var(--pad); max-width: calc(1360px + 2 * var(--pad)); margin-inline: auto; }
.gnb__logo { justify-self: start; position: relative; }
.gnb__logo img { height: 40px; width: auto; }
.gnb__logo .l-light { display: none; }
.gnb__nav { display: flex; gap: clamp(20px, 2.4vw, 40px); font-size: 15px; font-weight: 500; }
.gnb__nav a { opacity: .86; transition: opacity .3s; padding: 8px 0; }
.gnb__nav a:hover { opacity: 1; }
.gnb__util { justify-self: end; display: flex; align-items: center; gap: 20px; font-size: 13px; }
.gnb__util .lang { display: flex; gap: 10px; font-weight: 600; letter-spacing: .06em; }
.gnb__util .lang a { opacity: .45; } .gnb__util .lang a.on { opacity: 1; }
.gnb__login { opacity: .7; font-weight: 600; }
.gnb__cta { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; border: 1px solid currentColor; border-radius: 2px; transition: background .3s, color .3s; }
.gnb__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.gnb__burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.gnb__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; }
.gnb__burger span:nth-child(1) { top: 18px; } .gnb__burger span:nth-child(2) { top: 26px; }
.gnb.is-scrolled { background: rgba(11, 15, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-d); }
.gnb.is-light { color: var(--ink); }
.gnb.is-light .l-dark { display: none; } .gnb.is-light .l-light { display: block; }
.gnb.is-light.is-scrolled { background: rgba(255, 255, 255, .9); border-color: var(--line-l); }
.gnb.is-light .gnb__cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.at-hero .gnb__logo { opacity: 0; }   /* 첫 화면에서는 큰 로고가 대신함 */
.mnav { position: fixed; inset: 0; z-index: 70; background: var(--night); padding: 100px var(--pad) 40px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav a { font-size: 26px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.mnav__close { position: absolute; top: 14px; right: calc(var(--pad) - 10px); width: 44px; height: 44px; font-size: 30px; }

/* ---------- 왼쪽 '한 가닥' 진행선 ---------- */
.strandbar { position: fixed; z-index: 40; left: clamp(10px, 1.6vw, 26px); top: calc(var(--gnb-h) + 20px); bottom: calc(var(--cbar-h) + 20px); width: 9px; pointer-events: none; }
.strandbar::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .12); }
.strandbar i { position: absolute; left: 4px; top: 0; width: 1px; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.strandbar b { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); transform: translateY(-4px); }
.on-light .strandbar::before { background: rgba(17, 21, 19, .12); }

/* ---------- 퀵메뉴 · 하단 상담 바 ---------- */
.quick { position: fixed; right: clamp(14px, 1.5vw, 26px); bottom: calc(var(--cbar-h) + 26px); z-index: 45; display: flex; flex-direction: column; gap: 6px; }
.quick a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-align: center; background: rgba(17, 24, 21, .9); color: var(--white); border: 1px solid var(--line-d); transition: transform .3s var(--ease); }
.quick a:hover { transform: translateY(-2px); }
.quick a svg { width: 20px; height: 20px; margin: 0 auto 2px; }
.quick .q-kakao { background: #fee500; color: #2b1718; border-color: #fee500; }
.quick .q-naver { background: #03c75a; color: #fff; border-color: #03c75a; }
.quick .q-top { display: none; }
.past-hero .quick .q-top { display: grid; }
.cbar { position: fixed; inset: auto 0 0 0; z-index: 44; height: var(--cbar-h); background: rgba(11, 15, 13, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-d); color: var(--white); }
.cbar__in { height: 100%; display: flex; align-items: center; gap: 22px; max-width: calc(1360px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.cbar__t { margin-right: auto; display: flex; align-items: baseline; gap: 18px; white-space: nowrap; }
.cbar__t strong { font-size: 15px; font-weight: 700; }
.cbar__t a { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cbar label.f { display: flex; align-items: center; gap: 12px; height: 44px; border-bottom: 1px solid rgba(255, 255, 255, .35); width: clamp(140px, 13vw, 200px); }
.cbar label.f span { font-size: 13px; opacity: .55; white-space: nowrap; }
.cbar label.f input { width: 100%; border: 0; outline: 0; background: transparent; color: inherit; font-size: 15px; }
.cbar .agree { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .8; white-space: nowrap; }
.cbar .agree input { width: 15px; height: 15px; accent-color: var(--green); }
.cbar button { height: 44px; padding: 0 24px; border-radius: 2px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.mbar { display: none; }
.arr { display: inline-block; width: 16px; height: 1px; background: currentColor; position: relative; }
.arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- 마우스를 따라오는 원판(로고 링 모양) ---------- */
.cursor { position: fixed; z-index: 80; left: 0; top: 0; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; transform: scale(0); }
.cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--white); }
.cursor::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid var(--gold); }
.cursor span { position: relative; z-index: 1; }

/* 공통 글자 */
.lbl { font-size: 14px; font-weight: 600; letter-spacing: -.01em; opacity: .7; }
.h2 { font-size: clamp(32px, 3.6vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.22; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: inline-block; }

/* =========================================================
   1. 첫 화면 — 로고의 선이 피부선이 되고, 모낭이 심어지고, 머리카락이 자람
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; background: var(--night); overflow: hidden; }
.hero__stage { position: absolute; inset: 0; }
.hero__hair { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__mark { position: absolute; z-index: 2; left: 50%; width: min(86vw, 1480px); transform-origin: 0 0; pointer-events: none; }
.hero__mark svg { width: 100%; height: auto; overflow: visible; }
.hero__copy { position: absolute; z-index: 3; left: var(--pad); bottom: calc(var(--cbar-h) + clamp(28px, 6vh, 64px)); max-width: 760px; }
.hero__title { font-size: clamp(30px, 3.2vw, 52px); font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.hero__title .br { font-weight: 300; opacity: .7; }
.hero__title .slot { position: relative; display: inline-block; vertical-align: bottom; height: 1.3em; overflow: hidden; }
.hero__title .slot .w { position: absolute; left: 0; top: 0; white-space: nowrap; }
.hero__title .slot .measure { visibility: hidden; position: absolute; left: -9999px; }
.hero__data { position: absolute; z-index: 3; right: calc(var(--pad) + 76px); bottom: calc(var(--cbar-h) + clamp(28px, 6vh, 64px)); text-align: right; }
.hero__data b { display: block; font-size: clamp(30px, 2.6vw, 44px); font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero__data span { display: block; margin-top: 6px; font-size: 13px; opacity: .6; }
.hero__chips { position: absolute; z-index: 3; left: var(--pad); top: calc(var(--gnb-h) + clamp(16px, 4vh, 40px)); display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 981px) and (max-height: 760px) { .hero__chips { display: none; } }
.hero__chips span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; border: 1px solid rgba(255, 255, 255, .28); border-radius: 2px; color: rgba(255, 255, 255, .82); }

/* =========================================================
   2. 루페 렌즈 — 금색 링 안에서 실제 병원 장면이 바뀜
   ========================================================= */
.lens { position: relative; height: 100vh; height: 100svh; background: var(--night); overflow: hidden; }
.lens__text { position: absolute; z-index: 3; left: var(--pad); top: 50%; transform: translateY(-50%); width: min(44vw, 640px); }
.lens__big { margin-top: 22px; font-size: clamp(34px, 3.6vw, 60px); font-weight: 700; line-height: 1.28; letter-spacing: -.04em; }
.lens__big .ch { color: rgba(255, 255, 255, .16); }
.lens__steps { margin-top: 44px; display: flex; gap: 0; border-top: 1px solid var(--line-d); }
.lens__steps li { flex: 1; padding-top: 14px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .38); position: relative; transition: color .4s; }
.lens__steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--white); transition: width .6s var(--ease); }
.lens__steps li.on { color: var(--white); }
.lens__steps li.on::before { width: 100%; }
.lens__steps li em { display: block; font-style: normal; font-size: 12px; font-weight: 400; margin-bottom: 4px; opacity: .7; }
.lens__view { position: absolute; z-index: 1; --cx: 70%; --cy: 50%; inset: 0; }
.lens__view figure { position: absolute; inset: 0; opacity: 0; }
.lens__view figure.on { opacity: 1; }
.lens__view img { width: 100%; height: 100%; object-fit: cover; }
.lens__ring { position: absolute; z-index: 2; pointer-events: none; border-radius: 50%; border: 1.5px solid var(--gold); }
.lens__ring i { position: absolute; inset: -12px; border-radius: 50%; border: 1px dashed rgba(221, 187, 102, .35); }

/* =========================================================
   3. 선언 — 글자만
   ========================================================= */
.say { position: relative; background: var(--white); color: var(--ink); padding: clamp(150px, 16vw, 230px) 0 clamp(150px, 15vw, 210px); }
.say__t { font-size: clamp(34px, 4.6vw, 76px); font-weight: 700; line-height: 1.24; letter-spacing: -.045em; }
.say__t .ln > span { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.is-shot .say__t .ln > span, .no-anim .say__t .ln > span { clip-path: none; }
.say__t .sub { color: rgba(17, 21, 19, .22); }
.say__foot { margin-top: clamp(40px, 5vw, 70px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; font-size: 14px; color: var(--mute); }

/* =========================================================
   4. 숫자 — 한 화면에 숫자 하나 (초록 면)
   ========================================================= */
.count { position: relative; height: 100vh; height: 100svh; background: var(--green); color: var(--white); overflow: hidden; }
.count__in { position: absolute; inset: calc(var(--gnb-h) + 30px) var(--pad) calc(var(--cbar-h) + 34px); display: grid; grid-template-rows: auto 1fr auto; }
.count__head { display: flex; justify-content: space-between; align-items: center; }
.count__idx { display: flex; gap: 18px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.count__idx li { opacity: .38; transition: opacity .4s; } .count__idx li.on { opacity: 1; }
.count__stage { position: relative; align-self: center; height: clamp(160px, 23vw, 340px); overflow: hidden; }
.count__item { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); }
.count__v { display: flex; align-items: baseline; font-weight: 200; font-size: clamp(120px, 19vw, 300px); line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.count__v small { font-size: .18em; font-weight: 600; letter-spacing: -.01em; margin-left: .15em; }
.count__k { padding-bottom: clamp(18px, 2.2vw, 36px); }
.count__k b { display: block; font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.count__k span { display: block; margin-top: 8px; font-size: 14px; opacity: .7; }
.count__foot { font-size: 13px; opacity: .6; }
.odo { display: inline-flex; height: 1em; line-height: 1; }
.odo .d { display: inline-block; height: 1em; overflow: hidden; }
.odo .d > span { display: block; }
.odo .d > span > span { display: block; height: 1em; line-height: 1em; text-align: center; }
.odo .sep { display: inline-block; }

/* =========================================================
   5. 시그니처 기술 — 세로 스크롤 → 가로 카드
   ========================================================= */
.tech { position: relative; background: var(--off); color: var(--ink); overflow: hidden; }
.tech__pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--gnb-h) + 26px); padding-bottom: calc(var(--cbar-h) + 26px); }
.tech__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tech__count { font-size: 14px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.tech__count b { color: var(--ink); }
.tech__track { position: relative; flex: 1; display: flex; gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(22px, 3.5vh, 44px); padding-left: var(--pad); will-change: transform; min-height: 0; }
.tcard { position: relative; flex: 0 0 auto; width: min(78vw, 1120px); height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--white); }
.tcard__vis { position: relative; overflow: hidden; background: #eceee9; }
.tcard__vis img { width: 100%; height: 100%; object-fit: cover; }
.tcard__vis svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tcard__body { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 48px); }
.tcard__no { font-size: 14px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.tcard__title { margin-top: 14px; font-size: clamp(28px, 2.6vw, 42px); font-weight: 700; letter-spacing: -.035em; }
.tcard__desc { margin-top: 18px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.85; color: #3d4541; max-width: 30em; }
.tcard__tag { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-l); font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; }
.dial { position: absolute; inset: 0; display: grid; place-items: center; background: #e9efec; }
.dial svg { width: min(78%, 420px); height: auto; overflow: visible; }
.dial__v { font-weight: 200; font-size: 64px; letter-spacing: -.05em; fill: var(--green); font-family: var(--sans); }
.dial__u { font-weight: 600; font-size: 18px; fill: var(--green); font-family: var(--sans); }
.dial__k { font-size: 12px; font-weight: 600; fill: #5b6a64; font-family: var(--sans); letter-spacing: .02em; }

/* =========================================================
   6. 의료진 — 가로로 흐르는 원장 8인
   ========================================================= */
.docs { position: relative; background: var(--white); color: var(--ink); overflow: hidden; }
.docs__pin { position: relative; height: 100vh; height: 100svh; min-height: 700px; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--gnb-h) + 10px) 0 calc(var(--cbar-h) + 10px); }
.docs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(26px, 4vh, 52px); }
.docs__head p.d { max-width: 360px; font-size: 15px; line-height: 1.8; color: var(--mute); }
.docs__strip { display: flex; gap: clamp(12px, 1.4vw, 22px); padding-left: var(--pad); will-change: transform; perspective: 1400px; }
.doc { flex: 0 0 auto; width: clamp(200px, min(20vw, calc((100svh - 420px) * .8)), 310px); }
.doc__ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #dcdfe3; border-radius: 2px; }
.doc__ph img { position: absolute; inset: 0; width: 100%; height: 108%; object-fit: cover; object-position: 50% 0; }
.doc__cap { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ink); padding-top: 12px; }
.doc__cap b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.doc__cap span { font-size: 13px; color: var(--mute); }

/* =========================================================
   7. 공간 영상 — 작은 창이 화면 가득
   ========================================================= */
.film { position: relative; height: 100vh; height: 100svh; background: var(--white); overflow: hidden; }
.film__frame { position: absolute; inset: 0; background: var(--night); }
.film__frame video, .film__frame img { width: 100%; height: 100%; object-fit: cover; }
.film__cap { position: absolute; z-index: 2; left: var(--pad); bottom: calc(var(--cbar-h) + 44px); color: var(--white); }
.film__cap .h2 { font-size: clamp(30px, 3.2vw, 52px); }
.film__cap p { margin-top: 10px; font-size: 15px; opacity: .8; }
.film__label { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--gnb-h) + 34px); text-align: center; color: var(--ink); }

/* =========================================================
   8. 상담 · 오시는 길
   ========================================================= */
.visit { position: relative; background: var(--night); padding: clamp(110px, 12vw, 170px) 0 calc(var(--cbar-h) + 80px); overflow: hidden; }
.visit__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.visit > .wrap { position: relative; z-index: 1; }
.visit__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: end; }
.visit__tel { display: block; margin-top: 22px; font-weight: 200; font-size: clamp(54px, 7vw, 116px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.visit__lead { margin-top: 20px; font-size: 16px; opacity: .65; line-height: 1.8; }
.visit__cta { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 24px; font-size: 15px; font-weight: 700; border-radius: 2px; transition: background .3s, color .3s; white-space: nowrap; }
.btn--w { background: var(--white); color: var(--ink); }
.btn--o { border: 1px solid rgba(255, 255, 255, .4); }
.btn--o:hover { background: var(--white); color: var(--ink); }
.visit__info { border-top: 1px solid var(--line-d); }
.visit__info div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; line-height: 1.7; }
.visit__info dt { opacity: .5; font-size: 14px; }
.foot { margin-top: clamp(80px, 9vw, 130px); padding-top: 28px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 30px; font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, .45); }
.foot img { height: 30px; opacity: .85; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1180px) {
  .gnb__util .lang, .gnb__login { display: none; }
  .gnb__nav { gap: 18px; font-size: 14px; }
  .cbar .agree { display: none; }
}
@media (max-width: 980px) {
  :root { --gnb-h: 64px; --cbar-h: 62px; }
  .gnb__in { display: flex; justify-content: space-between; }
  .gnb__nav, .gnb__cta { display: none; }
  .gnb__burger { display: block; }
  .gnb__logo img { height: 30px; }
  .strandbar { display: none; }
  .cursor { display: none; }
  .cbar { display: none; }
  .mbar { position: fixed; inset: auto 0 0 0; z-index: 44; height: var(--cbar-h); display: grid; grid-template-columns: 1fr 1.4fr; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
  .mbar a:first-child { background: var(--night-2); color: var(--white); border-top: 1px solid var(--line-d); }
  .mbar a:last-child { background: var(--green); color: var(--white); }
  .quick { bottom: calc(var(--cbar-h) + 14px); right: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .4s, transform .4s; }
  .past-hero .quick { opacity: 1; pointer-events: auto; transform: none; }
  .quick a { width: 48px; height: 48px; font-size: 0; }
  .quick a svg { margin: 0; }
  .quick .q-book { display: none; }
  .hero__mark { width: 94vw; }
  .hero__title { font-size: clamp(24px, 6.9vw, 34px); letter-spacing: -.04em; }
  .hero__copy { right: var(--pad); }
  .hero__data { left: var(--pad); right: auto; text-align: left; bottom: auto; top: calc(var(--gnb-h) + 64px); }
  .hero__data b { font-size: 28px; }
  .hero__chips { top: calc(var(--gnb-h) + 16px); }
  .lens__text { top: auto; bottom: calc(var(--cbar-h) + 30px); transform: none; width: auto; right: var(--pad); }
  .lens__big { font-size: clamp(26px, 7.2vw, 36px); }
  .lens__steps { margin-top: 26px; }
  .say__t { font-size: clamp(30px, 8.6vw, 44px); }
  .say__foot { flex-direction: column; align-items: flex-start; }
  .count__v { font-size: clamp(88px, 27vw, 150px); }
  .count__item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .count__stage { height: clamp(220px, 60vw, 300px); }
  .tech__pin { height: auto; padding-bottom: 60px; }
  .tech__track { flex-direction: column; padding-left: 0; padding-inline: var(--pad); }
  .tcard { width: 100%; height: auto; grid-template-columns: 1fr; }
  .tcard__vis { aspect-ratio: 4 / 3; }
  .docs__pin { height: auto; min-height: 0; padding: 90px 0 90px; }
  .docs__head { flex-direction: column; align-items: flex-start; }
  .docs__strip { overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--pad); scrollbar-width: none; }
  .docs__strip::-webkit-scrollbar { display: none; }
  .doc { width: 62vw; scroll-snap-align: start; }
  .visit__grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* =========================================================
   4-2. 전후사진
   ========================================================= */
.ba { position: relative; background: var(--white); color: var(--ink); padding: clamp(110px, 12vw, 170px) 0 clamp(100px, 11vw, 150px); overflow: hidden; }
.ba__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.ba__ctrl { display: flex; gap: 8px; }
.ba__ctrl button { width: 52px; height: 52px; border: 1px solid var(--line-l); border-radius: 50%; font-size: 18px; transition: background .3s, color .3s, border-color .3s; }
.ba__ctrl button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ba__track { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; cursor: grab; }
.ba__track::-webkit-scrollbar { display: none; }
.ba__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.bacard { flex: 0 0 auto; width: clamp(260px, 24vw, 360px); scroll-snap-align: start; }
.bacard__ph { position: relative; aspect-ratio: 1; overflow: hidden; background: #eef0ee; border-radius: 2px; }
.bacard__ph img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.bacard figcaption { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; border-top: 1px solid var(--ink); padding-top: 10px; }
.bacard figcaption b { font-weight: 700; font-size: 16px; }
.bacard figcaption span { color: var(--mute); font-size: 13px; }
.bacard--lock .bacard__ph img { filter: blur(16px); transform: scale(1.1); }
.bacard--lock .lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; background: rgba(255, 255, 255, .42); font-size: 15px; font-weight: 600; line-height: 1.6; }
.btn--k { background: var(--ink); color: var(--white); height: 46px; padding: 0 20px; }
.ba__foot { margin-top: 26px; display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--mute); }
.ba__foot .bar { width: 180px; height: 2px; background: var(--line-l); position: relative; overflow: hidden; flex: none; }
.ba__foot .bar i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(.12); }
@media (max-width: 980px) {
  .ba__ctrl { display: none; }
  .bacard { width: 72vw; }
}
