/* ══════════════════════════════════════════════
   curtainfit.net v2 — Warm Editorial
   base cream · ink text · terracotta accent 1색
   모션: transform/opacity만 · cubic-bezier(0.16,1,0.3,1)
════════════════════════════════════════════════ */
:root {
  --bg: #FBF8F3;
  --bg-deep: #F3EDE4;
  --ink: #211D18;
  --ink-soft: #6E655A;
  --line: #E5DCCF;
  --accent: #B4653C;        /* terracotta · 채도<80% */
  --accent-soft: #F4E7DD;
  --dark: #241F19;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -28px rgba(60, 45, 30, 0.22);
  --font-display: 'Outfit', 'Pretendard', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pc-only { display: initial; }
.mo-only { display: none; }

/* ── 대가성 고지 ── */
.ad-notice {
  background: var(--dark); color: rgba(255,255,255,0.72);
  font-size: 12px; text-align: center; padding: 8px 16px; letter-spacing: 0.01em;
}

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 12px; z-index: 40;
  margin: 12px auto 0; width: min(1160px, calc(100% - 32px));
  transition: transform 0.5s var(--ease);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 248, 243, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 220, 207, 0.8);
  border-radius: 999px; padding: 10px 12px 10px 22px;
  box-shadow: 0 12px 32px -18px rgba(60, 45, 30, 0.25);
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-en { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; font-size: 14px; }
.logo-ko { font-size: 12.5px; color: var(--ink-soft); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  border-radius: 999px; padding: 10px 18px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.header-cta:hover { transform: scale(1.03); background: var(--accent); }
.cta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transition: background 0.4s var(--ease); }
.header-cta:hover .cta-dot { background: #fff; }

/* ── eyebrow 공통 ── */
.eyebrow {
  font-family: var(--font-display); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  display: inline-block; margin-bottom: 14px;
}
.eyebrow.light { color: #E9C9A8; }
.eyebrow.warm { color: #E9C9A8; }

/* ══ HERO ══ */
.hero {
  position: relative; min-height: 92svh; margin-top: -66px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-media { position: absolute; inset: -8% 0; z-index: -1; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(24, 18, 12, 0.78) 0%, rgba(24, 18, 12, 0.32) 46%, rgba(24, 18, 12, 0.12) 100%);
}
.hero-inner { width: min(1200px, 100%); margin: 0 auto; padding: 140px 24px 88px; }
.hero-copy { max-width: 640px; color: #fff; }
.hero-title {
  font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 22px;
}
.hero-title .w { display: inline-block; will-change: transform, opacity; }
.hero-sub { font-size: clamp(15.5px, 1.6vw, 18px); color: rgba(255,255,255,0.88); margin-bottom: 26px; }
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.badge {
  font-size: 12.5px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,0.34); background: rgba(255,255,255,0.10);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: 999px; padding: 7px 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15.5px;
  border-radius: 999px; padding: 15px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 14px 34px -14px rgba(180, 101, 60, 0.55);
}
.btn-primary:hover { transform: scale(1.03); }
.btn-primary:active { transform: scale(0.98); }
.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.18);
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost {
  display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 600;
  color: rgba(255,255,255,0.92); border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px; transition: opacity 0.3s var(--ease);
}
.btn-ghost:hover { opacity: 0.7; }
.hero-hint {
  position: absolute; right: 28px; bottom: 26px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.28em; color: rgba(255,255,255,0.75);
}
.hero-hint span { display: block; width: 44px; height: 1px; background: rgba(255,255,255,0.5); }
[data-load] { opacity: 0; transform: translateY(18px); }
.loaded [data-load] { animation: rise 0.9s var(--ease) forwards; }
.loaded [data-load="1"] { animation-delay: 0.05s; }
.loaded [data-load="2"] { animation-delay: 0.15s; }
.loaded [data-load="3"] { animation-delay: 0.32s; }
.loaded [data-load="4"] { animation-delay: 0.46s; }
.loaded [data-load="5"] { animation-delay: 0.58s; }
.loaded [data-load="6"] { animation-delay: 0.9s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ══ WHY · sticky split ══ */
.why { padding: 120px 0 130px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.why-sticky { position: sticky; top: 96px; }
.why-headline {
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.22;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.why-headline em { font-style: normal; color: var(--accent); }
.why-lede { color: var(--ink-soft); font-size: 16px; max-width: 44ch; margin-bottom: 30px; }
.why-figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  position: relative; max-width: 430px;
}
.why-figure img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.why-figure figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(24, 18, 12, 0.66); color: #fff; font-size: 12.5px;
  border-radius: 999px; padding: 7px 14px; backdrop-filter: blur(6px);
}
[data-reveal="mask"] { clip-path: inset(12% 12% 12% 12% round 22px); opacity: 0.4; transition: clip-path 1.1s var(--ease), opacity 1.1s var(--ease); }
[data-reveal="mask"].on { clip-path: inset(0 0 0 0 round 22px); opacity: 1; }
.why-cards { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 16px 40px -30px rgba(60, 45, 30, 0.3);
}
.why-card > * { padding: 0 22px; }
.why-card .wc-num {
  font-family: var(--font-display); font-weight: 300; font-size: 15px; color: var(--accent);
  border-bottom: 1px solid var(--line); padding: 14px 22px 12px; margin-bottom: 16px;
}
.why-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); font-size: 14.5px; padding-bottom: 22px; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].on { opacity: 1; transform: translateY(0); }

/* ══ GALLERY · horizontal track ══ */
.gallery { background: var(--dark); color: #fff; overflow: hidden; }
.gallery-pin { padding: 96px 0 64px; }
.gallery-head { margin-bottom: 44px; }
.gallery-head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.gallery-lede { color: rgba(255,255,255,0.62); font-size: 15.5px; }
.gallery-track {
  display: flex; gap: 22px; padding: 0 max(24px, calc((100vw - 1200px) / 2));
  will-change: transform;
}
.g-card {
  flex: 0 0 clamp(260px, 30vw, 400px);
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09); padding: 8px;
}
.g-card img {
  width: 100%; height: clamp(320px, 40vw, 480px); object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
}
.g-card figcaption {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,0.85); padding: 14px 8px 8px;
}
.g-tag {
  font-size: 11px; font-weight: 700; color: #F0CDB1;
  border: 1px solid rgba(240, 205, 177, 0.4); border-radius: 999px; padding: 3px 10px;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.gallery-progress {
  width: min(320px, 60%); height: 2px; background: rgba(255,255,255,0.14);
  margin: 44px auto 0; border-radius: 2px; overflow: hidden;
}
.gallery-progress span { display: block; width: 0; height: 100%; background: var(--accent); }

/* ══ PROCESS ══ */
.process { padding: 130px 0; background: var(--bg-deep); }
.process-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.process-head { position: sticky; top: 110px; }
.process-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.24; letter-spacing: -0.02em; margin-bottom: 16px; }
.process-lede { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 30px; }
.process-steps { display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.step {
  display: flex; gap: 22px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
  opacity: 0.35; transform: translateY(10px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.7s var(--ease);
}
.step.active { opacity: 1; transform: none; border-color: rgba(180, 101, 60, 0.45); }
.step-no {
  font-family: var(--font-display); font-weight: 300; font-size: 30px; color: var(--accent);
  line-height: 1; padding-top: 3px; flex-shrink: 0; width: 40px;
}
.step-body h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 6px; }
.step-body p { color: var(--ink-soft); font-size: 14.5px; }
.step-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 11px; margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.step.highlight { background: var(--dark); border-color: var(--dark); }
.step.highlight h3 { color: #fff; }
.step.highlight p { color: rgba(255,255,255,0.72); }

/* ══ PRODUCTS ══ */
.products { padding: 130px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 15.5px; }
.section-head.dark { text-align: center; margin: 0 auto 44px; }
.section-head.dark h2 { color: #fff; }
.section-head.dark p { color: rgba(255,255,255,0.72); }
.product-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: stretch; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; padding: 10px; display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-visual { border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.product-visual img {
  width: 100%; height: 300px; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product-card:hover .product-visual img { transform: scale(1.045); }
.pc-body { padding: 24px 20px 18px; }
.pc-body h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.pc-body p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--bg-deep); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.product-card:hover .chip { background: var(--accent-soft); }

/* ══ FAQ ══ */
.faq-section { padding: 120px 0; background: var(--bg-deep); }
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 70px; align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.faq-list { display: flex; flex-direction: column; gap: 13px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px;
  padding: 19px 52px 19px 24px; position: relative; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-body { padding: 0 24px 20px; color: var(--ink-soft); font-size: 14.5px; }
.faq-item[open] .faq-body { animation: faqPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes faqPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ══ FORM ══ */
.form-section { padding: 110px 0 120px; background: var(--dark); color: #fff; }
.form-wrap {
  max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  padding: 14px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5); color: var(--ink);
}
.form-wrap iframe { border-radius: calc(var(--radius) - 8px); display: block; }
.form-tip { font-size: 13.5px; color: rgba(255,255,255,0.85); text-align: center; margin-top: 18px; line-height: 1.6; }
.form-legal { font-size: 12.5px; color: rgba(255,255,255,0.55); text-align: center; margin-top: 14px; line-height: 1.6; }

/* ── 모바일 고정 CTA ── */
.floating-cta {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 50;
  background: var(--accent); color: #fff; text-align: center;
  font-weight: 700; font-size: 15.5px; border-radius: 999px; padding: 15px;
  box-shadow: 0 16px 40px -12px rgba(180, 101, 60, 0.6);
  opacity: 0; transform: translateY(80px); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.floating-cta.show { opacity: 1; transform: none; pointer-events: auto; }

/* ══ FOOTER ══ */
.site-footer { background: #191510; color: #96897A; padding: 46px 0 90px; font-size: 13.5px; }
.site-footer .logo { margin-bottom: 14px; }
.site-footer .logo-en { color: #D8CCBB; }
.footer-ko { color: #96897A; }
.site-footer p { margin-bottom: 6px; line-height: 1.7; }
.site-footer .disclaimer {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #2E2820;
  font-size: 12.5px; color: #7A6F60; line-height: 1.7;
}

/* ══ 반응형 ══ */
@media (max-width: 1023px) {
  .why-grid, .process-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-sticky, .process-head, .faq-head { position: static; }
  .step { opacity: 1; transform: none; }
  /* 갤러리: 모바일 = 네이티브 가로 스와이프 (scroll-snap) */
  .gallery-track {
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 8px;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .g-card { scroll-snap-align: start; flex-basis: min(78vw, 340px); }
  .gallery-progress { display: none; }
}
@media (max-width: 767px) {
  .pc-only { display: none; }
  .mo-only { display: initial; }
  .hero { min-height: 88svh; }
  .hero-inner { padding: 120px 20px 70px; }
  .container { padding: 0 20px; }
  .why, .process, .products, .faq-section { padding: 82px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual img { height: 230px; }
  .why-figure { max-width: 100%; }
  .form-section { padding: 80px 0 96px; }
  .site-footer { padding-bottom: 110px; } /* floating CTA 여백 */
}

/* ══ reduced motion ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-load], .loaded [data-load] { opacity: 1; transform: none; animation: none; }
  [data-reveal], [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .step { opacity: 1; transform: none; transition: none; }
  .faq-item[open] .faq-body { animation: none; }
  .hero-media { transform: none !important; }
}
