/* ==========================================================================
   NEIWEOL PET FOOD — 메인 스타일시트
   토큰은 purevia-design-tokens.md 기반. 순수 CSS, 빌드 도구 없음.
   ========================================================================== */

:root {
  /* 배경 — 파스텔 3단(크림 · 샌드 · 세이지) + 딥 그린 앵커.
     인접한 섹션끼리 따뜻함이나 밝기가 확실히 갈리도록 번갈아 씁니다.
     크림 ↔ 샌드는 온도차, 샌드 ↔ 세이지는 색상차로 구분됩니다. */
  --bg:            #FBF8F3;   /* 크림 — 기본 바탕, 가장 밝음 */
  --bg-cream:      #FBF8F3;
  --bg-sand:       #F3ECE1;   /* 샌드 — 크림보다 한 톤 따뜻하고 진함 */
  --bg-sage:       #E9EFE8;   /* 세이지 — 유일한 찬 계열, 옆에 오면 바로 구분됨 */
  --surface:       #FFFFFF;

  --forest:        #1E3A33;   /* 딥 그린 — 섹션 구분의 쉼표 역할 */
  --forest-deep:   #17302A;
  --forest-foot:   #17302A;

  --text:          #1B2E28;
  --muted:         #5E6D68;   /* 파스텔 배경에서도 4.5:1 을 넘기는 보조 텍스트 */
  --on-dark:       #F3F1EA;
  --gold:          #B8934A;
  --border:        #E8E2D8;
  --line:          rgba(23, 50, 44, 0.09);
  --line-dark:     rgba(243, 241, 234, 0.14);

  /* type */
  --font-head: 'Playfair Display', 'Noto Sans KR', serif;
  /* 한글 제목·숫자용 — Playfair 를 앞에 두면 한글 문장 속 숫자만 영문 세리프로 튀어 보인다 */
  --font-kr:   'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* shape */
  --radius-card: 20px;
  --radius-pill: 9999px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-img:  0 8px 30px rgba(0, 0, 0, 0.06);

  /* layout */
  --container: 1200px;
  --gutter: 40px;
  --section-y: 120px;
  --header-h: 74px;

  /* motion — 페이드인 / 살짝 올라오기, 두 가지만 사용 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.7s;
  --dur-slow: 1.5s;   /* 큰 사진처럼 천천히 들어와야 하는 것 — --dur 로는 휙 지나갑니다 */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 글자 단위로 줄을 채운다(사용자 요청). 마지막 줄에 한 글자만 남는 것만 피한다 — 미지원 브라우저는 그냥 무시 */
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold); }
::selection { background: var(--gold); color: #fff; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--forest); color: var(--on-dark);
  padding: 10px 18px; border-radius: var(--radius-pill);
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding: var(--section-y) 0; position: relative; }

.section-cream  { background: var(--bg-cream); }
.section-sand   { background: var(--bg-sand); }
.section-sage   { background: var(--bg-sage); }
.section-forest {
  background: linear-gradient(180deg, var(--forest), var(--forest-deep));
  overflow: hidden;
}
.section-forest::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% 90%, rgba(184, 147, 74, 0.08), transparent 50%);
}

/* 파스텔끼리 맞닿는 곳에는 머리카락 굵기의 경계선 하나.
   색만으로는 애매할 수 있는 경계를 또렷하게 만들어 줍니다. */
.section-cream + .section-sand,
.section-sand  + .section-cream,
.section-cream + .section-sage,
.section-sage  + .section-cream,
.section-sand  + .section-sage,
.section-sage  + .section-sand { border-top: 1px solid rgba(23, 50, 44, 0.07); }
.section-forest > .container { position: relative; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.section-sub { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-light { color: rgba(243, 241, 234, 0.7); }

.h2 {
  font-family: var(--font-kr);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  margin: 0;
}
.on-dark { color: var(--on-dark); }

.display {
  font-family: var(--font-kr);
  font-size: clamp(24px, 5.2vw, 40px);
  font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--on-dark); margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* ---------- aspect ratio frames ---------- */
.ratio-4-3, .ratio-3-4, .ratio-4-5 { position: relative; width: 100%; overflow: hidden; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
/* video: images.js 가 영상 자리(data-slot-video)의 img 를 video 로 바꿔 끼운다 */
.ratio-4-3 > img, .ratio-3-4 > img, .ratio-4-5 > img,
.ratio-4-3 > video, .ratio-3-4 > video, .ratio-4-5 > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  padding: 14px 30px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-dark {
  color: var(--on-dark);
  background: linear-gradient(180deg, #1E3D35, var(--forest));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(23, 50, 44, 0.18);
}
.btn-dark:hover { color: var(--on-dark); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 28px rgba(23,50,44,0.26); }

.btn-light {
  color: var(--text);
  background: linear-gradient(180deg, #FFFFFF, var(--on-dark));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { color: var(--text); }

/* 평소엔 글자만 — 호버하면 밑줄이 왼쪽부터 그어지며 금색으로 바뀐다 (nenia.kr '더 알아보기' 참고) */
.link-grow {
  position: relative; align-self: flex-start;
  font-size: 14px; font-weight: 600; padding-bottom: 4px;
}
.link-grow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.link-grow:hover { color: var(--gold); }
.link-grow:hover::after, .link-grow:focus-visible::after { transform: scaleX(1); }

.link-underline {
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 50, 44, 0.08);
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--text); }
/* 로고가 베이지 단색 + 투명 배경이라 크림 바탕에선 사라진다 — 딥 그린 원 안에 얹어 대비를 만든다 */
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--forest);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark img { width: 78%; height: auto; }
.brand-mark-light { width: 36px; height: 36px; background: rgba(243, 241, 234, 0.12); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 14px; font-weight: 500; }
.site-nav .btn { font-size: 14px; padding: 10px 22px; }

/* 지금 보고 있는 페이지 — 금색 점 하나로만 표시한다.
   밑줄은 헤더 아래 테두리와 두 줄로 겹쳐 보였고, 금색 글씨는 크림 바탕에서 대비가 모자란다 */
.site-nav [aria-current="page"],
.nav-item.is-current > .nav-link { font-weight: 600; }
.site-nav > [aria-current="page"],
.nav-sub [aria-current="page"] { position: relative; }
.site-nav > [aria-current="page"]::after,
.nav-item.is-current > .nav-link::after,
.nav-sub [aria-current="page"]::after {
  content: ""; display: block; flex-shrink: 0;
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold);
}
/* 상단 항목은 라벨 아래 가운데, 하위 목록은 글자 옆 — 하위 항목은 행이 넓어 밑점이 어디에 붙었는지 알기 어렵다 */
.site-nav > [aria-current="page"]::after,
.nav-item.is-current > .nav-link::after {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
}
.nav-sub [aria-current="page"] { display: flex; align-items: center; gap: 7px; }

/* ---------- 하위 메뉴 ---------- */
/* 위아래 여백을 항목 안쪽으로 끌어와 링크와 패널 사이를 지날 때 메뉴가 닫히지 않게 한다 */
.nav-item { position: relative; padding: 12px 0; margin: -12px 0; }
/* 상위 항목도 페이지 링크다 — 첫 하위 페이지로 간다.
   .site-nav a 가 뒤에서 글자 크기를 덮어쓰지 않도록 선택자를 한 단계 올렸다 */
.site-nav .nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: color 0.3s var(--ease);
}
.site-nav .nav-link:hover { color: var(--gold); }

.nav-sub {
  position: absolute; top: 100%; left: -14px;
  min-width: 184px; padding: 8px;
  display: flex; flex-direction: column;
  background: rgba(251, 248, 243, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-item.is-open > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a {
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-sub a:hover { background: rgba(23, 50, 44, 0.05); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 1.6px;
  background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after  { top: 6px;  left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   1. HERO — 배경 영상 슬라이드 3장 + 좌측 정렬 카피
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: var(--forest);   /* 영상이 뜨기 전 잠깐 비치는 바탕 */
}

/* 슬라이드는 겹쳐 두고 페이드로만 바꾼다 — 모션 규칙(페이드인·슬라이드업)을 지키기 위해 옆으로 밀지 않음 */
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 1.2s var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* img 로 두었다가 images/hero-01.mp4 등이 있으면 video 로 교체됩니다 (images.js) */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 글씨가 얹히는 왼쪽만 살짝 눌러주고, 영상이 보여야 할 오른쪽은 거의 비워둡니다 */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(9, 17, 14, 0.68) 0%,
    rgba(9, 17, 14, 0.42) 42%,
    rgba(11, 20, 17, 0.10) 68%,
    rgba(11, 20, 17, 0.22) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}
.hero-content > * { max-width: 760px; }
/* 세 장 모두 같은 큰 크기 */
.display-xl { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.2; }
.hero-content > .display-xl { max-width: none; }
/* 글자 단위 줄바꿈이라 큰 글씨가 단어 중간에서 끊기지 않도록, 화면이 좁아지면 정해둔 자리에서 한 번 더 내린다 */
.br-mo { display: none; }
.hero-content .eyebrow-light { font-size: 15px; }
/* 오버레이를 걷어낸 만큼 글씨 자체에 그림자를 줘서 가독성을 지킵니다 */
.hero-content > * {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero-content .eyebrow-light { color: rgba(243, 241, 234, 0.9); }
/* 슬라이드가 바뀌면 그 장의 카피가 살짝 올라온다. 배경이 먼저 밝아진 뒤 글씨가 따라오도록 지연 */
.hero-slide .hero-content > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; transition-delay: 0.35s; }
.hero-slide.is-active .hero-content > *:nth-child(2) { transition-delay: 0.45s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { transition-delay: 0.55s; }

/* 슬라이드 점 + 멈춤 버튼 — 카피와 같은 왼쪽 선에 맞춘다 */
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 14px;
}
.hero-dots { display: flex; gap: 6px; }
.hero-dot {
  width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.hero-dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(243, 241, 234, 0.35); border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.hero-dot:hover::before { background: rgba(243, 241, 234, 0.7); }
.hero-dot.is-active::before { background: var(--on-dark); }
.hero-pause {
  width: 30px; height: 30px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(243, 241, 234, 0.45); background: none;
  position: relative;
}
/* 재생 중에는 두 줄(멈춤), 멈춘 상태에서는 삼각형(재생) */
.hero-pause::before, .hero-pause::after {
  content: ""; position: absolute; top: 50%; height: 10px; margin-top: -5px;
  width: 2px; background: var(--on-dark);
}
.hero-pause::before { left: 11px; }
.hero-pause::after  { left: 16px; }
.hero-pause[aria-pressed="true"]::before {
  left: 12px; width: 0; background: none;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 8px solid var(--on-dark);
}
.hero-pause[aria-pressed="true"]::after { display: none; }

/* ==========================================================================
   2. 만드는 방법 — 쉐이더 배경 위 유리 카드 4장 (yorien.com '간편한 정수의 시작' 참고)
   ========================================================================== */
.method { position: relative; }
/* 무대 — 기본은 평범한 섹션. 넓은 화면에서는 .is-pinned 가 붙어 화면에 고정된다 */
.method-stage {
  position: relative; overflow: hidden;
  padding: var(--section-y) 0;
  /* WebGL 을 못 쓰는 브라우저에서 보이는 바탕 — 쉐이더와 같은 계열 */
  background: linear-gradient(160deg, var(--bg-cream), var(--bg-sage) 55%, var(--bg-sand));
}
.method-shader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.method-inner { position: relative; }
.method-lead { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

.method-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* 글래스모피즘 — 밝은 쉐이더 위라 흰 유리. 뒤를 흐리게 비추고, 테두리는 대각선으로 빛이 스치듯 */
.method-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 20px 28px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-card);
}
.method-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.75));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.method-num {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
/* 카드 안 사진은 가로로 길게 — 4:3 보다 낮아야 네 장이 한 화면에 들어간다 */
.method-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.method-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.method-card h3 {
  margin: 6px 0 0; font-size: 16.5px; font-weight: 600;
  letter-spacing: -0.005em; color: var(--text);
}
.method-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- 고정 모드 (main.js 가 넓고 충분히 높은 화면에서만 붙임) ----------
   섹션을 화면 2.6장 높이로 늘리고 무대를 sticky 로 붙잡는다. 고정된 1.6장 동안 스크롤한 만큼
   카드마다 --t 가 0 → 1 로 변하며 페이드인 + 살짝 올라오기. 되돌려 올리면 다시 사라진다 */
.method.is-pinned { height: 260vh; }
.method.is-pinned .method-stage {
  position: sticky; top: 0;
  height: 100vh; padding: var(--header-h) 0 0;
  display: flex; align-items: center;
}
.method.is-pinned .method-inner { width: 100%; }
.method.is-pinned .method-cards.reveal-up { opacity: 1; transform: none; transition: none; }
.method.is-pinned .method-card {
  opacity: var(--t, 0);
  transform: translateY(calc((1 - var(--t, 0)) * 80px));
}

/* ---------- 겹쳐 쌓기 모드 (좁은 화면, main.js 가 붙임) ----------
   무대를 화면에 붙잡고, 카드 네 장을 같은 자리에 겹쳐 둔다. 둘째 장부터 --t 가 0 → 1 로 변하며
   화면 아래에서 올라와 앞 카드 위에 놓인다. 장마다 12px 씩 아래로 어긋나 카드 더미처럼 보인다 */
.method.is-stacked .method-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding: calc(var(--header-h) + 20px) 0 24px;
  display: flex;
}
/* 제목 글과 카드를 한 덩어리로 묶어 화면 세로 가운데에 — 둘 사이는 좁게, 남는 여백은 위아래로 나눈다.
   margin: auto 는 내용이 화면보다 길면 위를 자르지 않는다(낮은 폰 대비) */
.method.is-stacked .method-inner { width: 100%; display: flex; flex-direction: column; margin: auto 0; }
/* 제목 글과 카드 사이 — 화면이 높을수록 넉넉하게(20px 은 답답하다는 피드백) */
.method.is-stacked .section-head { margin-bottom: clamp(28px, 5.5vh, 56px); gap: 8px; }
.method.is-stacked .method-lead { font-size: 13.5px; }
.method.is-stacked .method-cards.reveal-up { opacity: 1; transform: none; transition: none; }
.method.is-stacked .method-cards {
  /* 아래 여백 36px: 뒤로 쌓인 카드가 장마다 12px 씩 내려가는 만큼 */
  padding-bottom: 36px;
  display: grid; grid-template-columns: 1fr; align-items: start; justify-items: center;
}
.method.is-stacked .method-card {
  grid-area: 1 / 1;
  width: 100%; max-width: 440px;
  /* 겹친 뒤 카드 글씨가 비치지 않게 유리를 더 불투명하게 */
  background: rgba(255, 255, 255, 0.86);
  /* 올라오는 초반에 빨리 불투명해져야 뒤 카드 글씨가 비쳐 겹쳐 보이지 않는다 */
  opacity: calc(var(--t, 0) * 4);
  /* 대기 위치는 카드 높이의 110% 와 화면 높이의 70% 중 먼 쪽 — 세로로 긴 태블릿에서 다음 카드가 미리 비치지 않게 */
  transform: translateY(calc(var(--i, 0) * 12px + (1 - var(--t, 0)) * max(110%, 70vh)));
}
/* 낮은 폰에서도 카드 한 장이 화면에 들어가도록 사진 높이 상한 */
.method.is-stacked .method-thumb { max-height: 26vh; max-height: 26svh; }

/* ==========================================================================
   3. 제품 라인업 — 왼쪽 소개 + 오른쪽 카드 줄 (nenia.kr Business 섹션 참고)
   ========================================================================== */
.products { position: relative; }
.products-stage { padding: var(--section-y) 0; }
/* 왼쪽 칸을 카드 높이만큼 늘려, 소개 글은 카드 윗선에 · 링크는 카드 아랫선에 맞춘다 */
.products-layout {
  display: grid; grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 56px; align-items: stretch;
}
.products-intro {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 32px;
  padding: 24px 0;   /* 카드 줄의 위아래 여백(그림자용)과 같게 */
}
.products-intro-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.products-lead { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.products-intro-text .h2 { margin-bottom: 6px; }

/* 카드 줄은 오른쪽 화면 끝까지 붙인다 — 컨테이너 오른쪽 여백만큼 음수 마진.
   위아래 여백은 호버로 떠오르는 카드와 그림자가 잘리지 않게 */
.products-viewport {
  position: relative;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--container)) / 2)));
  padding: 24px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.products-viewport::-webkit-scrollbar { display: none; }
.product-track { display: flex; width: max-content; padding-right: var(--gutter); }

.product-card {
  width: 260px; flex-shrink: 0; margin: 0 24px 0 0;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(231, 227, 218, 0.7);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--text);
  /* 마우스를 올린 카드 하나만 살짝 떠오릅니다 */
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover {
  color: var(--text);
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(23, 50, 44, 0.14);
}
.product-card:hover h3 { color: var(--gold); }

.product-body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;   /* 설명 길이가 달라도 카드 높이는 서로 맞습니다 */
}
.product-body h3 {
  font-size: 15px; font-weight: 600; line-height: 1.45; margin: 0;
  transition: color 0.3s var(--ease);
}
.product-body p {
  font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 0;
}

/* ---------- 고정 모드 (main.js 가 넓고 충분히 높은 화면에서만 붙임) ----------
   섹션 높이 = 화면 한 장 + 카드 줄이 움직일 거리(JS 가 계산). 무대를 sticky 로 붙잡고,
   스크롤한 만큼 카드 줄을 왼쪽으로 옮긴다. 되돌려 올리면 다시 오른쪽으로 */
.products.is-pinned .products-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; padding: var(--header-h) 0 0;
  display: flex; align-items: center;
}
.products.is-pinned .products-layout { width: 100%; }
.products.is-pinned .products-viewport {
  overflow: hidden; scroll-snap-type: none;
  /* 왼쪽으로 빠져나가는 카드가 소개 글 옆에서 뚝 잘리지 않고 흐려지며 사라지게 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px);
}
/* 첫 카드가 페이드에 걸리지 않도록 페이드 너비만큼 띄우고, 그만큼 소개 글과의 간격을 줄인다 */
.products.is-pinned .products-layout { gap: 24px; }
.products.is-pinned .product-track { padding-left: 40px; }
.products.is-pinned .product-track { will-change: transform; }
.products.is-pinned .product-card { width: 280px; }

/* ==========================================================================
   4. 증거 띠
   ========================================================================== */
.stats { padding: 64px 0; }
.stats::before { background: radial-gradient(circle at 80% 20%, rgba(184, 147, 74, 0.09), transparent 55%); }
.stat-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 32px; }
.stat {
  text-align: center; padding: 0 32px; flex: 1; min-width: 180px;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: 0; }
.stat-value { font-family: var(--font-kr); font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--on-dark); }
.stat-label { font-size: 13px; color: rgba(243, 241, 234, 0.6); margin-top: 6px; letter-spacing: 0.02em; }

/* ==========================================================================
   5. 브랜드 스토리
   ========================================================================== */
/* 영상(없으면 story.jpg)이 섹션 전체 배경. 스크롤에 맞춰 둥근 박스에서 화면 꽉 차게 넓어진다 (nenia.kr About 참고).
   --grow 0 = 사방 여백(좌우 --story-inset, 위아래 --story-inset-y) + 둥근 모서리, 1 = 꽉 참. 값은 main.js 가 스크롤 위치로 계산.
   JS가 없거나 모션 최소화면 1 그대로 */
.story {
  --grow: 1; --story-inset: 12vw; --story-inset-y: 64px;
  min-height: 88vh;
  display: flex; align-items: center;
}
.story-frame {
  position: absolute;
  top:    calc(var(--story-inset-y) * (1 - var(--grow)));
  bottom: calc(var(--story-inset-y) * (1 - var(--grow)));
  left: calc(var(--story-inset) * (1 - var(--grow)));
  right: calc(var(--story-inset) * (1 - var(--grow)));
  border-radius: calc(var(--radius-card) * (1 - var(--grow)));
  overflow: hidden;
  background: var(--forest);   /* 영상이 뜨기 전 잠깐 비치는 바탕 */
}
/* img 로 두었다가 images/story.mp4 가 있으면 video 로 교체됩니다 (images.js) */
.story-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 편지 본문이 길어서 히어로보다 진하게 — 글이 얹히는 왼쪽을 누르고 오른쪽은 영상이 보이게 */
.story-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(9, 17, 14, 0.74) 0%,
    rgba(9, 17, 14, 0.56) 45%,
    rgba(11, 20, 17, 0.18) 75%,
    rgba(11, 20, 17, 0.26) 100%);
}
/* 배경이 가장 좁을 때도 글이 박스 밖으로 나가지 않도록, 좁은 화면에서만 안쪽 여백을 더 준다 */
.story-inner {
  position: relative;
  padding-left:  max(var(--gutter), calc(var(--story-inset) + var(--gutter) - max(0px, (100vw - var(--container)) / 2)));
  padding-right: max(var(--gutter), calc(var(--story-inset) + var(--gutter) - max(0px, (100vw - var(--container)) / 2)));
}

.story-text { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.story-text > * { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.story-text > p { font-size: 15px; line-height: 1.8; color: rgba(243, 241, 234, 0.86); margin: 0; }

/* 대표 서명 — 편지 끝처럼 한 박자 띄우고 본문보다 진하게 */
.story-text > p.story-sign {
  margin-top: 6px;
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.story-text .link-grow { margin-top: 10px; color: var(--on-dark); }
.story-text .link-grow:hover { color: var(--gold); }

/* ==========================================================================
   6. 리뷰 — 좌우로 천천히 흐르는 띠
   ========================================================================== */
.reviews { overflow: hidden; }
.reviews-head { text-align: center; margin-bottom: 64px; }
.reviews-count {
  font-family: var(--font-kr); font-weight: 600;
  font-size: clamp(52px, 11vw, 104px); line-height: 1;
  letter-spacing: -0.01em; color: var(--text);
}
.reviews-meta { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* 세 줄이 서로 다른 속도로 위로 흐릅니다.
   위아래 끝은 마스크로 서서히 사라지게 해서 잘린 느낌이 나지 않게 합니다. */
.reviews-columns {
  display: flex; justify-content: center; gap: 24px;
  max-height: 900px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.review-col { flex: 1 1 0; min-width: 0; max-width: 320px; }

/* 좁아지면 줄을 하나씩 접습니다 — 데스크톱 3줄, 태블릿 2줄, 모바일 1줄 */
@media (max-width: 1023px) { .review-col-3 { display: none; } }
@media (max-width: 767px)  { .review-col-2 { display: none; } }

/* 카드 사이 간격은 gap 이 아니라 margin-bottom 으로 줍니다.
   그래야 트랙 절반(-50%)이 카드 묶음 하나와 정확히 맞아 이음매가 보이지 않습니다. */
.review-col-track {
  display: flex; flex-direction: column;
  animation: reviews-up var(--marquee-dur, 50s) linear infinite;
  will-change: transform;
}
.reviews-columns:hover .review-col-track,
.reviews-columns:focus-within .review-col-track { animation-play-state: paused; }

@keyframes reviews-up {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -50%, 0); }
}

.review-card {
  width: 100%; flex-shrink: 0; margin: 0 0 24px;
  background: var(--surface);
  border: 1px solid rgba(231, 227, 218, 0.7);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.review-card figcaption { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
/* 후기 길이가 제각각이라 모든 카드를 4줄에서 자른다 — 카드 높이가 비슷해야 흐르는 열이 고르게 보인다 */
.review-card p {
  font-size: 14px; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.review-card span { font-size: 11.5px; color: var(--muted); }


.reviews-more { text-align: center; margin-top: 56px; }

/* ==========================================================================
   7. 함께하기 배너
   ========================================================================== */
.banner {
  position: relative; min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* 가운데 기준으로 자른다. 사진을 바꿔서 얼굴이 위·아래로 잘리면 object-position 의 세로 값을 조정 */
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-scrim { position: absolute; inset: 0; background: rgba(15, 30, 25, 0.55); pointer-events: none; }
.banner-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 540px; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.banner-content p { font-size: 15px; line-height: 1.6; color: rgba(243, 241, 234, 0.85); margin: 0; }

/* ==========================================================================
   8. 문의 폼
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 26px); }
.contact-intro > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.contact-direct { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-direct li { display: flex; flex-direction: column; gap: 2px; }
.contact-direct span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-direct a { font-size: 15px; font-weight: 500; }
.contact-direct a[aria-disabled="true"] { pointer-events: none; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--surface);
  border: 1px solid rgba(231, 227, 218, 0.7);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.field label em { color: var(--gold); font-style: normal; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FDFBF8;
  font-size: 14px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--muted); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #B4523F; background: #FFF8F6;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237C8A85' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 36px;
}

/* honeypot — 화면·스크린리더 모두에서 제외 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-status { margin: 0; font-size: 13.5px; color: var(--muted); }
.form-status.is-ok    { color: #2F6B4F; font-weight: 600; }
.form-status.is-error { color: #B4523F; font-weight: 600; }
.contact-form.is-sending { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   9. FAQ 아코디언
   ========================================================================== */
.accordion { display: flex; flex-direction: column; }
.acc-item { border-bottom: 1px solid var(--line-dark); }
.acc-item h3 { margin: 0; font-size: inherit; font-weight: inherit; }

.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 500; color: var(--on-dark);
  transition: color 0.3s var(--ease);
}
/* 질문 번호 — 일곱 개로 늘어나 훑어보기 쉽게 금색으로 구분 */
.acc-q { font-style: normal; color: var(--gold); margin-right: 4px; font-variant-numeric: tabular-nums; }
/* 답변 안 전화번호 링크 — 어두운 배경에서 본문과 같은 색, 밑줄로만 링크임을 표시 */
.acc-panel a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.acc-panel a:hover { color: var(--gold); }
.acc-trigger:hover { color: #fff; }

.acc-icon {
  position: relative; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--on-dark);
  transition: transform 0.35s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--forest); transform: translate(-50%, -50%);
}
.acc-icon::before { width: 10px;  height: 1.5px; }
.acc-icon::after  { width: 1.5px; height: 10px; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(135deg); }

.acc-panel {
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease);
}
.acc-panel.is-open { opacity: 1; }
.acc-panel p {
  font-size: 14px; line-height: 1.7; margin: 0 0 22px;
  color: rgba(243, 241, 234, 0.7); max-width: 620px;
}

/* ==========================================================================
   서브 페이지 공통 — 페이지 머리 · 본문 조판 · 카드
   홈을 뺀 모든 페이지가 이 블록만으로 짜입니다. 페이지마다 새 스타일을 만들지 않습니다.
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--forest), var(--forest-deep));
  padding: 84px 0 76px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 12% 88%, rgba(184, 147, 74, 0.09), transparent 52%);
}
.page-hero > .container { position: relative; }

/* 사진·영상을 까는 페이지 머리 — 화면을 거의 채우는 큰 배경에 글이 왼쪽 아래로 붙는다.
   기본은 딥 그린이고, 이 변형을 붙인 페이지만 배경이 바뀝니다(지금은 브랜드 스토리 한 장).
   딥 그린 그라데이션을 지우지 않고 사진을 그 위에 얹은 뒤 다시 딥 그린으로 눌러,
   사진이 없거나 늦게 떠도 다른 페이지 머리와 같은 색으로 보이게 한다 */
.page-hero-photo {
  min-height: clamp(560px, 86svh, 920px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(56px, 8vh, 92px);
}
/* img 로 두었다가 images/story-hero.mp4 가 있으면 video 로 교체됩니다 (images.js) */
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 글이 아래에 깔리므로 아래를 진하게 — 가운데는 사진이 그대로 보이게 둔다.
   대비 4.5:1 을 지키려면 아래쪽 값을 옅게 만들지 마세요 */
.page-hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(23, 48, 42, 0.38) 0%, rgba(23, 48, 42, 0.14) 30%, rgba(23, 48, 42, 0.82) 100%);
}
/* 사진·막보다 위로 — 금색 빛무리(::before)는 사진 위에서 스며들어야 보인다 */
.page-hero-photo::before { z-index: 1; }
.page-hero-photo > .container { z-index: 2; }
/* 큰 글씨가 좁은 상자 안에서 이르게 꺾이지 않도록 조금 넓힌다 */
.page-hero-photo .page-hero-inner { max-width: 880px; gap: 20px; }
.page-hero-photo .page-lead { color: rgba(243, 241, 234, 0.86); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
/* 제목 밑에 그어지는 선 — 밑줄이 왼쪽부터 그어지는 .link-grow 와 같은 어휘입니다.
   --line-dark 는 사진 위에서 거의 보이지 않아 같은 계열의 진한 값을 씁니다 */
.page-hero-line {
  display: block; width: 100%; max-width: 560px; height: 1px;
  background: rgba(243, 241, 234, 0.45);
  transform-origin: left center;
}
.page-hero-inner { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.04em; color: rgba(243, 241, 234, 0.55);
}
.breadcrumb a { color: rgba(243, 241, 234, 0.72); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-style: normal; opacity: 0.4; }

.page-title {
  font-family: var(--font-kr);
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 600; line-height: 1.28; letter-spacing: -0.01em;
  color: var(--on-dark); margin: 0;
}
.page-lead {
  margin: 0; max-width: 620px;
  font-size: 15px; line-height: 1.8; color: rgba(243, 241, 234, 0.72);
}

/* 페이지 머리 등장 — 어휘는 본문과 같은 페이드인 + 살짝 올라오기.
   열자마자 화면에 떠 있는 자리라 스크롤을 기다리지 않고 한 번만 재생한다(IntersectionObserver 불필요).
   13장이 같아야 하는 자리라 마크업 없이 CSS 로만 걸어 모든 하위 페이지에 함께 적용된다 */
@keyframes page-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes page-hero-glow { from { opacity: 0; } to { opacity: 1; } }
.page-hero-inner > * { animation: page-hero-rise var(--dur) var(--ease) both; }
.page-hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.page-hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.page-hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
/* 배경은 살짝 크게 들어와 제자리로 돌아온다 — 이 사이트에서 확대를 쓰는 유일한 자리입니다(사용자 요청).
   글보다 훨씬 느리게(2.4초) 움직여야 흔들리지 않고 가라앉는 느낌이 납니다 */
@keyframes page-hero-zoom { from { transform: scale(1.1); } to { transform: none; } }
.page-hero-photo .page-hero-bg { animation: page-hero-zoom 2.4s var(--ease) both; }

/* 선은 떠오르지 않고 왼쪽부터 그어진다 — 위 규칙의 transform 을 덮어쓴다 */
@keyframes page-hero-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.page-hero-line { animation: page-hero-draw 1.1s var(--ease) 0.3s both; }
/* 금색 빛무리는 글보다 천천히 스며든다 */
.page-hero::before { animation: page-hero-glow 1.6s var(--ease) both; }

/* ---------- 본문 조판 ---------- */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose p { margin: 0; font-size: 15px; line-height: 1.85; }
.prose .prose-sub { font-size: 14px; color: var(--muted); }
.prose-sign { font-size: 14px; color: var(--muted); }

.block-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 720px; }

/* 사진 한 쪽 · 글 한 쪽. .split-rev 는 사진이 오른쪽 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 14px; }
.split-media { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-img); }
.split-rev .split-media { order: 2; }

/* 사진을 화면에 붙여 두고 글이 지나간다 — 큰 세로 사진을 읽는 내내 보여주려는 배치.
   sticky 라서 .sticky-split 과 그 조상에 overflow: hidden 을 걸면 안 됩니다 */
.sticky-split { display: grid; grid-template-columns: 0.92fr 1fr; gap: 56px; align-items: start; }
.sticky-split .split-media { position: sticky; top: calc(var(--header-h) + 36px); }

/* ---------- 전폭 사진 배너 — 섹션 사이의 쉼표 ---------- */
.photo-band {
  position: relative; overflow: hidden;
  padding: clamp(104px, 17vh, 176px) 0;
  background: var(--forest);
}
.photo-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 글이 왼쪽에 얹히므로 왼쪽을 진하게 — 사진의 오른쪽은 비교적 그대로 보인다 */
.photo-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(9, 17, 14, 0.78) 0%, rgba(9, 17, 14, 0.54) 52%, rgba(9, 17, 14, 0.3) 100%);
}
.photo-band > .container { position: relative; z-index: 1; }
.photo-band-text { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.photo-band-text > * { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.photo-band-text .h2 { color: var(--on-dark); }
.photo-band-text p { margin: 0; font-size: 15px; line-height: 1.8; color: rgba(243, 241, 234, 0.82); }

/* ---------- 카드 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-grid-2 { grid-template-columns: repeat(2, 1fr); }
.info-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
}
.info-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.info-card p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.info-num { font-family: var(--font-head); font-size: 13px; letter-spacing: 0.08em; color: var(--gold); }

/* 번호 대신 아이콘을 얹는 정사각 카드 — 브랜드 스토리 '지키는 것'(사용자 요청).
   세 장이 같은 정사각으로 보이도록 비율을 고정하고 내용을 가운데로 모읍니다 */
.info-grid-icon .info-card {
  aspect-ratio: 1 / 1;
  align-items: center; justify-content: center; text-align: center;
  gap: 14px; padding: 30px 26px;
}
.info-icon {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 50, 44, 0.055); color: var(--forest);
  margin-bottom: 16px;   /* gap(14px) 에 더해 아이콘과 제목을 확실히 떼어 놓는다 */
}
.info-icon svg { width: 27px; height: 27px; }

/* ---------- 사진을 배경으로 까는 섹션 ----------
   사진을 그대로 깝니다. 크림색 베일을 덮었다가 사용자 요청으로 뺐습니다 — 다시 넣지 마세요.
   덮는 것이 없으므로 **배경 사진은 반드시 밝은 컷**이어야 글씨가 읽힙니다.
   사진 위에 직접 얹히는 글은 --muted 대신 --text 로 올려 둡니다 */
.section-photo { position: relative; background: var(--bg-cream); }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-photo > .container { position: relative; z-index: 1; }
/* 사진 위에서는 --muted 가 4.5:1 을 못 넘겨 글자가 배경에 묻힙니다(사용자 지적).
   덮는 베일이 없으므로 위계는 크기·자간으로 두고 색만 --text 로 올립니다 */
.section-photo .eyebrow,
.section-photo .section-sub { color: var(--text); }

/* ---------- 유리 카드 ----------
   만드는 방법 섹션과 같은 재료입니다 — 흰색 42% 반투명 + blur(18px) + 대각선 1px 흰 빛 테두리.
   글씨는 --text · --muted 그대로라 배경 사진이 밝아도 읽힙니다 */
.info-grid-glass .info-card {
  position: relative;
  background: rgba(255, 255, 255, 0.44);
  border: 0;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.info-grid-glass .info-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.75));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
/* 유리 위에서는 딥 그린 원이 탁해 보인다 — 흰 유리로 한 겹 더 */
.info-grid-glass .info-icon { background: rgba(255, 255, 255, 0.55); }
/* 뒤가 사진이라 밝기가 일정하지 않다 — 본문을 --muted 로 두면 어두운 컷에서 4.5:1 이 깨진다 */
.info-grid-glass .info-card p { color: var(--text); }

/* 제품 페이지에서는 홈과 같은 카드를 격자로 세운다 — 가로로 흐르는 줄이 아니므로 폭 고정을 푼다 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid .product-card { width: auto; margin: 0; }

/* 확인된 사실만 줄 세워 보여주는 표 — 인증 번호 · 연혁 */
.fact-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.fact-list li {
  display: grid; grid-template-columns: 210px 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7;
}
.fact-list li:last-child { border-bottom: 1px solid var(--line); }
.fact-list b { font-weight: 600; }
.fact-list span { color: var(--muted); }
.section-forest .fact-list li { border-color: var(--line-dark); color: rgba(243, 241, 234, 0.78); }
.section-forest .fact-list span { color: rgba(243, 241, 234, 0.5); }

/* ---------- 페이지 끝 유도 ---------- */
.cta-band { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-band p { margin: 0; color: var(--muted); font-size: 14px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 같은 묶음의 다른 페이지로 — 막다른 페이지를 만들지 않기 위한 카드 */
.sibling-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sibling-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sibling-card:hover { color: var(--text); border-color: rgba(184, 147, 74, 0.5); box-shadow: var(--shadow-card); }
.sibling-card strong { font-size: 15px; font-weight: 600; }
.sibling-card span { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--forest-foot); padding: 72px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.15fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(243, 241, 234, 0.1);
}
.brand-footer { margin-bottom: 14px; }
.brand-footer strong { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--on-dark); }
.footer-blurb { font-size: 13px; line-height: 1.7; color: rgba(243, 241, 234, 0.55); margin: 0; max-width: 320px; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(243, 241, 234, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.social a:hover { background: rgba(243, 241, 234, 0.18); color: var(--on-dark); }
.social svg { display: block; }

.site-footer nav { display: flex; flex-direction: column; gap: 12px; }
.footer-head {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(243, 241, 234, 0.4); display: block; margin-bottom: 4px;
}
.site-footer nav a { font-size: 14px; color: rgba(243, 241, 234, 0.75); }
.site-footer nav a:hover { color: var(--gold); }
/* 한 칸에 묶음이 둘 이상 들어가므로 두 번째 머리글부터 위를 띄운다 */
.site-footer nav .footer-head:not(:first-child) { margin-top: 20px; }
.footer-head-gap { margin-top: 24px; }
.footer-biz { font-size: 12.5px; line-height: 1.8; color: rgba(243, 241, 234, 0.55); margin: 8px 0 0; }
.footer-biz a { color: rgba(243, 241, 234, 0.75); }
.footer-biz a:hover { color: var(--gold); }
.copyright {
  max-width: var(--container); margin: 24px auto 0; padding: 0 var(--gutter);
  font-size: 12px; color: rgba(243, 241, 234, 0.35);
}

/* ==========================================================================
   MOTION — 페이드인 / 살짝 올라오기, 이 두 가지만
   ========================================================================== */
.reveal, .reveal-up, .reveal-left {
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal-up { transform: translateY(24px); }
/* 왼쪽에서 밀려 들어오기 — 대표의 편지 사진에 씁니다(사용자 요청).
   올라오기보다 거리를 조금 더 주고, 큰 사진이라 --dur(0.7s)로는 휙 지나가서 천천히 들어옵니다 */
.reveal-left { transform: translateX(-36px); transition-duration: var(--dur-slow); }
.reveal.is-visible, .reveal-up.is-visible, .reveal-left.is-visible { opacity: 1; transform: none; }

/* 묶음 안에서 한 줄씩 떠오른다 — 편지처럼 이어 읽는 글, 나란히 선 카드에 쓴다. 등장 어휘는 페이드 + 올라오기 그대로.
   --seq-step 이 한 칸 간격입니다. 카드처럼 덩어리가 크면 간격을 늘려야 하나씩 오는 게 보입니다 */
.reveal-seq { --seq-step: 0.09s; }
.reveal-seq > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal-seq.is-visible > * { opacity: 1; transform: none; }
.reveal-seq.is-visible > *:nth-child(2) { transition-delay: calc(var(--seq-step) * 1); }
.reveal-seq.is-visible > *:nth-child(3) { transition-delay: calc(var(--seq-step) * 2); }
.reveal-seq.is-visible > *:nth-child(4) { transition-delay: calc(var(--seq-step) * 3); }
.reveal-seq.is-visible > *:nth-child(5) { transition-delay: calc(var(--seq-step) * 4); }
.reveal-seq.is-visible > *:nth-child(6) { transition-delay: calc(var(--seq-step) * 5); }
/* 카드는 덩어리가 커서 0.09s 로는 한꺼번에 올라온 것처럼 보입니다 */
.info-grid.reveal-seq { --seq-step: 0.18s; }

/* 카드가 줄지어 들어올 때 살짝 시간차 */
.stat-row .reveal-up:nth-child(2)  { transition-delay: 0.08s; }
.stat-row .reveal-up:nth-child(3)  { transition-delay: 0.16s; }

/* JS가 꺼져 있으면 아무것도 숨기지 않는다 */
html.no-js .reveal, html.no-js .reveal-up, html.no-js .reveal-left, html.no-js .reveal-seq > * { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --section-y: 88px; --gutter: 28px; }
  .method-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .split { gap: 36px; }
  .info-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; gap: 12px; }
  .products-intro { gap: 24px; padding-bottom: 0; }

  /* 좁은 화면 고정 모드 — 소개 글과 카드 줄이 한 화면에 들어가게 글·간격을 줄이고,
     카드 줄은 양쪽 화면 끝까지 붙인다(왼쪽 페이드는 여백만큼만) */
  .products.is-pinned .products-stage { padding-top: calc(var(--header-h) + 8px); }
  .products.is-pinned .products-layout { gap: 4px; }
  .products.is-pinned .products-intro { gap: 10px; padding: 0; }
  .products.is-pinned .products-intro-text { gap: 6px; }
  .products.is-pinned .products-intro-text .h2 { margin-bottom: 0; }
  .products.is-pinned .products-lead { font-size: 13px; line-height: 1.55; }
  .products.is-pinned .products-intro .link-grow { margin-top: 0; }
  .products.is-pinned .products-viewport {
    margin-left: calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter));
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter));
  }
  .products.is-pinned .products-viewport { padding: 12px 0; }
  .products.is-pinned .product-track { padding-left: var(--gutter); }
  /* 카드 크기를 화면 높이에 맞춘다 — 주소창·하단 바를 뺀 실제 높이(svh)가 작은 폰에서도 한 화면에 들어가게 */
  .products.is-pinned .product-card { width: 230px; width: clamp(150px, 26svh, 230px); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(251, 248, 243, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    /* 하위 목록까지 한 번에 펼치면 작은 화면에서는 넘친다 — 패널 안에서 스크롤한다 */
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-nav .btn { margin-top: 18px; border-bottom: 0; padding: 14px 22px; }

  /* 좁은 화면에서는 하위 목록을 늘 펼쳐 둔다 — 여는 화살표를 없앴고, 한 번에 전체 지도를 보여주는 편이 빠르다 */
  .nav-item { padding: 0; margin: 0; }
  .site-nav .nav-link {
    display: flex; width: 100%; padding: 14px 0 6px;
    border-bottom: 0; font-size: 15px; font-weight: 600;
  }
  .nav-sub {
    position: static; min-width: 0; padding: 0 0 8px; border: 0; border-radius: 0;
    background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    opacity: 1; visibility: visible; transform: none;
  }
  /* 묶음 사이만 선으로 나눈다 — 줄마다 선을 그으면 목록이 길어 답답하다 */
  .nav-item + .nav-item, .nav-item + a:not(.btn) { border-top: 1px solid var(--line); }
  .nav-sub a {
    padding: 9px 0 9px 14px; border-radius: 0; border-bottom: 0;
    font-size: 14px; color: var(--muted);
  }
  .nav-sub a:hover { background: none; }
  /* 행이 화면 너비만큼 넓어 밑점은 눈에 띄지 않는다 — 글자 옆으로 옮긴다 */
  .site-nav > [aria-current="page"]::after,
  .nav-item.is-current > .nav-link::after {
    position: static; transform: none;
  }
  .site-nav > [aria-current="page"] { display: flex; align-items: center; }
  .site-nav > [aria-current="page"],
  .site-nav .nav-link { gap: 7px; }

  .hero { min-height: 84vh; }
  .hero-content { gap: 18px; }

  .page-hero { padding: 64px 0 60px; }
  /* 세로로 길어질수록 사진 좌우가 크게 잘린다 — 높이를 줄여 잘림을 덜어낸다 */
  .page-hero-photo { min-height: clamp(440px, 68svh, 620px); padding: calc(var(--header-h) + 28px) 0 48px; }
  /* 사진이 글보다 먼저 오면 본문이 한참 밀린다 — 한 줄로 쌓일 땐 글을 위로 */
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-rev .split-media { order: 0; }
  /* 붙여 둘 자리가 없다 — 한 줄로 쌓고 사진은 글 아래로 내린다 */
  .sticky-split { grid-template-columns: 1fr; gap: 28px; }
  .sticky-split .split-media { position: static; order: 2; }
  .photo-band { padding: 96px 0; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }


  .story { min-height: 0; }
  /* 한 줄로 쌓이면 글이 화면 전체에 깔리므로 그라데이션 대신 고르게 누른다 */
  .story-scrim { background: rgba(9, 17, 14, 0.6); }
  .story-text { max-width: none; }

  .stat { border-left: 0; padding: 0 12px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; }
  .contact-form { padding: 26px; }

}

@media (max-width: 560px) {
  :root { --section-y: 72px; --gutter: 20px; }
  .br-mo { display: inline; }
  .hero-content .eyebrow-light { font-size: 13px; }
  .method-cards { grid-template-columns: 1fr; }
  .story { --story-inset: 16px; --story-inset-y: 32px; }
  body { font-size: 14.5px; }
  .section-head { margin-bottom: 36px; }
  .contact-form { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 52px 0 48px; }
  .info-grid, .info-grid-2, .info-grid-4, .product-grid { grid-template-columns: 1fr; }
  .info-card { padding: 22px; }
  .fact-list li { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .banner-content { padding: 64px 20px; }
  .product-card { width: 200px; }
}

/* 겹쳐 쌓기 모드가 넓은 화면(태블릿 등)에 걸리면 세로 카드 양옆이 비어 보인다 —
   사진 왼쪽 · 번호/제목/설명 오른쪽의 가로형 카드로 폭을 채운다 */
@media (min-width: 561px) {
  .method.is-stacked .method-card {
    max-width: 760px;
    display: grid; grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 28px; row-gap: 10px;
    padding: 20px;
  }
  .method.is-stacked .method-thumb {
    grid-column: 1; grid-row: 1 / -1;
    aspect-ratio: 4 / 3; max-height: none;
  }
  .method.is-stacked .method-num { grid-column: 2; grid-row: 2; }
  .method.is-stacked .method-card h3 { grid-column: 2; grid-row: 3; margin: 0; font-size: 18px; }
  .method.is-stacked .method-card p { grid-column: 2; grid-row: 4; font-size: 14.5px; }
}

/* 낮은 폰(주소창 뺀 높이 700px 미만)에서 제품 라인업을 고정하면 소개 글 맨 위가 헤더에 가린다 —
   바로 아래 큰 제목이 같은 말을 하므로 작은 라벨만 뺀다 */
@media (max-width: 1024px) and (max-height: 700px) {
  .products.is-pinned .products-intro .eyebrow { display: none; }
}

/* ==========================================================================
   접근성 — 모션 최소화 설정을 존중
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-up, .reveal-left, .reveal-seq > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  /* 흐르지 않으니 잘라둘 이유도 없습니다 — 리뷰 전체를 그냥 보여줍니다 */
  .review-col-track { animation: none; }
  .reviews-columns {
    max-height: none; align-items: start;
    -webkit-mask-image: none; mask-image: none;
  }
  .review-col-track > .review-card[aria-hidden="true"] { display: none; }
  .btn:hover { transform: none; }
  /* 페이지 머리는 처음부터 제자리에 */
  .page-hero-inner > *, .page-hero::before { animation: none; }
  .page-hero-line { animation: none; transform: none; }
  .page-hero-photo .page-hero-bg { animation: none; transform: none; }
  /* 하위 메뉴는 움직임 없이 즉시 나타난다 */
  .nav-sub { transition: none; }
  .story { --grow: 1 !important; }
  .hero-slide .hero-content > * { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* 인쇄 */
@media print {
  .site-header, .nav-toggle { display: none; }
  .reviews-columns { max-height: none; -webkit-mask-image: none; mask-image: none; }
  body { background: #fff; }
}
