:root {
  --bg: #f4f1ea;
  --bg-tint: #ebe6dc;
  --paper: #faf8f3;
  --ink: #2b2723;
  --ink-soft: #5e5750;
  --muted: #8a8278;
  --line: #d9d2c5;
  --accent: #a0573a;
  --accent-ink: #fffaf5;

  --serif: "Gowun Batang", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --hand: "Caveat", cursive;

  --gutter: clamp(20px, 5vw, 64px);
  --rhythm: clamp(88px, 12vw, 160px);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--hand); font-weight: 600; font-size: 30px; letter-spacing: 0.01em; color: var(--ink); }
.logo-line { width: 96px; height: 8px; margin-top: -2px; }
.logo-line path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { border-bottom: 1px solid var(--ink); color: var(--ink) !important; padding-bottom: 1px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) var(--rhythm);
  display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  min-height: calc(100svh - 72px);
}
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.28; margin-bottom: 24px; }
.hero-sub { color: var(--ink-soft); margin: 0 0 36px; font-size: 15px; }
.hero-photos { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.frame { margin: 0; background: var(--paper); padding: 8px 8px 0; box-shadow: 0 1px 0 var(--line); }
.frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.frame figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 8px 2px 10px; }
.hero-photos .f1 { margin-top: 64px; }
.hero-photos .f3 { margin-top: 120px; }

/* sections */
.section { max-width: var(--max); margin: 0 auto; padding: var(--rhythm) var(--gutter); }
.section-tint { max-width: none; background: var(--bg-tint); }
.section-tint > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.35; }
.section-sub { color: var(--ink-soft); margin: 18px 0 0; font-size: 15px; }

/* tabs + gallery */
.tabs {
  display: flex; gap: 6px; margin-bottom: 32px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; color: var(--muted); min-height: 40px;
}
.tabs button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.gallery { display: flex; gap: 20px; align-items: flex-start; }
.gallery-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gallery figure {
  margin: 0; cursor: zoom-in;
  background: var(--paper); padding: 8px 8px 0;
  opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease;
}
.gallery figure.in { opacity: 1; transform: none; }
.gallery figure img { width: 100%; background: var(--bg-tint); }
.gallery figcaption {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 8px 2px 10px;
}

/* price */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card, .calc, .contact-box { background: var(--paper); padding: clamp(24px, 4vw, 40px); }
.price-label { font-size: 14px; color: var(--muted); margin: 0; }
.price-amount { font-family: var(--serif); font-size: 18px; margin: 6px 0 28px; }
.price-amount span { font-size: clamp(40px, 5vw, 52px); letter-spacing: -0.02em; margin-right: 4px; }
.price-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-list span { color: var(--muted); flex: none; }
.price-list b { font-weight: 500; text-align: right; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; color: var(--ink-soft); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.calc { display: flex; flex-direction: column; }
.calc-title { margin: 0 0 24px; font-size: 15px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 999px; padding: 6px; margin-bottom: 28px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--bg-tint); font-size: 22px; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { font-family: var(--serif); font-size: 22px; }
.calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.calc-result div { display: flex; flex-direction: column; gap: 4px; }
.calc-result span { font-size: 13px; color: var(--muted); }
.calc-result b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
#total { color: var(--accent); }
.calc-note { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.calc .btn { margin-top: auto; align-self: flex-start; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 20px 20px 0 0; }
.steps .num { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 18px; }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 22px; display: block; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* about */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo { background: var(--paper); padding: 10px; }
.about-placeholder {
  aspect-ratio: 4 / 5; background: var(--bg-tint);
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.about-text h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 24px; line-height: 1.4; }
.about-text p { color: var(--ink-soft); margin: 0 0 14px; }
.signature { font-family: var(--hand); font-size: 34px; color: var(--ink) !important; margin-top: 24px !important; transform: rotate(-3deg); transform-origin: left; display: inline-block; }

/* contact */
.contact-box { max-width: 720px !important; margin: 0 auto; }
.field-label { display: block; font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.field-label small { color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; min-height: 40px; font-size: 14px; color: var(--ink-soft); }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
textarea {
  width: 100%; resize: vertical; border: 1px solid var(--line); background: var(--bg);
  padding: 16px; font-family: var(--sans); font-size: 15px; line-height: 1.8; color: var(--ink); border-radius: 4px;
}
textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.toast { min-height: 1.5em; margin: 10px 0 0; font-size: 13px; color: var(--accent); text-align: center; }
.contact-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; text-align: center; }

/* faq */
.faq-list { border-top: 1px solid var(--ink); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 20px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }

/* footer */
.footer { padding: 72px var(--gutter) 120px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; border-top: 1px solid var(--line); }
.footer .logo-word { margin: 0; font-size: 34px; }
.footer a { font-size: 14px; color: var(--ink-soft); }
.footer small { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* sticky mobile CTA */
.sticky-cta { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(28, 25, 22, 0.94);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100svh; padding: 56px 0; }
.lightbox img { max-height: calc(100svh - 140px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption { color: #b9b0a4; font-family: var(--mono); font-size: 12px; margin-top: 14px; }
.lightbox button { background: none; border: none; color: #efe9e0; font-size: 40px; height: 64px; }
.lb-close { position: absolute; top: 8px; right: 12px; width: 56px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .gallery figure { opacity: 1; transform: none; transition: none; }
}

/* tablet */
@media (max-width: 960px) {
  .gallery, .gallery-col { gap: 14px; }
  .gallery figure { padding: 6px 6px 0; }
  .price-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

/* phone */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .nav { padding: 12px 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .logo-word { font-size: 27px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 12px 16px 88px; gap: 36px; }
  .hero-text { order: 2; }
  .hero-photos { order: 1; grid-template-columns: 1.15fr 1fr; gap: 10px; }
  .hero-photos .f1 { margin-top: 0; }
  .hero-photos .f2 { margin-top: 56px; }
  .hero-photos .f3 { display: none; }
  .hero h1 { font-size: 38px; }
  .section { padding: 88px 16px; }
  .section-tint > * { max-width: none; }
  .section-head { margin-bottom: 32px; }
  .gallery, .gallery-col { gap: 10px; }
  .gallery figure { padding: 5px 5px 0; }
  .gallery figcaption { font-size: 10px; padding: 6px 1px 7px; }
  .calc-result b { font-size: 19px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .steps .num { margin: 4px 0 0; grid-row: span 2; }
  .steps b { font-size: 19px; margin-bottom: 2px; }
  .contact-actions { grid-template-columns: 1fr; }
  .chips { gap: 6px; }
  .chips button { padding: 8px 12px; font-size: 13.5px; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 30; min-height: 52px; border-radius: 999px;
    background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 500;
    box-shadow: 0 6px 20px rgba(43, 39, 35, 0.18);
    transition: opacity .3s, transform .3s;
  }
  .sticky-cta.hide { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { display: none; }
  .lightbox figure { padding: 56px 8px; }
}
