/* Real Model — site styles */
:root {
  --ink: #0E0E0E;
  --white: #FFFFFF;
  --grey-1: #2E2E2E;
  --grey-2: #3A3A3A;
  --grey-3: #5C5C5C;
  --grey-4: #8A8A8A;
  --grey-5: #A3A3A3;
  --grey-6: #BDBDBD;
  --photo: #D4D4D4;
  --purple: #7B2CF5;
  --latin: 'Inter Tight', sans-serif;
  --kr: 'Noto Sans KR', sans-serif;
  --wrap: 1440px;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--kr); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--purple); }
input::placeholder { color: var(--grey-4); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.latin { font-family: var(--latin); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--kr); font-size: 16px; font-weight: 500;
  background: var(--ink); color: var(--white); border: 0; text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--white); background: #2a2a2a; }
.btn--invert { background: var(--white); color: var(--ink); }
.btn--invert:hover { background: #e8e8e8; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Section label: "01 모델" */
.label { display: flex; gap: 16px; align-items: baseline; font-family: var(--latin); font-size: 14px; font-weight: 500; }
.label span + span { font-family: var(--kr); }
.label--dim { color: var(--grey-5); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--ink); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--latin); font-size: 24px; font-weight: 500; letter-spacing: -0.05em; }
.nav { display: flex; align-items: center; gap: 8px 32px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 40px; align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 40px; }
.hero-kicker { font-family: var(--latin); font-size: 14px; font-weight: 500; color: var(--grey-3); }
.hero h1 { margin: 0; font-family: var(--latin); font-size: clamp(88px, 13vw, 208px); font-weight: 500; line-height: .84; letter-spacing: -0.055em; }
.hero h1 .hang { margin-left: -0.38em; }
.hero-lead { margin: 0; max-width: 30em; font-size: 18px; line-height: 1.7; color: var(--grey-1); }
.hero-lead strong { display: block; margin-bottom: 14px; font-family: var(--latin); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.hero-media { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: end; }
.hero-media img { width: 100%; object-fit: cover; background: var(--photo); }
.hero-media .main { aspect-ratio: 4 / 5; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side img { aspect-ratio: 3 / 4; }
.caption { font-size: 13px; color: var(--grey-3); }

/* Models */
.models { border-top: 1px solid var(--ink); }
.models .wrap { padding-top: 40px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 40px; }
.models-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.models-title { display: flex; flex-direction: column; gap: 20px; }
h2 { margin: 0; font-weight: 700; }
.models-head h2 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1.1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font-family: var(--kr); font-size: 15px; font-weight: 500; min-height: 44px; padding: 0 18px;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 48px 24px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.card[hidden] { display: none; }
.card .photo { overflow: hidden; background: var(--photo); }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease, filter .5s ease; filter: grayscale(1); }
.card:hover img { transform: scale(1.03); filter: grayscale(0); }
.card:hover { color: var(--ink); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 10px; }
.card-name { font-size: 17px; font-weight: 500; }
.card-num { font-family: var(--latin); font-size: 13px; font-weight: 500; color: var(--grey-3); }
.card-meta { font-size: 13px; color: var(--grey-3); }
.empty { font-size: 15px; color: var(--grey-3); }

/* Two-column sections */
.split { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: start; }
.dark { background: var(--ink); color: var(--white); }
.dark a { color: var(--white); }

/* About */
.about-left { display: flex; flex-direction: column; gap: 32px; }
.about-right { display: flex; flex-direction: column; gap: 40px; }
.about-statement { margin: 0; font-size: clamp(30px, 3.4vw, 52px); font-weight: 700; line-height: 1.3; letter-spacing: -0.04em; }
.about-body { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.8; color: var(--grey-6); }
.about-ceo { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.about-ceo span:first-child { color: var(--grey-5); }
.about-ceo span:last-child { font-weight: 500; }

/* Clinic */
.clinic-left { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 112px; }
.clinic-left h2 { font-size: clamp(36px, 4.2vw, 60px); letter-spacing: -0.045em; line-height: 1.18; }
.clinic-left p { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.75; color: var(--grey-2); }
.clinic-left .btn { align-self: flex-start; }
.clinic-right { display: flex; flex-direction: column; gap: 32px; }
.promise { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px; background: var(--ink); color: var(--white); }
.promise .latin { font-size: 14px; font-weight: 500; color: var(--grey-6); }
.promise strong { font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; }
.points { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.points li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--ink); }
.points .num { font-family: var(--latin); font-size: 15px; font-weight: 500; color: var(--grey-3); }
.points h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.points p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--grey-2); }

/* Apply */
.apply { border-top: 1px solid var(--grey-2); }
.apply .split { padding-top: 96px; }
.apply-left { display: flex; flex-direction: column; gap: 20px; }
.apply-left h2 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1.15; }
.apply-left p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--grey-6); }
.form { display: flex; flex-direction: column; gap: 28px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input {
  font-family: var(--kr); font-size: 16px; min-height: 48px; padding: 0 14px;
  background: transparent; color: var(--white); border: 0; border-bottom: 1px solid var(--grey-4); border-radius: 0;
}
.field input:focus { border-bottom-color: var(--white); outline: none; }
.field input[type="file"] { padding: 12px 0; color: var(--grey-6); font-size: 15px; border-bottom: 0; }
.form .btn { align-self: flex-start; }
.form-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--grey-5); }
.form-status { margin: 0; font-size: 15px; min-height: 1.5em; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--grey-6); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; align-items: start; }
.site-footer .brand-name { font-size: 22px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--grey-1); }
.copy { font-size: 13px; color: var(--grey-3); }

/* ---------- Benchmarked effects ---------- */

/* Hero title line reveal */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.19,1,.22,1); }
.js .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero-title .line > span { transform: none; }
.hero-title .line:first-child { overflow: visible; clip-path: inset(-0.2em -1em 0 -1em); }

/* Scroll reveal (IntersectionObserver) */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.19,1,.22,1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Marquee */
.marquee { border-top: 1px solid var(--ink); overflow: hidden; background: var(--white); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 40px; padding: 22px 0; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--latin); font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.marquee span:nth-of-type(3n) { font-family: var(--kr); font-weight: 700; }
.marquee i { font-style: normal; font-family: var(--latin); font-size: clamp(28px, 3.4vw, 48px); color: var(--purple); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Card hover — second photo reveal (Codrops HoverGrid idea) */
.card .photo { position: relative; }
.card .photo .alt { position: absolute; inset: 0; height: 100%; opacity: 0; clip-path: inset(100% 0 0 0); transition: clip-path .7s cubic-bezier(.19,1,.22,1), opacity 0s .7s; filter: none; }
.card:hover .photo .alt, .card:focus-visible .photo .alt { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.19,1,.22,1), opacity 0s; }
.card:hover img:not(.alt) { transform: scale(1.04); }

/* Before / After compare */
.compare { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.compare-slider { display: block; width: 100%; --divider-width: 2px; --divider-color: #FFFFFF; --default-handle-color: #FFFFFF; --default-handle-width: 56px; outline: none; }
.compare-slider img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare figcaption { display: flex; justify-content: space-between; gap: 12px; font-family: var(--latin); font-size: 13px; font-weight: 500; color: var(--grey-3); }
.compare figcaption span:nth-child(2) { font-family: var(--kr); font-weight: 400; text-align: center; }

/* ---------- Scroll-linked motion (motion.js) ---------- */

/* Zoom stage — 기본(정적): 사진 한 장 + 문구 */
.zoom-stage { background: var(--ink); }
.zoom-sticky { position: relative; }
.zoom-frame { overflow: hidden; }
.zoom-frame img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.zoom-text {
  position: absolute; left: var(--pad); bottom: 40px; margin: 0;
  padding: 24px 28px; background: var(--ink); color: var(--white);
  font-size: clamp(22px, 2.6vw, 40px); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em;
}
.zoom-text .latin { font-weight: 500; color: var(--grey-6); }
/* 연출 켜짐: 250vh 동안 화면에 고정된 채 액자가 커짐 */
.has-motion .zoom-stage { height: 250vh; }
.has-motion .zoom-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.has-motion .zoom-frame { position: absolute; inset: 0; will-change: clip-path; }
.has-motion .zoom-frame img { height: 100%; aspect-ratio: auto; will-change: transform; }
.has-motion .zoom-text { bottom: 8vh; }

/* Model board — 가로 스크롤 모드 */
.models.h-scroll { overflow: hidden; }
.models.h-scroll .wrap { padding-bottom: 48px; gap: 32px; }
.models.h-scroll .grid { display: flex; flex-wrap: nowrap; gap: 24px; will-change: transform; }
.models.h-scroll .card { flex: 0 0 auto; width: max(200px, min(22vw, calc((100vh - 380px) * 0.75))); }
.models.h-scroll .empty { position: absolute; }

/* Sound toggle */
.sound-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.sound-label { font-size: 13px; font-weight: 500; min-width: 64px; text-align: left; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { display: block; width: 2px; height: 3px; background: currentColor; }
.sound-toggle[aria-pressed="true"] .bars i { animation: eq .9s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s; }
.sound-toggle[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s; }
.sound-toggle[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s; }
.sound-toggle[aria-pressed="true"] .sound-label { color: var(--purple); }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* Single-column: no sticky (would overlap content below) */
@media (max-width: 960px) { .clinic-left { position: static; } }

/* Mobile */
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--ink);
    padding: 8px var(--pad) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #e5e5e5; font-size: 17px; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .nav .sound-toggle { padding: 14px 0; border-bottom: 1px solid #e5e5e5; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .hero h1 .hang { margin-left: 0; }
  .split { padding-top: 80px; padding-bottom: 80px; gap: 48px; }
  .models .wrap { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img, .card .photo .alt { transition: none; }
  .marquee-track { animation: none; }
  .js .hero-title .line > span, .js [data-reveal] { transform: none; opacity: 1; transition: none; }
}
