/* ── tokens ─────────────────────────────────────── */
:root {
  --bone: #f7f4f0;
  --bone-2: #efe9e2;
  --ink: #171310;
  --ink-2: #4a423c;
  --muted: #8c8078;
  --line: #e2d9d0;
  --accent: #a8785c;
  --accent-soft: #d9bda9;

  --serif: "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bone); padding: 12px 18px; z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.wrap--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

.section { padding-block: clamp(80px, 12vw, 150px); }
.section__head { max-width: 620px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__sub { color: var(--muted); margin: 10px 0 0; }

.tag {
  display: inline-block; font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--accent); letter-spacing: .06em; margin-bottom: 14px;
}

.h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.25; letter-spacing: -0.035em; font-weight: 600; margin: 0;
}

.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

/* ── buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--bone);
  padding: 14px 26px; border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid var(--ink);
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(23,19,16,.55); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(23,19,16,.04); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 17px 34px; font-size: 16px; }

/* ── nav ────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  transition: background .45s var(--ease), border-color .45s, padding .45s var(--ease), backdrop-filter .45s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(247,244,240,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  padding-block: 10px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__mark {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bone);
  font-family: var(--serif); font-style: italic; font-size: 17px;
}
.nav__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nav__name em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.nav__links { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); }
.nav__links a { position: relative; padding-block: 4px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .45s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

/* ── hero ───────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--pad) 90px;
  overflow: hidden;
}
.hero__inner { width: 100%; max-width: var(--wrap); margin: 0 auto; position: relative; z-index: 2; }

.hero__bg { position: absolute; inset: 0; z-index: 1; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 18s var(--ease) infinite alternate;
}
.blob--1 {
  width: min(58vw, 620px); aspect-ratio: 1; right: -8vw; top: -12vh;
  background: radial-gradient(circle at 35% 35%, #e9d3c2, #dcbda6 45%, transparent 72%);
}
.blob--2 {
  width: min(48vw, 520px); aspect-ratio: 1; left: -12vw; bottom: -18vh;
  background: radial-gradient(circle at 60% 40%, #e6ded6, #cdbcae 50%, transparent 74%);
  animation-duration: 24s; animation-direction: alternate-reverse;
}
.grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(140,128,120,.16) 1px, transparent 1px);
  background-size: 4px 4px;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 36px, 0) scale(1.12); }
}

.hero__eyebrow {
  font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.hero__title {
  font-size: clamp(42px, 9.2vw, 104px);
  line-height: 1.02; letter-spacing: -0.055em; font-weight: 600;
  margin: 0 0 30px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.02em;
}
.hero__lead { font-size: clamp(15.5px, 1.7vw, 18px); color: var(--ink-2); margin: 0 0 36px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(48px, 8vw, 76px); }

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 60px); margin: 0; }
.hero__stats dt { font-size: 13px; color: var(--muted); letter-spacing: .04em; margin-bottom: 2px; }
.hero__stats dd {
  margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 600;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll span {
  width: 1px; height: 42px; background: linear-gradient(var(--muted), transparent);
  animation: pull 2.2s ease-in-out infinite;
}
@keyframes pull { 0%, 100% { transform: scaleY(.4); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

/* ── marquee ────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bone-2);
  overflow: hidden; padding-block: 16px;
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  font-size: clamp(15px, 2vw, 20px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap;
}
.marquee__track i { color: var(--accent-soft); font-style: normal; font-size: 13px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── about ──────────────────────────────────────── */
.about { background: var(--bone); }
.about__body p + p { margin-top: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.pills li {
  border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 15px; font-size: 13.5px; color: var(--ink-2); background: rgba(255,255,255,.5);
}

/* ── services ───────────────────────────────────── */
.services { background: var(--bone-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card {
  background: var(--bone); padding: clamp(26px, 3vw, 38px);
  transition: background .5s var(--ease), transform .5s var(--ease);
  position: relative;
}
.card:hover { background: #fff; }
.card__no {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--accent); display: block; margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 12px; }
.card p { font-size: 14.8px; margin: 0 0 18px; }
.card__meta { font-size: 13px; color: var(--muted); display: block; padding-top: 14px; border-top: 1px solid var(--line); }
.note { margin: 28px 0 0; font-size: 14px; color: var(--muted); max-width: 60ch; }

/* ── about portrait ─────────────────────────────── */
.portrait { margin: 0 0 30px; float: right; width: min(260px, 42%); margin-left: 28px; }
/* 원본 비율 그대로 — 잘리지 않게 한다 */
.portrait img { border-radius: var(--r); width: 100%; height: auto; }
.portrait figcaption { font-size: 12.5px; color: var(--muted); padding-top: 10px; text-align: center; }

/* ── work ───────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.shot { margin: 0; display: block; }
.shot__img {
  aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(150deg, #ece3da, #ded0c3 55%, #e7ddd4);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.shot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.shot:hover .shot__img { transform: translateY(-6px); box-shadow: 0 24px 44px -28px rgba(23,19,16,.5); }
.shot:hover .shot__img img { transform: scale(1.045); }

.shot__img--more {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #f2ece6, #e6dbd1);
  flex-direction: column; gap: 12px; align-content: center;
}
.shot__more-mark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bone); font-size: 20px;
  transition: transform .5s var(--ease);
}
.shot--more:hover .shot__more-mark { transform: translateX(5px); }
.shot__more-txt { font-size: 13px; letter-spacing: .06em; color: var(--muted); }

.shot figcaption { padding-top: 16px; display: block; }
.shot figcaption strong { display: block; font-size: 15.5px; letter-spacing: -0.02em; margin-bottom: 5px; }
.shot figcaption span { font-size: 14px; color: var(--muted); }
.work__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 5vw, 52px); }

/* ── process ────────────────────────────────────── */
.process { background: var(--bone-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(22px, 3vw, 40px); }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step__no {
  font-family: var(--serif); font-style: italic; font-size: 30px;
  color: var(--accent-soft); display: block; margin-bottom: 14px; line-height: 1;
}
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 10px; }
.step p { font-size: 14.5px; margin: 0; }

/* ── credentials ────────────────────────────────── */
.creds__photo { margin: 30px 0 0; }
.creds__photo img {
  width: 100%; max-width: 320px; border-radius: var(--r);
  height: auto;
}
.creds__list { list-style: none; padding: 0; margin: 0; }
.creds__list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--ink-2);
}
.creds__list li:first-child { border-top: 1px solid var(--line); }
.creds__list span {
  flex: none; width: 46px; font-size: 12px; color: var(--accent);
  letter-spacing: .04em; font-weight: 600;
}

/* ── academy ────────────────────────────────────── */
.academy { background: var(--bone-2); }

.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.course {
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(26px, 3vw, 38px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.course:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -32px rgba(23,19,16,.5); }
.course__no {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--accent); display: block; margin-bottom: 14px; letter-spacing: .04em;
}
.course h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; }
.course__lead { font-size: 14.5px; color: var(--accent) !important; font-weight: 600; margin: 0 0 16px; }
.course p { font-size: 15px; margin: 0 0 20px; }
.course__facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.course__facts li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.course__facts span { flex: none; width: 34px; font-size: 11.5px; color: var(--muted); font-weight: 600; }

.perks { margin-top: clamp(28px, 4vw, 44px); }
.perks__title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; }
.perks ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.perks li { background: var(--bone); padding: 20px 22px; font-size: 14px; color: var(--ink-2); }
.perks li strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 5px; }

.academy__bottom {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.academy__visual { margin: 0; }
.academy__visual img { border-radius: var(--r); width: 100%; box-shadow: 0 24px 50px -34px rgba(23,19,16,.6); }
.academy__cta p { font-size: 16px; margin: 0 0 18px; }
.academy__cta .btn { margin: 0 8px 8px 0; }

/* ── visit ──────────────────────────────────────── */
.visit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.info h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.info p { margin: 0; font-size: 15.5px; }

.mapcard {
  display: flex; align-items: center; gap: 18px;
  margin-top: clamp(32px, 5vw, 52px); padding: 24px 28px;
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.55);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.mapcard:hover { transform: translateY(-3px); border-color: var(--accent-soft); background: #fff; }
.mapcard__pin {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); position: relative;
}
.mapcard__pin::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 11px; height: 11px; border-radius: 50%; background: var(--bone);
}
.mapcard strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.mapcard em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.mapcard__arrow { margin-left: auto; font-size: 19px; color: var(--muted); transition: transform .45s var(--ease); }
.mapcard:hover .mapcard__arrow { transform: translateX(6px); }

/* ── contact ────────────────────────────────────── */
.contact { background: var(--ink); color: var(--bone); text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title {
  font-size: clamp(30px, 5.6vw, 58px); line-height: 1.2;
  letter-spacing: -0.045em; font-weight: 600; margin: 0 0 20px;
}
.contact__lead { color: rgba(247,244,240,.62); margin: 0 0 36px; font-size: clamp(15px, 1.6vw, 17px); }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.contact .btn:hover { box-shadow: 0 14px 34px -16px rgba(247,244,240,.5); }
.contact .btn--ghost { background: transparent; color: var(--bone); border-color: rgba(247,244,240,.28); }
.contact .btn--ghost:hover { border-color: var(--bone); background: rgba(247,244,240,.07); }
.contact__links { display: flex; gap: 24px; margin-top: 42px; font-size: 13.5px; letter-spacing: .06em; }
.contact__links a { color: rgba(247,244,240,.6); transition: color .3s; }
.contact__links a:hover { color: var(--bone); }

/* ── footer ─────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(247,244,240,.42); padding-bottom: 46px; font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; border-top: 1px solid rgba(247,244,240,.12); padding-top: 26px; }
.footer__brand { color: var(--bone); font-weight: 600; }
.footer__brand em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-soft); }
.footer__copy { margin-left: auto; }

/* ── floating CTA (mobile) ──────────────────────── */
.fab {
  position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translate(-50%, 90px);
  background: var(--ink); color: var(--bone);
  padding: 14px 30px; border-radius: 100px; font-size: 15px; font-weight: 600;
  box-shadow: 0 14px 32px -14px rgba(23,19,16,.6);
  transition: transform .55s var(--ease), opacity .4s;
  display: none;
}
.fab.is-on { transform: translate(-50%, 0); }

/* ── reveal animations ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-up { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease) var(--d, 0ms); }
.is-in .reveal-up, .reveal-up.is-in { transform: none; }

/* ── responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .wrap--split { grid-template-columns: 1fr; }
  .academy__bottom { grid-template-columns: 1fr; }
  .academy__visual { max-width: 300px; }
  .nav__links { display: none; }
  .creds__list li { font-size: 14.8px; gap: 14px; }
}
@media (max-width: 640px) {
  .fab { display: block; }
  .hero { min-height: auto; padding-top: 112px; }
  .hero__scroll { display: none; }
  /* 좁은 화면에서는 줄바꿈을 브라우저에 맡긴다 */
  .hero__lead br, .contact__lead br { display: none; }
  .hero__stats { gap: 22px 30px; }
  .portrait { float: none; width: 190px; margin: 0 0 24px; }
  .contact { padding-bottom: 96px; }
  .footer__copy { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  /* 하단 고정 예약 버튼이 있으므로 헤더 버튼은 감춘다 */
  .nav > .btn--sm { display: none; }
  .nav { padding-inline: 20px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
}
