/* ============================================================
   JBSARA — 스타일
   ------------------------------------------------------------
   색·폰트·여백을 바꾸는 곳입니다.

   맨 위 :root 블록의 값만 고쳐도 사이트 전체가 바뀝니다.
   예: --ink 를 바꾸면 모든 텍스트와 버튼 색이 함께 바뀝니다.

   목차
     1. 변수        색 · 폰트 · 여백의 기준값
     2. 기본        리셋, 타이포 기본
     3. 공통 요소   버튼, 라벨, 링크, 구분선
     4. 헤더
     5. 히어로
     6. 제품 슬라이드
     7. 3원칙 · 철학
     8. 제품 목록 · 상세
     9. 파트너십 · 문의 폼
    10. 푸터
    11. 애니메이션
    12. 반응형
   ============================================================ */


/* ── 1. 변수 ─────────────────────────────────────────────── */

:root {
  /* 색 — 두 가지만 씁니다. 세 번째 색을 만들지 마세요.
     그 사이 톤은 전부 이 두 색의 투명도 단계입니다. */
  --ivory: #F3EDE6;
  --ink:   #383839;

  /* 밝은 배경 위 텍스트 (진한 순서) */
  --ink-90: rgba(56, 56, 57, 0.90);
  --ink-86: rgba(56, 56, 57, 0.86);
  --ink-78: rgba(56, 56, 57, 0.78);
  --ink-72: rgba(56, 56, 57, 0.72);
  --ink-25: rgba(56, 56, 57, 0.25);  /* 버튼 테두리 */
  --ink-14: rgba(56, 56, 57, 0.14);  /* 구분선 */
  --ink-09: rgba(56, 56, 57, 0.09);  /* 표 내부선 */
  --ink-06: rgba(56, 56, 57, 0.06);  /* 섹션 배경 */
  --ink-04: rgba(56, 56, 57, 0.045); /* 호버 배경 */

  /* 어두운 배경 위 텍스트 */
  --iv-88: rgba(243, 237, 230, 0.88);
  --iv-72: rgba(243, 237, 230, 0.72);
  --iv-62: rgba(243, 237, 230, 0.62);
  --iv-18: rgba(243, 237, 230, 0.18);

  /* 폰트 */
  --font-display: 'skeena-display', Marcellus, serif;
  --font-body: Pretendard, 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 레이아웃 */
  --page-width: min(1560px, 88vw);   /* 콘텐츠 최대 폭 */
  --page-pad: 40px;                  /* 좌우 여백 */
  --gap-section: 104px;              /* 섹션 사이 */

  /* 모서리 — 2px 고정. 둥근 버튼을 쓰지 않습니다. */
  --radius: 2px;

  /* 슬라이드 한 바퀴 도는 시간. 느리게 하려면 숫자를 키우세요. */
  --rail-speed: 72s;
}


/* ── 2. 기본 ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;

  /* 한국어가 단어 중간에서 끊기지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; }

a { color: var(--ink); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--ink-14); }


/* ── 3. 공통 요소 ────────────────────────────────────────── */

.wrap {
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* 섹션 위 작은 대문자 라벨 */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-72);
}
.eyebrow--light { color: var(--iv-88); }

/* 한국어일 때는 대문자 변환을 끕니다 (효과 없이 자간만 어색해짐) */
html[lang="ko"] .eyebrow,
html[lang="ko"] .btn,
html[lang="ko"] .nav-link,
html[lang="ko"] .link-underline,
html[lang="ko"] .chip,
html[lang="ko"] .spec-key,
html[lang="ko"] .field-label {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* 버튼 */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: rgba(56, 56, 57, 0.82); color: var(--ivory); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-25); }
.btn--ghost:hover { border-color: var(--ink); }

/* 어두운 배경 위 버튼 */
.btn--solid-light { background: var(--ivory); color: var(--ink); }
.btn--solid-light:hover { background: #fff; color: var(--ink); }

.btn--ghost-light { background: transparent; color: var(--ivory); border-color: rgba(243,237,230,0.45); }
.btn--ghost-light:hover { border-color: var(--ivory); }

/* 밑줄 링크 */
.link-underline {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink-25);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: border-color 0.25s ease;
}
.link-underline:hover { border-color: var(--ink); }

/* 태그 — 유일하게 둥근 요소 */
.chip {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-72);
  border: 1px solid var(--ink-14);
  border-radius: 999px;
  padding: 5px 11px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink-14);
}


/* ── 4. 헤더 ─────────────────────────────────────────────── */

.header {
  position: sticky;
  /* 아래로 펼쳐지는 모바일 메뉴의 기준점 */
  top: 0;
  z-index: 30;
  background: rgba(243, 237, 230, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-14);
}

.header__inner {
  width: var(--page-width);
  margin: 0 auto;
  padding: 12px var(--page-pad);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo svg { width: 132px; height: 22px; fill: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 26px;
  flex-wrap: wrap;
}

/* 메뉴 3개 묶음 */
.nav__links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* 메뉴판 안의 문의 버튼 — 모바일에서만 보입니다 */
.nav__links-cta { display: none; }

/* 언어 전환 + 문의 버튼 묶음 */
.nav__utils { display: flex; align-items: center; gap: 14px; }

/* 햄버거 버튼 — 데스크톱에서는 숨깁니다 */
.nav__toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
/* 열렸을 때 X 모양 */
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-link {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: var(--ink-72);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  border-left: 1px solid var(--ink-14);
}
.lang button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(56, 56, 57, 0.6);
}
.lang button.is-active { color: var(--ink); font-weight: 500; }
.lang span { font-size: 12px; color: rgba(56, 56, 57, 0.5); }


/* ── 5. 히어로 ───────────────────────────────────────────── */

.hero {
  position: relative;
  height: calc(100svh - 77px);
  min-height: 560px;
  max-height: 1040px;
  overflow: hidden;
  background: var(--ink);
}

.hero video,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 영상 마지막 2초가 거의 흰색으로 밝아집니다.
   그래서 그라디언트를 세 겹으로 겹쳐 흰 화면에서도 글자가 읽히게 했습니다.
   영상을 교체하면 이 값들을 다시 확인해야 합니다. */
.hero__scrim-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(56,56,57,0.90) 0%,
    rgba(56,56,57,0.72) 42%,
    rgba(56,56,57,0.40) 74%,
    rgba(56,56,57,0.34) 100%);
}
.hero__scrim-top {
  position: absolute; left: 0; right: 0; top: 0; height: 240px;
  background: linear-gradient(to bottom,
    rgba(56,56,57,0.74) 0%,
    rgba(56,56,57,0.62) 62%,
    rgba(56,56,57,0) 100%);
}
.hero__scrim-left {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(56,56,57,0.76) 0%,
    rgba(56,56,57,0.66) 42%,
    rgba(56,56,57,0) 74%);
}

.hero__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-pad) 40px;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}

.hero__title {
  font-size: clamp(38px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.hero__sub {
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--iv-88);
}

.hero__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 237, 230, 0.28);
}
.hero__number { display: flex; align-items: baseline; gap: 9px; }
.hero__number b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--ivory);
}
.hero__number span { font-size: 13px; color: rgba(243, 237, 230, 0.8); }


/* ── 6. 제품 슬라이드 ────────────────────────────────────── */

.rail {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-14);
}

.rail__track {
  display: flex;
  width: max-content;
  animation: railSlide var(--rail-speed) linear infinite;
}
.rail:hover .rail__track { animation-play-state: paused; }

.rail__card {
  flex: 0 0 auto;
  width: clamp(288px, 20vw, 340px);
  padding: 34px 28px 30px;
  border-right: 1px solid var(--ink-14);
  transition: background 0.25s ease;
}
.rail__card:hover { background: var(--ink-04); }

/* 양 끝 페이드 — 카드가 잘려 보이는 느낌을 줄입니다 */
.rail__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  pointer-events: none;
}
.rail__fade--l { left: 0;  background: linear-gradient(to right, var(--ivory), transparent); }
.rail__fade--r { right: 0; background: linear-gradient(to left,  var(--ivory), transparent); }

/* 썸네일 — 제품 사진과 제형 사진이 교차합니다.
   아래 세 규칙이 한 세트입니다. 하나만 지우면 호버 시 비어 보입니다. */
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink-06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb__texture {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.thumb__bottle {
  position: relative;
  height: 74%;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.4s ease;
  filter: drop-shadow(0 8px 18px rgba(56, 56, 57, 0.16));
}
.rail__card:hover .thumb__texture { opacity: 1; }
.rail__card:hover .thumb__bottle  { opacity: 0; }

.card__cat {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-72);
}
.card__name {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.28;
}
.card__line {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-72);
}


/* ── 7. 3원칙 · 철학 ─────────────────────────────────────── */

.section { padding: var(--gap-section) 0; }
.section--tint {
  background: var(--ink-06);
  border-top: 1px solid var(--ink-14);
  border-bottom: 1px solid var(--ink-14);
  padding: 80px 0;
}
.section--dark { background: var(--ink); color: var(--iv-72); padding: 96px 0; }

.h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
}

.lead {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-78);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px 40px;
}

.figure {
  aspect-ratio: 16 / 10;
  background: var(--ink-06);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }

.card-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 22px;
}
.card-body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-78);
}

/* 철학 페이지 — 이미지와 글이 번갈아 놓이는 행 */
.alt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}
.alt-row--reverse { flex-wrap: wrap-reverse; }
.alt-row__media { flex: 1 1 420px; min-width: 300px; }
.alt-row__text  { flex: 1 1 340px; min-width: 280px; }
.alt-row__num { font-size: 11px; letter-spacing: 0.24em; color: var(--ink-72); }
.alt-row__title { margin-top: 16px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.16; }
.alt-row__body { margin-top: 20px; font-size: 16px; line-height: 1.76; color: var(--ink-86); }

/* 팀 */
.team-photo {
  aspect-ratio: 4 / 5;
  background: var(--ink-06);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-role { margin-top: 22px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-72); }
.team-name { margin-top: 8px; font-family: var(--font-display); font-size: 22px; }
.team-bio  { margin-top: 14px; font-size: 15px; line-height: 1.72; color: var(--ink-78); }


/* ── 8. 제품 목록 · 상세 ─────────────────────────────────── */

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 40px; }
.filter {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink-25);
  background: transparent;
  color: var(--ink-72);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--ink-14);
  border-top: 1px solid var(--ink-14);
  border-bottom: 1px solid var(--ink-14);
}
.grid__card {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  padding: 32px 28px 30px;
  transition: background 0.25s ease;
}
.grid__card:hover { background: var(--ink-04); }
.grid__card:hover .thumb__texture { opacity: 1; }
.grid__card:hover .thumb__bottle  { opacity: 0; }
.grid__card .thumb__bottle { height: 76%; }

.card__short { margin-top: 14px; font-size: 14px; line-height: 1.68; color: var(--ink-78); }
.card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.card__more {
  margin-top: auto;
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-72);
}

/* 상세 */
.breadcrumb { padding: 32px 0 0; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-72); }
.breadcrumb a { color: var(--ink-72); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { padding: 0 10px; }

.detail { display: flex; flex-wrap: wrap; gap: 64px; padding: 44px 0 88px; }
.detail__media { flex: 1 1 420px; min-width: 300px; }
.detail__media .thumb { aspect-ratio: 1 / 1; }
.detail__media .thumb__texture { opacity: 0.55; }
.detail__media .thumb__bottle {
  height: 72%;
  filter: drop-shadow(0 16px 34px rgba(56, 56, 57, 0.22));
}
.detail__info { flex: 1 1 400px; min-width: 300px; }

.detail__claim { margin-top: 18px; font-size: 14px; letter-spacing: 0.1em; color: var(--ink-72); }
.detail__desc  { margin-top: 28px; font-size: 16px; line-height: 1.76; color: var(--ink-86); }

.actives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px 20px;
  padding-bottom: 30px;
}
.actives b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.actives span { display: block; margin-top: 9px; font-size: 13px; color: var(--ink-78); }

.spec-row {
  display: flex;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ink-09);
}
.spec-key {
  flex: 0 0 150px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-72);
}
.spec-val { flex: 1 1 auto; font-size: 15px; line-height: 1.6; }

.usebox {
  margin-top: 36px;
  padding: 26px 28px;
  background: var(--ink-06);
  border-radius: var(--radius);
}
.usebox h3 { font-size: 19px; }
.usebox p { margin-top: 11px; font-size: 15px; line-height: 1.72; color: var(--ink-86); }

.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.related .thumb__bottle { height: 72%; }
.related a:hover .thumb__texture { opacity: 1; }
.related a:hover .thumb__bottle  { opacity: 0; }
.related p { margin-top: 16px; font-family: var(--font-display); font-size: 16px; line-height: 1.3; }


/* ── 9. 파트너십 · 문의 폼 ───────────────────────────────── */

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--ink-09);
}
.fact-row dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-72); }
.fact-row dd { margin: 0; font-size: 15px; }

.market-list { display: flex; flex-direction: column; gap: 1px; background: rgba(243,237,230,0.18); align-self: flex-start; }
.market-row {
  background: var(--ink);
  padding: 20px 4px 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.market-row span:first-child { font-size: 15px; color: var(--ivory); }
.market-row span:last-child  { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--iv-62); }

.form { flex: 1 1 380px; min-width: 300px; display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }

.field { display: flex; flex-direction: column; gap: 9px; }
.field-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-72); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-25);
  padding: 9px 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; }

.contact-item + .contact-item { margin-top: 22px; }
.contact-item p:first-child { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-72); }
.contact-item p:last-child  { margin-top: 8px; font-size: 16px; line-height: 1.6; }


/* ── 10. 푸터 ────────────────────────────────────────────── */

.footer { background: var(--ink); color: var(--iv-72); }
.footer__inner { width: var(--page-width); margin: 0 auto; padding: 80px var(--page-pad) 40px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: space-between;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--iv-18);
}
.footer__brand svg { width: 140px; height: 24px; fill: var(--ivory); }
.footer__tag { margin-top: 20px; font-family: var(--font-display); font-size: 20px; color: var(--ivory); }
.footer__entity { margin-top: 8px; font-size: 14px; color: var(--iv-62); }

.footer__col { flex: 0 1 190px; min-width: 150px; }
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--iv-88);
  margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a,
.footer__links span { font-size: 14px; color: var(--iv-72); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--ivory); }
.footer__links span { color: var(--iv-62); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-top: 32px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--iv-62); }
.footer__policies { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__policies a { font-size: 13px; color: var(--iv-62); }
.footer__policies a:hover { color: var(--ivory); }
.footer__rights { margin-top: 26px; font-size: 13px; color: var(--iv-62); }


/* ── 11. 애니메이션 ──────────────────────────────────────── */

/* 슬라이드.
   -50% 인 이유: 제품 목록이 두 번 반복되어 있어서
   절반만큼 밀면 정확히 원위치로 돌아옵니다.
   복제를 없애면 순환이 끊깁니다. (app.js 의 renderRail 참고) */
@keyframes railSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 진입 — 아래에서 떠오름 */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise    { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise--1 { animation-delay: 0.14s; }
.rise--2 { animation-delay: 0.28s; }

/* 애니메이션을 끄도록 설정한 사용자 존중 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ── 12. 반응형 ──────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --page-pad: 24px; --gap-section: 72px; }

  /* 좁은 화면 — 헤더는 한 줄로 유지하고,
     메뉴는 햄버거 버튼을 눌렀을 때만 아래로 펼칩니다.
     영문 메뉴(Products / Philosophy / Partnership)가 길어
     한 줄에 나란히 놓을 수 없기 때문입니다. */
  .header__inner {
    padding: 12px var(--page-pad);
    gap: 0;
    min-height: 56px;
    flex-wrap: nowrap;
  }

  .nav { display: contents; }

  .nav__utils { margin-left: auto; gap: 14px; }
  .nav__utils .lang { border-left: 0; padding-left: 0; gap: 6px; }
  .nav__utils .lang button,
  .nav__utils .lang span { font-size: 12px; }

  /* 문의 버튼은 펼친 메뉴 안으로 옮깁니다 */
  .nav__utils > .btn { display: none; }

  .nav__toggle { display: flex; }

  /* 펼쳐지는 메뉴판 */
  .nav__links {
    order: 3;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--ink-14);
    padding: 0 var(--page-pad);

    /* 닫힌 상태 */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav__links.is-open {
    max-height: 60vh;
    opacity: 1;
    visibility: visible;
    padding: 8px var(--page-pad) 24px;
    overflow-y: auto;
  }

  .nav__links .nav-link {
    font-size: 15px;
    letter-spacing: 0.06em;
    padding: 16px 0;
    border-bottom: 1px solid var(--ink-09);
    border-top: 0;
  }
  .nav__links .nav-link.is-active { border-bottom-color: var(--ink-09); color: var(--ink); }

  /* 메뉴판 안의 문의 버튼 */
  .nav__links-cta {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 15px 24px;
  }

  .hero { height: auto; min-height: 0; max-height: none; }
  .hero__body { position: static; padding-top: 120px; }
  .hero__numbers { gap: 14px 28px; }
  .hero__number b { font-size: 24px; }

  .detail { gap: 40px; }
  .alt-row { gap: 32px; padding-bottom: 56px; }
  .spec-key { flex-basis: 110px; }
}

@media (max-width: 560px) {
  .header__inner { padding: 10px var(--page-pad); }
  .logo svg { width: 108px; height: 18px; }
  .nav { gap: 12px; }
  .btn { padding: 14px 22px; }
  .footer__top { gap: 36px; }
}
