/* ==========================================================================
   말랑필름 (MALANGFILM) — 컨셉 애견사진 스튜디오
   디자인 레퍼런스: templates/complexlaw (Webflow) —
   크림 캔버스 + 틸 #00959c 액센트 + 대시 라운드 보더 + 손그림 스퀴글 밑줄
   ========================================================================== */
:root {
  --cream: #faf6ee;
  --cream-deep: #f3ecdd;
  --ink: #21302e;
  --gray: #6d7a77;
  --teal: #00959c;
  --teal-deep: #007a80;
  --peach: #ffcdaf;
  --pink: #f9dcd2;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --serif: "Gowun Batang", "Nanum Myeongjo", serif;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.center { text-align: center; }

.h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.h1 em, .h2 em { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--teal); }
.sub { font-size: clamp(1rem, 1.5vw, 1.1875rem); color: var(--gray); }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}
.kicker::before { content: "🐾"; font-size: 0.9375rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* 스퀴글 밑줄 (complexlaw hero 디테일) */
.squiggle { position: relative; display: inline-block; }
.squiggle svg { position: absolute; left: 0; right: 0; bottom: -0.35em; width: 100%; height: 0.28em; }

/* 대시 보더 버튼 (complexlaw 시그니처) */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9375rem 1.75rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-deep); }
.btn--dash { color: var(--ink); }
.btn--dash::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px dashed var(--ink); border-radius: 12px; opacity: 0.6;
  transition: opacity 0.25s;
}
.btn--dash:hover::after { opacity: 1; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px dashed rgba(33, 48, 46, 0.18);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; width: min(1280px, 100% - 3rem); margin-inline: auto; }
.nav__logo { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.1875rem; }
.nav__logo img { width: 26px; height: 26px; }
.nav__menu { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__menu a { font-size: 0.9375rem; font-weight: 600; color: var(--gray); }
.nav__menu a:hover { color: var(--ink); }
.nav__cta { padding: 0.5625rem 1.25rem; font-size: 0.9375rem; }

/* ---------- HERO ---------- */
.hero { padding: 9.5rem 0 0; text-align: center; }
.hero .sub { margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; margin-top: 2.25rem; }
.hero__visual { position: relative; margin-top: 3.5rem; }
.hero__img {
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  max-height: 620px;
}
.hero__img img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; object-position: center 30%; }
.hero__sticker {
  position: absolute; top: -1.5rem; right: clamp(0.5rem, 6vw, 4rem);
  background: #fff; border-radius: 999px;
  padding: 0.75rem 1.375rem; font-weight: 700; font-size: 0.9375rem;
  box-shadow: 0 12px 24px rgba(33, 48, 46, 0.12);
  transform: rotate(4deg);
}
.hero__sticker::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed var(--teal); border-radius: 999px; opacity: 0.5; }

/* ---------- 스토리 스트립 ---------- */
.story { background: var(--ink); color: var(--cream); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.story__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.75rem; }
.story__item { border-top: 1px dashed rgba(250, 246, 238, 0.35); padding-top: 1.25rem; }
.story__item h3 { font-size: 1.125rem; font-weight: 800; }
.story__item h3 em { font-family: var(--serif); font-style: normal; color: var(--peach); }
.story__item p { margin-top: 0.5rem; font-size: 0.9063rem; color: rgba(250, 246, 238, 0.72); }

/* ---------- 갤러리 ---------- */
.gallery { padding: clamp(5rem, 10vw, 8rem) 0; }
.gallery__grid { columns: 4 220px; column-gap: 1.125rem; margin-top: 3rem; }
.gallery__item {
  break-inside: avoid; margin-bottom: 1.125rem; position: relative;
  border-radius: 12px; overflow: hidden;
  background: #fff; padding: 0.5rem;
  box-shadow: 0 8px 20px rgba(33, 48, 46, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.gallery__item:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 18px 36px rgba(33, 48, 46, 0.14); }
.gallery__item img { border-radius: 8px; width: 100%; }

/* ---------- 철학 ---------- */
.philosophy { background: var(--cream-deep); padding: clamp(5rem, 10vw, 8rem) 0; }
.phil__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.phil__card {
  position: relative; background: var(--cream); border-radius: var(--radius);
  padding: 2.25rem 1.875rem;
}
.phil__card::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(33, 48, 46, 0.25); border-radius: 10px; pointer-events: none; }
.phil__card .no { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--teal); }
.phil__card h3 { margin-top: 0.75rem; font-size: 1.3125rem; font-weight: 800; }
.phil__card p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--gray); }
.phil__quote { margin-top: 3rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.125rem, 2vw, 1.5rem); color: var(--ink); max-width: 34em; margin-inline: auto; }

/* ---------- 비하인드 ---------- */
.behind { padding: clamp(5rem, 10vw, 8rem) 0; }
.behind__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.behind__card { background: #fff; border-radius: var(--radius); padding: 2rem 1.875rem; box-shadow: 0 8px 20px rgba(33, 48, 46, 0.06); }
.behind__card .step { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.behind__card h3 { margin-top: 0.625rem; font-size: 1.25rem; font-weight: 800; }
.behind__card p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--gray); }
.behind__card blockquote { margin-top: 1rem; padding-left: 1rem; border-left: 2px dashed var(--teal); font-family: var(--serif); font-style: italic; font-size: 0.9688rem; }

/* ---------- 스튜디오 ---------- */
.studio { background: var(--ink); color: var(--cream); padding: clamp(5rem, 10vw, 8rem) 0; }
.studio__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.studio__img { border-radius: var(--radius); overflow: hidden; }
.studio__img img { width: 100%; height: 100%; object-fit: cover; }
.studio__list { margin-top: 1.75rem; display: grid; gap: 0.75rem; }
.studio__list li { display: flex; gap: 0.75rem; align-items: baseline; font-size: 1rem; color: rgba(250, 246, 238, 0.85); }
.studio__list li::before { content: "✓"; color: var(--peach); font-weight: 800; }
.studio__contact { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px dashed rgba(250, 246, 238, 0.3); display: grid; gap: 0.375rem; font-size: 0.9375rem; color: rgba(250, 246, 238, 0.72); }
.studio__contact b { color: var(--cream); font-weight: 800; }

/* ---------- CTA / FOOTER ---------- */
.cta { padding: clamp(5.5rem, 11vw, 9rem) 0; text-align: center; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; margin-top: 2.25rem; }

.footer { border-top: 1px dashed rgba(33, 48, 46, 0.2); padding: 3rem 0 2.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.125rem; }
.footer__brand img { width: 24px; height: 24px; }
.footer__info { font-size: 0.875rem; color: var(--gray); line-height: 1.7; }
.footer__links { display: flex; gap: 1.5rem; font-size: 0.875rem; color: var(--gray); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { width: 100%; margin-top: 1rem; font-size: 0.8125rem; color: var(--gray); }

@media (max-width: 960px) {
  .story__grid { grid-template-columns: repeat(2, 1fr); }
  .phil__grid { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__menu { display: none; }
  .behind__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 2 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
