/* ═══════════════════════════════════════════════════════════════════════
   이츠밀 홈페이지 — 공통 디자인 시스템
   아이보리 바탕 · 딥그린 주조 · 앰버는 쉼표에만
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Hahmlet';
  src: url('../fonts/Hahmlet-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hahmlet';
  src: url('../fonts/Hahmlet-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hahmlet';
  src: url('../fonts/Hahmlet-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hahmlet';
  src: url('../fonts/Hahmlet-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 930; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;

  /* 바탕 */
  --ivory:      #FAF8F3;
  --ivory-warm: #F4F0E7;
  --paper:      #FFFDF9;
  --band:       #EFEBE1;

  /* 잉크 */
  --ink:        #1D2B24;
  --ink-soft:   #3D4A42;
  --muted:      #6E756C;
  --line:       rgba(29, 43, 36, 0.11);
  --line-soft:  rgba(29, 43, 36, 0.065);

  /* 브랜드 */
  --navy:       #1E3A5F;
  --green:      #2A6F52;
  --green-deep: #17462F;
  --green-mist: #E7EFE7;
  --amber:      #E9A23B;
  --dwblue:     #0065BD;

  /* 타이포 */
  --serif: 'Hahmlet', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;

  /* 이징 */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop:  cubic-bezier(0.34, 1.4, 0.64, 1);

  /* 레이아웃 */
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: rgba(233, 162, 59, 0.28); }

/* ── 타이포 스케일 ─────────────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.16;
  font-size: clamp(38px, 6.4vw, 84px);
  color: var(--ink);
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.22;
  font-size: clamp(30px, 4.2vw, 54px);
  color: var(--ink);
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.32;
  font-size: clamp(22px, 2.5vw, 31px);
  color: var(--ink);
}
.h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.42;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}
.body { color: var(--ink-soft); text-wrap: pretty; }
.small { font-size: 15px; line-height: 1.7; color: var(--muted); }
.mono {
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--amber);
}
.eyebrow--plain::before { display: none; }

.accent { color: var(--green); }
mark.comma {
  background: none;
  color: var(--green);
  font-weight: 500;
  box-shadow: inset 0 -0.14em 0 rgba(233, 162, 59, 0.55);
  padding-bottom: 0.02em;
}

/* ── 레이아웃 ──────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--band { background: var(--band); }
.section--warm { background: var(--ivory-warm); }
.section--deep { background: var(--green-deep); color: var(--ivory); }
.section--deep .h2, .section--deep .display, .section--deep .h3 { color: var(--ivory); }
.section--deep .lede, .section--deep .body { color: rgba(250, 248, 243, 0.76); }
.section--dark { background: #14251C; color: var(--ivory); }
.section--dark .h2, .section--dark .display { color: var(--ivory); }
.section--dark .lede, .section--dark .body { color: rgba(250, 248, 243, 0.72); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.head__title { display: grid; gap: 18px; }
.head__aside { justify-self: end; max-width: 42ch; }
@media (max-width: 860px) {
  .head { grid-template-columns: 1fr; align-items: start; }
  .head__aside { justify-self: start; }
}

/* ── 내비게이션 ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 460ms var(--ease-out), backdrop-filter .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.nav.is-solid {
  background: rgba(250, 248, 243, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line-soft);
}
.nav.is-dark:not(.is-solid) { color: var(--ivory); }
.nav__logo { display: flex; align-items: center; }
.nav__logo svg, .nav__logo img { height: 25px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__menu a {
  position: relative;
  padding-block: 6px;
  opacity: .78;
  transition: opacity .3s;
  white-space: nowrap;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .42s var(--ease-expo);
}
.nav__menu a:hover { opacity: 1; }
.nav__menu a:hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__menu a.is-active { opacity: 1; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ivory);
  font-size: 14.5px; font-weight: 700;
  white-space: nowrap;
  transition: background .3s, transform .3s var(--ease-pop);
}
.nav__cta:hover { background: var(--green-deep); transform: translateY(-1px); }
.nav.is-dark:not(.is-solid) .nav__cta { background: var(--ivory); color: var(--green-deep); }
.nav__burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav__burger span {
  display: block; width: 20px; height: 1.6px; background: currentColor; position: relative;
  transition: transform .3s;
}
.nav__burger span::before, .nav__burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 1.6px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

.navSheet {
  position: fixed; inset: var(--nav-h) 0 auto; z-index: 88;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad) 26px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 24px 40px -28px rgba(20, 37, 28, .4);
}
.navSheet.is-open { display: flex; }
.navSheet a {
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.navSheet .nav__cta { margin-top: 18px; justify-content: center; height: 50px; }

@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-solid, .nav { background: rgba(250,248,243,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .nav.is-dark { color: var(--ink); }
}

/* ── 버튼 ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding-inline: 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background .34s, color .34s, transform .34s var(--ease-pop), box-shadow .34s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--green); color: var(--ivory); box-shadow: 0 12px 24px -16px rgba(23,70,47,.7); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 18px 30px -18px rgba(23,70,47,.8); }
.btn--ghost { border: 1.4px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn--light { background: rgba(250,248,243,.14); color: var(--ivory); border: 1.4px solid rgba(250,248,243,.4); }
.btn--light:hover { background: rgba(250,248,243,.24); transform: translateY(-2px); }
.btn--solidLight { background: var(--ivory); color: var(--green-deep); }
.btn--solidLight:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -18px rgba(0,0,0,.5); }
.btn--sm { height: 44px; padding-inline: 20px; font-size: 14.5px; }

/* ── 리빌 ──────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition: opacity .95s var(--ease-expo), transform .95s var(--ease-expo), filter .95s var(--ease-expo);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
[data-reveal="mask"] {
  clip-path: inset(0 0 100% 0);
  opacity: 1; transform: none; filter: none;
  transition: clip-path 1.15s var(--ease-expo);
}
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal], [data-reveal="mask"] {
    opacity: 1 !important; transform: none !important; filter: none !important;
    clip-path: none !important;
  }
}

/* ── 사진 프레임 ───────────────────────────────────────────────────── */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--band);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.frame--r { border-radius: 999px; }
.frame--sm { border-radius: 12px; }
.frame--raw { border-radius: 0; }

/* ── 파트너 락업 ───────────────────────────────────────────────────── */
.partner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(30, 58, 95, .14);
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.partner img { height: 22px; width: auto; }
.partner__txt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: #4C5A66; white-space: nowrap; }
.partner--dark { background: rgba(250,248,243,.10); border-color: rgba(250,248,243,.24); }
.partner--dark .partner__txt { color: rgba(250,248,243,.86); }
.partner--onDark img { filter: brightness(0) invert(1); opacity: .9; }

/* ── CTA 밴드 ──────────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--green-deep);
  color: var(--ivory);
  padding: clamp(36px, 5.4vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cta__glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -140px; top: -280px;
  background: radial-gradient(circle, rgba(233,162,59,.24) 0%, rgba(233,162,59,0) 68%);
  pointer-events: none;
}
.cta h2 { color: var(--ivory); }
.cta .lede { color: rgba(250,248,243,.72); }
.cta__actions { display: grid; gap: 12px; position: relative; }
.cta__row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
}

/* ── 폼 ───────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field > span {
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color .28s, box-shadow .28s;
  appearance: none;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,111,82,.12);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E756C' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
}

/* ── 푸터 ──────────────────────────────────────────────────────────── */
.foot {
  background: #14251C;
  color: rgba(250,248,243,.62);
  padding-block: clamp(48px, 6vw, 76px) 34px;
  font-size: 14px;
}
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .75fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(250,248,243,.12);
}
.foot__logo { height: 26px; width: auto; margin-bottom: 20px; }
.foot__tag { font-family: var(--serif); font-size: 17px; color: rgba(250,248,243,.82); line-height: 1.6; }
.foot h5 {
  margin: 0 0 16px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250,248,243,.44);
}
.foot ul { display: grid; gap: 10px; }
.foot a:hover { color: var(--ivory); }
.foot__bar {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(250,248,243,.42);
  line-height: 1.7;
}
@media (max-width: 760px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__top > :first-child { grid-column: 1 / -1; }
}

/* ── 유틸 ──────────────────────────────────────────────────────────── */
.stack { display: grid; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 앰버 밑줄 강조 */
.uline {
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 3px;
}
