/* =========================================================
   푸른원목 — Design System
   Palette: Deep Forest / Moss / Cream / Bark
========================================================= */

:root {
  /* === CI Primary — Forest Green (#245E37) === */
  --forest-950: #0f2417;
  --forest-900: #16351f;
  --forest-800: #1c4a2b;
  --forest-700: #245e37;   /* CI PRIMARY */
  --forest-600: #2f7a47;
  --forest-500: #3e9758;
  --forest-400: #6fb587;
  --forest-300: #a8d3b8;
  --forest-100: #e3efe7;
  --forest-50:  #f1f7f3;

  /* === CI Secondary — Deep Cyan & Blue (#2A7D8C) === */
  --cyan-900: #0f2f39;
  --cyan-800: #164856;
  --cyan-700: #2a7d8c;     /* CI SECONDARY */
  --cyan-600: #3d9aa9;
  --cyan-500: #55b3c2;
  --cyan-300: #a4d5dd;
  --cyan-100: #d6ecef;
  --cyan-50:  #eaf5f7;

  /* === CI Accent — Warm Earth Tone (#9A7449) === */
  --earth-900: #3a2a17;
  --earth-800: #4a361f;
  --earth-700: #7a5a35;
  --earth-600: #9a7449;    /* CI ACCENT */
  --earth-500: #b18a5c;
  --earth-300: #d4b892;
  --earth-100: #efe4d1;
  --earth-50:  #f8f2e6;

  --cream-50:  #faf7ef;
  --cream-100: #f4efe1;
  --cream-200: #e9e1c9;

  /* 하위호환 (기존 bark-*) */
  --bark-800: var(--earth-800);
  --bark-600: var(--earth-700);
  --bark-500: var(--earth-600);
  --bark-300: var(--earth-300);

  --ink-900: #101a13;
  --ink-700: #2b3a2f;
  --ink-500: #566a5c;
  --ink-400: #7d9083;
  --ink-300: #a9b7ad;

  --line: rgba(15, 36, 23, 0.12);
  --line-strong: rgba(15, 36, 23, 0.22);

  --shadow-sm: 0 1px 2px rgba(15, 36, 23, 0.06), 0 2px 6px rgba(15, 36, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 36, 23, 0.10), 0 2px 6px rgba(15, 36, 23, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 36, 23, 0.18), 0 6px 16px rgba(15, 36, 23, 0.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --serif: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
  --sans:  "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

/* 본문 바로가기 — 메뉴가 13개라 키보드 사용자가 Tab 으로 전부 지나쳐야
   본문에 닿는다. 평소엔 화면 밖에 있다가 포커스를 받으면 나타난다. */
.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--forest-800); color: var(--cream-50);
  padding: 14px 26px; border-radius: 0 0 12px 12px;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 3px solid var(--forest-300); outline-offset: 2px;
}

/* 포커스 링 — 키보드로 이동할 때만 보이게(마우스 클릭에는 안 뜬다) */
:focus-visible {
  outline: 3px solid var(--forest-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible,
.page-header :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--forest-300); }

/* hidden 속성은 무조건 숨긴다.
   브라우저 기본값 [hidden]{display:none} 은 작성자 스타일에 항상 밀린다.
   그래서 .modal{display:grid} 같은 규칙이 있으면 hidden 을 붙여도 화면에
   남는다 — 실제로 관리자 모달이 로그인 화면을 덮어 로그인을 못 하는
   문제가 있었다. 이 한 줄이 그 부류의 버그를 통째로 막는다. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--cream-50);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: var(--forest-900); margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; color: var(--ink-700); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--forest-700);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--forest-500);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--forest-700); color: var(--cream-50); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--forest-800); border: 1px solid var(--forest-700); }
.btn-ghost:hover { background: var(--forest-700); color: var(--cream-50); }
.btn-light { background: var(--cream-50); color: var(--forest-900); }
.btn-light:hover { background: white; }
/* CI 3색 버튼 변형.
   ⚠ CI 원색(earth-600 #9A7449 · cyan-700 #2A7D8C)을 크림 글자와 함께 쓰면
   명도 대비가 각각 3.95 · 4.45 로 WCAG AA(4.5)에 못 미친다. 브랜드 색은
   그대로 두고, **버튼 배경으로 쓸 때만** 한 단계 어두운 값을 쓴다.
   (earth-700 5.87 · cyan-800 9.36 — 둘 다 AA 통과) */
.btn-earth { background: var(--earth-700); color: var(--cream-50); box-shadow: var(--shadow-sm); }
.btn-earth:hover { background: var(--earth-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-cyan { background: var(--cyan-800); color: var(--cream-50); box-shadow: var(--shadow-sm); }
.btn-cyan:hover { background: var(--cyan-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
/* 톤별 페이지에서는 btn-primary 도 페이지 컬러로 자동 전환 */
body.tone-earth .btn-primary { background: var(--earth-700); }
body.tone-earth .btn-primary:hover { background: var(--earth-800); }
body.tone-cyan  .btn-primary { background: var(--cyan-800); }
body.tone-cyan  .btn-primary:hover { background: var(--cyan-900); }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--forest-900);
  text-decoration: none;
}
.brand-logo {
  height: 52px; width: auto; display: block;
  background: transparent; border: 0; outline: 0; box-shadow: none;
  transition: transform .2s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 700;
  color: var(--forest-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  color: var(--ink-500);
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-top: 3px;
}
@media (max-width: 720px) {
  .brand-logo { height: 44px; }
  .brand-name { font-size: 1.15rem; }
  .brand-name small { font-size: 0.6rem; letter-spacing: 0.14em; }
}
/* 푸터 전용: 로고 이미지 + 텍스트 */
.brand--footer { color: var(--cream-50); gap: 14px; align-items: center; }
.footer-logo-mark {
  height: 56px; width: auto; display: block;
  /* 다크 배경에서 로고가 잘 보이도록 밝기 상향 */
  filter: brightness(1.35) saturate(1.15) drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
/* 하위호환 (기존 마크 SVG 남아있을 경우) */
.brand-mark-footer {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--forest-500), var(--forest-700));
  color: var(--cream-50);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.20);
}
.brand-mark-footer svg { width: 20px; height: 20px; }
.brand--footer .brand-text {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 700;
  color: var(--cream-50);
  line-height: 1.1;
}
.brand--footer .brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  color: rgba(250, 247, 239, 0.55);
  letter-spacing: 0.16em;
  font-weight: 500;
  margin-top: 2px;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-500));
  display: grid; place-items: center; color: var(--cream-50);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.15);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--sans); font-size: 0.7rem; color: var(--ink-500); letter-spacing: 0.14em; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: background .18s ease, color .18s ease;
  position: relative;
}
.nav a:hover { color: var(--forest-800); background: var(--forest-50); }
.nav a.active { color: var(--forest-900); background: var(--forest-100); }
.nav .cta { margin-left: 10px; }

/* ---------- 사업분야 드롭다운 ---------- */
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-size: 0.94rem; font-weight: 500; color: var(--ink-700);
  font-family: inherit;
  transition: background .18s ease, color .18s ease;
}
.nav-trigger:hover { color: var(--forest-800); background: var(--forest-50); }
.nav-group.is-active .nav-trigger { color: var(--forest-900); background: var(--forest-100); }
.nav-chev { transition: transform .2s ease; }
.nav-group:hover .nav-chev,
.nav-group:focus-within .nav-chev,
.nav-trigger[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 208px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
/* 마우스가 버튼과 메뉴 사이 빈틈을 지날 때 닫히지 않도록 */
.nav-menu::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group.open .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  width: 100%; padding: 11px 14px 11px 30px; border-radius: 10px;
  font-size: 0.94rem; white-space: nowrap;
}

/* CI 3색 나비게이션 힌트 — 카테고리 목적지에 매칭 */
.nav a[href="/services-landscape"]:hover { background: var(--forest-50); color: var(--forest-800); }
.nav a[href="/services-landscape"].active { background: var(--forest-100); color: var(--forest-900); }

.nav a[href="/services-logging"]:hover { background: var(--earth-50); color: var(--earth-800); }
.nav a[href="/services-logging"].active { background: var(--earth-100); color: var(--earth-900); }

.nav a[href="/services-shredding"]:hover { background: var(--cyan-50); color: var(--cyan-800); }
.nav a[href="/services-shredding"].active { background: var(--cyan-100); color: var(--cyan-900); }

/* 카테고리 링크 좌측에 작은 컬러 도트 (시각 힌트) */
.nav a[href^="/services-"] {
  position: relative;
  padding-left: 22px;
}
.nav a[href^="/services-"]::before {
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%);
  background: var(--forest-500);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav a[href="/services-landscape"]::before { background: var(--forest-500); }
.nav a[href="/services-logging"]::before   { background: var(--earth-500);  }
.nav a[href="/services-shredding"]::before { background: var(--cyan-500);   }

/* 시공사례 드롭다운도 같은 색 코드를 쓴다 — 두 메뉴가 같은 분류를 가리키므로
   색이 다르면 오히려 헷갈린다. */
.nav a[href^="/portfolio?cat="] { position: relative; padding-left: 22px; }
.nav a[href^="/portfolio?cat="]::before {
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%);
}
.nav a[href="/portfolio?cat=landscape"]::before { background: var(--forest-500); }
.nav a[href="/portfolio?cat=logging"]::before   { background: var(--earth-500);  }
.nav a[href="/portfolio?cat=shredding"]::before { background: var(--cyan-500);   }
.nav a[href="/portfolio?cat=landscape"]:hover { background: var(--forest-50); color: var(--forest-800); }
.nav a[href="/portfolio?cat=logging"]:hover   { background: var(--earth-50);  color: var(--earth-800);  }
.nav a[href="/portfolio?cat=shredding"]:hover { background: var(--cyan-50);   color: var(--cyan-800);   }
.nav a[href^="/services-"]:hover::before,
.nav a[href^="/services-"].active::before {
  transform: translateY(-50%) scale(1.4);
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.9;
}
.nav a[href="/services-landscape"]:hover::before,
.nav a[href="/services-landscape"].active::before {
  box-shadow: 0 0 0 4px rgba(62,151,88,0.18);
}
.nav a[href="/services-logging"]:hover::before,
.nav a[href="/services-logging"].active::before {
  box-shadow: 0 0 0 4px rgba(154,116,73,0.18);
}
.nav a[href="/services-shredding"]:hover::before,
.nav a[href="/services-shredding"].active::before {
  box-shadow: 0 0 0 4px rgba(42,125,140,0.18);
}

.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--forest-900); position: relative; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--forest-900);
}
.hamburger span::before { top: -7px; }
.hamburger span::after  { top:  7px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -20%, var(--forest-500) 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 110%, var(--forest-800) 0%, transparent 55%),
    linear-gradient(180deg, var(--forest-900) 0%, var(--forest-950) 100%);
  color: var(--cream-50);
}
.hero .container {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px;
  align-items: center; padding-top: 96px; padding-bottom: 120px;
}
.hero h1 { color: var(--cream-50); font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.hero h1 em { font-style: normal; color: var(--forest-300); }
.hero .lede { color: rgba(250, 247, 239, 0.82); font-size: 1.1rem; max-width: 520px; margin: 24px 0 32px; }
.hero .eyebrow { color: var(--forest-300); }
.hero .eyebrow::before { background: var(--forest-400); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hero-stats > div {
  padding-top: 20px;
  border-top: 3px solid rgba(255,255,255,0.14);
}
.hero-stats > div:nth-child(1) { border-top-color: var(--forest-400); }
.hero-stats > div:nth-child(2) { border-top-color: var(--earth-500);  }
.hero-stats > div:nth-child(3) { border-top-color: var(--cyan-500);   }
.hero-stats .num { font-family: var(--serif); font-size: 2rem; color: var(--cream-50); }
.hero-stats .lbl { font-size: 0.85rem; color: rgba(250,247,239,0.68); letter-spacing: 0.06em; }

.hero-visual {
  position: relative; aspect-ratio: 4/5;
  border-radius: 220px 220px 40px 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.10), transparent 40%),
    linear-gradient(180deg, #2f7a47 0%, #16351f 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-badge {
  position: absolute; left: -18px; bottom: 40px;
  background: var(--cream-50); color: var(--forest-900);
  padding: 18px 22px; border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  font-weight: 600;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--forest-500); box-shadow: 0 0 0 5px rgba(62,151,88,0.2); }

/* ---------- Section base ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  display: flex; flex-direction: column; min-height: 320px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-300);
}
.service-card .ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--forest-50); color: var(--forest-700);
  display: grid; place-items: center; margin-bottom: 22px;
}
/* 4개 카드 색상: 조경수 · 벌채 → Forest / 벌목 → Earth / 파쇄 → Cyan */
.services-grid .service-card:nth-child(3) .ic { background: var(--earth-50); color: var(--earth-700); }
.services-grid .service-card:nth-child(4) .ic { background: var(--cyan-50);  color: var(--cyan-700);  }
.service-card h3 { color: var(--forest-900); margin-bottom: 8px; }
.service-card p { color: var(--ink-500); font-size: 0.95rem; }
.service-card .more { margin-top: auto; color: var(--forest-700); font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 8px; align-items: center; }
.service-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, var(--forest-100), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.service-card:hover::after { opacity: 1; }

/* ---------- Feature strip ---------- */
.features {
  background: var(--forest-50);
}
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
}
.feature { border-top: 3px solid var(--forest-500); }
.feature .num {
  font-family: var(--serif); font-size: 2rem; color: var(--forest-500);
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px;
  display: inline-block; min-width: 60px;
}
.feature h3 { color: var(--forest-900); margin-bottom: 10px; font-size: 1.2rem; }
.feature p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }

/* CI 3색 로테이션: 3-card features (회사소개 3원칙 · 홈 Feature) */
.features-grid .feature:nth-child(1)         { border-top-color: var(--forest-500); }
.features-grid .feature:nth-child(1) .num    { color: var(--forest-600); }
.features-grid .feature:nth-child(1) h3      { color: var(--forest-900); }

.features-grid .feature:nth-child(2)         { border-top-color: var(--cyan-600); }
.features-grid .feature:nth-child(2) .num    { color: var(--cyan-700); }
.features-grid .feature:nth-child(2) h3      { color: var(--cyan-900); }

.features-grid .feature:nth-child(3)         { border-top-color: var(--earth-500); }
.features-grid .feature:nth-child(3) .num    { color: var(--earth-600); }
.features-grid .feature:nth-child(3) h3      { color: var(--earth-800); }

/* ---------- Process ---------- */
.process { background: var(--cream-100); }
.process-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  border-top: 3px solid var(--forest-500);
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -18px; left: 20px;
  background: var(--forest-700); color: var(--cream-50);
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--serif); font-size: 0.85rem; letter-spacing: 0.06em;
}
.process-step h4 { color: var(--forest-900); margin: 10px 0 6px; font-size: 1.05rem; }
.process-step p { color: var(--ink-500); font-size: 0.9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, var(--forest-800), var(--forest-950));
  color: var(--cream-50);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  margin: 0 24px;
  max-width: var(--container);
  margin: 40px auto;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,151,88,0.35), transparent 65%);
}
.cta-band h2 { color: var(--cream-50); }
.cta-band p { color: rgba(250,247,239,0.8); margin: 12px 0 0; }
.cta-band .btn-primary { background: var(--cream-50); color: var(--forest-900); }
.cta-band .btn-primary:hover { background: white; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-950);
  color: rgba(250,247,239,0.72);
  padding: 72px 0 32px;
  font-size: 0.92rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-footer .brand { color: var(--cream-50); }
.site-footer .brand small { color: rgba(250,247,239,0.6); }
.footer-col h5 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-300); margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--cream-50); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: rgba(250,247,239,0.5); font-size: 0.85rem;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(62,151,88,0.5), transparent 60%),
    linear-gradient(180deg, var(--forest-900), var(--forest-800));
  color: var(--cream-50);
  padding: 96px 0 72px;
  position: relative; overflow: hidden;
}
.page-header .eyebrow { color: var(--forest-300); }
.page-header .eyebrow::before { background: var(--forest-400); }
.page-header h1 { color: var(--cream-50); margin-top: 14px; }
.page-header p { color: rgba(250,247,239,0.8); max-width: 640px; margin-top: 16px; font-size: 1.05rem; }
.page-header .crumbs { color: rgba(250,247,239,0.6); font-size: 0.85rem; margin-top: 22px; letter-spacing: 0.04em; }
.page-header .crumbs a { color: rgba(250,247,239,0.85); }
.page-header .crumbs span { margin: 0 8px; opacity: 0.5; }
.page-header .leaf {
  position: absolute; right: -60px; bottom: -60px;
  width: 340px; height: 340px; opacity: 0.14;
  color: var(--forest-300);
}

/* ---------- Service detail layout ---------- */
.service-detail {
  display: grid; grid-template-columns: 260px 1fr; gap: 56px;
  align-items: start;
}
.side-nav {
  position: sticky; top: 100px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.side-nav h5 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 12px; font-weight: 600; }
.side-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-700);
  font-size: 0.95rem; font-weight: 500;
}
.side-nav a:hover { background: var(--forest-50); color: var(--forest-800); }
.side-nav a.active { background: var(--forest-100); color: var(--forest-900); font-weight: 600; }
.side-nav a[href="/services-landscape"]:hover { background: var(--forest-50); color: var(--forest-800); }
.side-nav a[href="/services-logging"]:hover   { background: var(--earth-50);  color: var(--earth-800);  }
.side-nav a[href="/services-shredding"]:hover { background: var(--cyan-50);   color: var(--cyan-800);   }
.side-nav a[href="/services-landscape"].active { background: var(--forest-100); color: var(--forest-900); }
.side-nav a[href="/services-logging"].active   { background: var(--earth-100);  color: var(--earth-900);  }
.side-nav a[href="/services-shredding"].active { background: var(--cyan-100);   color: var(--cyan-900);   }

.prose h2 { font-size: 1.8rem; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 28px; color: var(--forest-800); }
.prose p { font-size: 1.02rem; }
.prose ul { padding-left: 20px; color: var(--ink-700); }
.prose ul li { margin-bottom: 6px; }
.prose .hero-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--forest-500), var(--forest-800));
  margin-bottom: 32px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.prose .hero-img svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 32px; }
.chip {
  background: var(--forest-50); color: var(--forest-800);
  border: 1px solid var(--forest-100);
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
}

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.spec {
  background: var(--cream-50); border: 1px solid var(--line);
  padding: 20px; border-radius: var(--radius-md);
}
.spec dt { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.spec dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--forest-900); }

/* ---------- Portfolio ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-row button {
  padding: 10px 18px; border-radius: 999px;
  background: white; border: 1px solid var(--line); color: var(--ink-700);
  font-weight: 500; font-size: 0.92rem;
}
.filter-row button:hover { border-color: var(--forest-500); color: var(--forest-800); }
.filter-row button.active { background: var(--forest-700); color: var(--cream-50); border-color: var(--forest-700); }
/* 필터 카테고리별 활성 색상 — 그 카테고리의 CI 색 */
.filter-row button[data-filter="landscape"]:hover { border-color: var(--forest-500); color: var(--forest-800); }
.filter-row button[data-filter="landscape"].active { background: var(--forest-700); border-color: var(--forest-700); color: var(--cream-50); }
.filter-row button[data-filter="logging"]:hover   { border-color: var(--earth-500);  color: var(--earth-800);  }
.filter-row button[data-filter="logging"].active   { background: var(--earth-600);  border-color: var(--earth-600);  color: var(--cream-50); }
.filter-row button[data-filter="shredding"]:hover { border-color: var(--cyan-500);   color: var(--cyan-800);   }
.filter-row button[data-filter="shredding"].active { background: var(--cyan-700);   border-color: var(--cyan-700);   color: var(--cream-50); }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.portfolio-item {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portfolio-item .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--forest-400), var(--forest-800));
  position: relative; overflow: hidden;
}
.portfolio-item .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.portfolio-item .thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.portfolio-item .summary { margin: 10px 0 0; font-size: 0.92rem; color: var(--ink-500); line-height: 1.55; }
.portfolio-link { display: block; color: inherit; }
.portfolio-item .more {
  display: inline-block; margin-top: 12px;
  color: var(--forest-700); font-weight: 600; font-size: 0.9rem;
  transition: gap .2s ease;
}
.portfolio-item[data-cat="logging"]   .more { color: var(--earth-700); }
.portfolio-item[data-cat="shredding"] .more { color: var(--cyan-800); }
.portfolio-item .meta { padding: 22px; }
.portfolio-item .tag {
  display: inline-block; margin-bottom: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.12em; font-weight: 700;
  background: var(--forest-50); color: var(--forest-800); border: 1px solid var(--forest-100);
}
.portfolio-item[data-cat="landscape"] .tag { background: var(--forest-50); color: var(--forest-800); border-color: var(--forest-100); }
.portfolio-item[data-cat="logging"]   .tag { background: var(--earth-50);  color: var(--earth-800);  border-color: var(--earth-100);  }
.portfolio-item[data-cat="shredding"] .tag { background: var(--cyan-50);   color: var(--cyan-800);   border-color: var(--cyan-100);   }
.portfolio-item h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.portfolio-item .place { font-size: 0.88rem; color: var(--ink-500); }

/* ---------- 홈 · 최근 시공사례 ---------- */
.home-works .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.works-loading {
  grid-column: 1 / -1; text-align: center;
  padding: 40px 20px; color: var(--ink-500);
}
.works-more { margin-top: 36px; }

@media (max-width: 1024px) {
  .home-works .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  /* 3번째 카드는 태블릿에서 홀로 남아 어색하다 — 감춘다 */
  .home-works .portfolio-item:nth-child(3) { display: none; }
}
@media (max-width: 720px) {
  .home-works .portfolio-grid { grid-template-columns: 1fr; }
  .home-works .portfolio-item:nth-child(3) { display: block; }
}

/* ---------- CTA 밴드의 전화 안내 ---------- */
.cta-phone {
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.cta-phone-label {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest-300);
}
.cta-phone-num {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 700;
  color: var(--cream-50); letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.cta-phone-num:hover { border-bottom-color: var(--forest-400); }
.cta-phone-num.is-pending { font-size: 1.1rem; color: rgba(250,247,239,0.55); }
.cta-phone-hours { font-size: 0.86rem; color: rgba(250,247,239,0.62); }

@media (max-width: 720px) {
  .cta-phone { gap: 8px; }
  .cta-phone-num { font-size: 1.45rem; }
}

/* ---------- 홈 · 도메인 의미 요약 띠 ---------- */
.naming-strip {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.naming-strip-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
.ns-label {
  display: block;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest-700); margin-bottom: 12px;
}
.ns-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem; color: var(--ink-400);
  line-height: 1.4; word-break: break-all;
}
.ns-url b {
  color: var(--forest-900); font-weight: 700;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--forest-500), var(--cyan-600), var(--earth-500)) 1;
  padding-bottom: 2px;
}

.ns-readings {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.ns-readings li { padding-left: 16px; border-left: 3px solid var(--forest-400); }
.ns-readings .ns-forest { border-left-color: var(--forest-500); }
.ns-readings .ns-cyan   { border-left-color: var(--cyan-600); }
.ns-readings .ns-earth  { border-left-color: var(--earth-500); }

.ns-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem; color: var(--ink-400); margin-bottom: 7px;
}
.ns-code b { font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.ns-cyan  .ns-code b { background: var(--cyan-100);  color: var(--cyan-800); }
.ns-earth .ns-code b { background: var(--earth-100); color: var(--earth-800); }

.ns-kr {
  display: block;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--forest-900); line-height: 1.25; margin-bottom: 8px;
}
.ns-cyan  .ns-kr { color: var(--cyan-900); }
.ns-earth .ns-kr { color: var(--earth-800); }
.ns-desc {
  display: block; font-size: 0.92rem; line-height: 1.65; color: var(--ink-500);
}

.ns-more {
  grid-column: 2;
  justify-self: start;
  margin-top: 26px;
  font-weight: 600; font-size: 0.94rem; color: var(--forest-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.ns-more:hover { color: var(--forest-900); }
.ns-more .arrow { transition: transform .2s ease; }
.ns-more:hover .arrow { transform: translateX(3px); }

@media (max-width: 1024px) {
  .naming-strip-inner { grid-template-columns: 1fr; gap: 32px; }
  .ns-more { grid-column: 1; }
}
@media (max-width: 720px) {
  .naming-strip { padding: 56px 0; }
  .ns-readings { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Service page ---------- */
.prose .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 본문 하단 안내 박스 — 기존에 인라인 스타일이던 것을 클래스로 뺐다
   (템플릿에서 페이지 톤에 따라 색이 바뀌어야 하므로) */
.service-cta {
  margin-top: 40px; padding: 28px;
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  border-radius: 16px;
}
.service-cta strong { color: var(--forest-900); font-size: 1.1rem; display: block; }
.service-cta p { margin: 8px 0 16px; }
body.tone-earth .service-cta { background: var(--earth-50); border-color: var(--earth-100); }
body.tone-earth .service-cta strong { color: var(--earth-800); }
body.tone-cyan  .service-cta { background: var(--cyan-50);  border-color: var(--cyan-100);  }
body.tone-cyan  .service-cta strong { color: var(--cyan-900); }

/* ---------- 보유 장비 ---------- */
.equip-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
}
.equip-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.equip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
body.tone-earth .equip-card:hover { border-color: var(--earth-300); }
body.tone-cyan  .equip-card:hover { border-color: var(--cyan-300); }
.equip-thumb { aspect-ratio: 4/3; background: var(--forest-800); position: relative; }
.equip-thumb img,
.equip-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.equip-meta { padding: 22px 24px 24px; }
.equip-meta h3 { font-size: 1.15rem; color: var(--forest-900); margin-bottom: 6px; }
body.tone-earth .equip-meta h3 { color: var(--earth-800); }
body.tone-cyan  .equip-meta h3 { color: var(--cyan-900); }
.equip-maker {
  font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.equip-spec {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 600; color: var(--forest-800);
}
body.tone-earth .equip-spec { color: var(--earth-800); }
body.tone-cyan  .equip-spec { color: var(--cyan-800); }
.equip-note {
  margin: 10px 0 0; font-size: 0.88rem; line-height: 1.65; color: var(--ink-500);
}

/* ---------- 보유 수목 카탈로그 ---------- */
.tree-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.tree-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tree-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--forest-300); }
.tree-thumb {
  aspect-ratio: 4/3; position: relative;
  background: linear-gradient(135deg, var(--forest-400), var(--forest-800));
}
.tree-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tree-thumb .noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,0.8); font-size: 0.85rem; letter-spacing: 0.06em;
}
.tree-meta { padding: 20px 22px 22px; }
.tree-meta h3 { font-size: 1.2rem; color: var(--forest-900); margin-bottom: 12px; }
.tree-facts { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.tree-facts > div { display: flex; gap: 10px; align-items: baseline; font-size: 0.9rem; }
.tree-facts dt {
  flex: 0 0 62px; color: var(--ink-500); font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.tree-facts dd { margin: 0; color: var(--forest-800); font-weight: 600; }
.tree-note {
  margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--ink-500); line-height: 1.6;
}

/* ---------- Portfolio detail ---------- */
.detail-wrap { max-width: 860px; margin: 0 auto; }
.detail-loading, .detail-empty { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.detail-empty .btn { margin-top: 18px; }

.detail-hero {
  margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--forest-100);
}
.detail-hero img { width: 100%; height: auto; display: block; }

.detail-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; margin: 0 0 32px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
}
.detail-facts > div { background: white; padding: 20px 22px; }
.detail-facts dt {
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 8px;
}
.detail-facts dd {
  margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--forest-900);
}
.detail-chip {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  background: var(--forest-50); color: var(--forest-800); border: 1px solid var(--forest-100);
}
.detail-chip.landscape { background: var(--forest-50); color: var(--forest-800); border-color: var(--forest-100); }
.detail-chip.logging   { background: var(--earth-50);  color: var(--earth-800);  border-color: var(--earth-100);  }
.detail-chip.shredding { background: var(--cyan-50);   color: var(--cyan-800);   border-color: var(--cyan-100);   }

.detail-desc {
  font-size: 1.05rem; line-height: 1.85; color: var(--ink-700);
  white-space: pre-wrap; margin-bottom: 40px;
  padding-left: 20px; border-left: 3px solid var(--forest-300);
}
body.tone-earth .detail-desc { border-left-color: var(--earth-300); }
body.tone-cyan  .detail-desc { border-left-color: var(--cyan-300); }

.detail-gallery h2 { font-size: 1.5rem; margin-bottom: 20px; }
.thumb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.detail-thumb {
  padding: 0; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--forest-100);
  display: block; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.detail-thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.detail-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.detail-thumb .thumb-cap {
  display: block; padding: 10px 14px; background: white;
  font-size: 0.86rem; color: var(--ink-500);
}

/* 이어보기 */
.neighbor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.neighbor-card {
  display: flex; gap: 16px; align-items: center;
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.neighbor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--forest-300); }
.neighbor-thumb {
  flex: 0 0 96px; height: 72px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--forest-400), var(--forest-800));
  position: relative;
}
.neighbor-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.neighbor-thumb .noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,0.75); font-size: 0.7rem;
}
.neighbor-meta .dir {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--forest-700); font-weight: 600;
}
.neighbor-meta h3 { font-size: 1.02rem; margin: 5px 0 0; line-height: 1.4; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 36, 23, 0.92);
  display: grid; grid-template-columns: 64px 1fr 64px;
  align-items: center; padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox-figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-height: 90vh;
}
.lightbox-figure img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-figure figcaption {
  color: rgba(250,247,239,0.85); font-size: 0.95rem; text-align: center;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--cream-50);
  font-size: 1.1rem; display: grid; place-items: center;
  transition: background .16s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); }
.lightbox-nav {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--cream-50);
  font-size: 2rem; line-height: 1; display: grid; place-items: center;
  justify-self: center;
  transition: background .16s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.24); }

@media (max-width: 720px) {
  .lightbox { grid-template-columns: 44px 1fr 44px; padding: 12px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .detail-desc { padding-left: 14px; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }

.faq-nav { position: sticky; top: 100px; }
.faq-nav h5 {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-500); margin: 0 0 12px; font-weight: 600;
}
.faq-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.faq-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--ink-700); font-size: 0.95rem; font-weight: 500;
}
.faq-nav a:hover { background: var(--forest-50); color: var(--forest-800); }
.faq-nav .cnt {
  font-size: 0.78rem; color: var(--ink-400);
  background: var(--cream-100); border-radius: 999px; padding: 2px 8px;
}
.faq-nav-cta {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.faq-nav-cta p { font-size: 0.9rem; color: var(--ink-500); margin: 0 0 12px; }
.faq-nav-cta .btn { width: 100%; justify-content: center; }

.faq-group { margin-bottom: 52px; scroll-margin-top: 100px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group > h2 {
  font-size: 1.4rem; padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 2px solid var(--forest-600);
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 4px; cursor: pointer;
  list-style: none;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--forest-800); }
.faq-item .q-mark {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--forest-100); color: var(--forest-800);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 0.85rem; font-weight: 700;
  margin-top: 1px;
}
.faq-item .q-text {
  flex: 1; font-size: 1.06rem; font-weight: 600;
  color: var(--forest-900); line-height: 1.55;
}
.faq-item .q-chev {
  flex: 0 0 auto; color: var(--ink-400); margin-top: 4px;
  transition: transform .22s ease;
}
.faq-item[open] .q-chev { transform: rotate(180deg); color: var(--forest-700); }
.faq-item[open] .q-mark { background: var(--forest-600); color: var(--cream-50); }

.faq-answer {
  padding: 0 4px 26px 40px;
  animation: faqOpen .22s ease;
}
.faq-answer p {
  font-size: 1rem; line-height: 1.85; color: var(--ink-700);
  margin: 0 0 14px; white-space: pre-line;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--forest-800); }

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-nav { position: static; }
  .faq-nav ul { flex-direction: row; flex-wrap: wrap; }
  .faq-nav a {
    background: white; border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 15px; font-size: 0.9rem;
  }
  .faq-answer { padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer { animation: none; }
}

/* ---------- 대표자 인사말 ---------- */
.greeting { background: var(--cream-100); }
.greeting-inner {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start;
}
.greeting-side { position: sticky; top: 100px; }
.greeting-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; background: var(--forest-800);
  box-shadow: var(--shadow-md);
}
.greeting-photo img,
.greeting-photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.greeting-sign {
  margin-top: 20px; padding-top: 18px;
  border-top: 2px solid var(--forest-600);
  display: flex; align-items: baseline; gap: 12px;
}
.greeting-sign .role {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--forest-700);
}
.greeting-sign .name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--forest-900);
}
.greeting-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 14px 0 26px;
  line-height: 1.35;
}
.greeting-body p {
  font-size: 1.05rem; line-height: 1.95; color: var(--ink-700);
  margin-bottom: 20px;
}
.greeting-body p:first-of-type { color: var(--forest-900); font-weight: 500; }
.greeting-body p:last-child { margin-bottom: 0; }

/* ---------- 업력 · 실적 ---------- */
.track-record { padding: 72px 0; }
.track-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.track-item { background: white; padding: 34px 28px; text-align: center; }
.track-item.track-years { background: var(--forest-900); }
.tr-value {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 700;
  color: var(--forest-900); line-height: 1;
}
.tr-value .unit { font-size: 1.15rem; margin-left: 3px; }
.track-years .tr-value { color: var(--cream-50); }
.tr-label {
  margin-top: 12px; font-size: 0.9rem; color: var(--ink-500);
  letter-spacing: 0.04em;
}
.track-years .tr-label { color: var(--forest-300); font-weight: 600; }
.tr-sub { margin-top: 6px; font-size: 0.78rem; color: rgba(250,247,239,0.5); }

@media (max-width: 900px) {
  .greeting-inner { grid-template-columns: 1fr; gap: 32px; }
  .greeting-side { position: static; max-width: 260px; }
  .greeting-body p { font-size: 1rem; line-height: 1.85; }
}
@media (max-width: 720px) {
  .track-record { padding: 56px 0; }
  .track-item { padding: 26px 20px; }
  .tr-value { font-size: 2rem; }
}

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro .visual {
  aspect-ratio: 4/5; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--forest-600), var(--forest-900));
  position: relative; box-shadow: var(--shadow-md);
}
.about-intro .visual svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.65; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--forest-200, var(--forest-300));
}
.timeline .item { position: relative; padding: 4px 0 28px 20px; }
.timeline .item::before {
  content: ""; position: absolute; left: -22px; top: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream-50); border: 3px solid var(--forest-600);
}
.timeline .year { font-family: var(--serif); font-size: 1.1rem; color: var(--forest-700); font-weight: 600; }
.timeline .item p { margin: 4px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 32px 32px;
  border-top: 4px solid var(--forest-500);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-card h3 { color: var(--forest-800); margin-bottom: 8px; font-family: var(--sans); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-card .val { font-family: var(--serif); font-size: 1.4rem; color: var(--forest-900); margin-bottom: 6px; }
.contact-card .sub { color: var(--ink-500); font-size: 0.92rem; }
/* CI 3색 의미 코드: 대표전화(Forest) · 긴급(Earth·경계) · 이메일(Cyan·소통) · 주소(Neutral) */
.contact-card:nth-of-type(1) { border-top-color: var(--forest-500); }
.contact-card:nth-of-type(1) h3 { color: var(--forest-800); }
.contact-card:nth-of-type(2) { border-top-color: var(--earth-500); }
.contact-card:nth-of-type(2) h3 { color: var(--earth-800); }
.contact-card:nth-of-type(3) { border-top-color: var(--cyan-600); }
.contact-card:nth-of-type(3) h3 { color: var(--cyan-800); }
.contact-card:nth-of-type(4) { border-top-color: var(--ink-300); }
.contact-card:nth-of-type(4) h3 { color: var(--ink-700); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form label { font-size: 0.88rem; color: var(--ink-700); font-weight: 600; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink-900);
  background: var(--cream-50);
  transition: border-color .15s ease, background .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--forest-600); background: white;
  box-shadow: 0 0 0 4px rgba(62,151,88,0.14);
}
body.tone-earth .form input:focus,
body.tone-earth .form select:focus,
body.tone-earth .form textarea:focus {
  border-color: var(--earth-600);
  box-shadow: 0 0 0 4px rgba(154,116,73,0.16);
}
body.tone-cyan .form input:focus,
body.tone-cyan .form select:focus,
body.tone-cyan .form textarea:focus {
  border-color: var(--cyan-700);
  box-shadow: 0 0 0 4px rgba(42,125,140,0.16);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 스팸 방지 허니팟 — 화면·스크린리더 모두에서 제외 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* 폼 접수 결과 메시지 */
.form-status {
  padding: 14px 18px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 500;
  border: 1px solid transparent;
}
.form-status.ok {
  background: var(--forest-50); color: var(--forest-800); border-color: var(--forest-100);
}
.form-status.err {
  background: #fdecec; color: #a01e1e; border-color: #f2c6c6;
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 80px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: left; padding: 40px 32px; }
}

/* 태블릿·중간 구간 (1024px 이하) — 메뉴 8개가 뭉개지므로 드로어로 전환 */
@media (max-width: 1024px) {
  .nav {
    display: none;
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 16px 20px;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    /* 하단 고정 액션바(약 76px)에 가리지 않게 그만큼 빼 둔다.
       dvh 를 쓰면 모바일 주소창이 접힐 때도 높이가 맞는다. */
    max-height: calc(100dvh - 76px - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* 드로어가 열리면 뒤 페이지는 스크롤되지 않게 */
  body:has(.nav.open) { overflow: hidden; }
  .nav.open { display: flex; }
  .nav a {
    width: 100%; padding: 14px 16px; border-radius: 10px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-of-type { border-bottom: none; }

  /* 드로어에서는 드롭다운을 접지 않고 펼쳐 둔다 —
     좁은 화면에서 한 번 더 눌러 열게 하면 동선만 길어진다.
     그룹이 3개라 항목이 많으므로 간격을 조이고 구분선으로 묶음을 보여준다. */
  .nav-group { width: 100%; }
  .nav-trigger {
    width: 100%; justify-content: flex-start;
    padding: 16px 16px 8px; border-radius: 0;
    font-size: 0.74rem; letter-spacing: 0.14em; font-weight: 700;
    color: var(--ink-400); pointer-events: none;
    text-transform: uppercase;
  }
  .nav-trigger:hover { background: none; }
  .nav-chev { display: none; }
  .nav-menu {
    position: static; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    background: none; border: none; box-shadow: none;
    padding: 0; min-width: 0; gap: 0;
    border-bottom: 1px solid var(--line);
  }
  /* 드로어 안 링크는 한 줄 높이로 통일 — 도트가 있든 없든 글자 시작점을 맞춘다 */
  .nav a,
  .nav-menu a {
    padding: 13px 16px 13px 34px;
    font-size: 1rem; border-bottom: none;
  }
  .nav > a { padding-left: 16px; }
  .nav-menu a { border-bottom: 1px solid rgba(15,36,23,0.05); }
  .nav-menu a:last-child { border-bottom: none; }
  /* 도트 위치를 글자 왼쪽에 고정 (데스크톱 규칙이 left:10px 라 어긋났다) */
  .nav-menu a[href^="/services-"],
  .nav-menu a[href^="/portfolio?cat="] { padding-left: 34px; }
  .nav-menu a[href^="/services-"]::before,
  .nav-menu a[href^="/portfolio?cat="]::before {
    left: 17px; width: 7px; height: 7px;
  }
  /* CTA 는 버튼 형태 유지하되 폭 100% */
  .nav .cta {
    margin: 14px 0 4px; padding: 0; border-bottom: none;
    position: sticky; bottom: 0;
    background: var(--cream-50);
    padding-top: 8px;
  }
  .nav .cta .btn { width: 100%; justify-content: center; padding: 15px 22px; }
  .hamburger { display: flex; }
  /* 햄버거 열림 상태 표시 */
  .hamburger[aria-expanded="true"] span { background: transparent; }
  .hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .hamburger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }
  .hamburger span::before, .hamburger span::after { transition: transform .2s ease, top .2s ease; }
}

@media (max-width: 720px) {
  section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-band { margin: 32px 16px; padding: 32px 24px; }
  .spec-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Floating CTA · 모바일 액션바
   데스크톱: 우하단 세로 필 / 모바일: 하단 고정 바
========================================================= */
.site-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.site-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600;
  color: var(--cream-50);
  background: var(--forest-700);
  box-shadow: 0 6px 20px rgba(15,36,23,0.24), 0 2px 6px rgba(15,36,23,0.14);
  transition: transform .16s ease, box-shadow .2s ease, background .18s ease;
  white-space: nowrap;
}
.site-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15,36,23,0.30), 0 3px 8px rgba(15,36,23,0.16);
}
.site-cta-btn svg { flex: 0 0 auto; }
/* 의미 코드: 전화=Earth(즉시·긴급) · 카톡=노랑(브랜드) · 견적=Forest(주 행동) */
.site-cta-tel   { background: var(--earth-600); }
.site-cta-tel:hover   { background: var(--earth-700); }
.site-cta-kakao { background: #fee500; color: #191600; }
.site-cta-kakao:hover { background: #ffd900; }
.site-cta-quote { background: var(--forest-700); }
.site-cta-quote:hover { background: var(--forest-800); }

/* 톤 페이지에서는 견적 버튼도 페이지 색 */
body.tone-earth .site-cta-quote { background: var(--earth-600); }
body.tone-earth .site-cta-quote:hover { background: var(--earth-700); }
body.tone-cyan  .site-cta-quote { background: var(--cyan-700); }
body.tone-cyan  .site-cta-quote:hover { background: var(--cyan-800); }

@media (max-width: 720px) {
  /* 모바일 — 하단 고정 액션바 (엄지 도달 범위) */
  .site-cta {
    right: 0; left: 0; bottom: 0;
    flex-direction: row; gap: 0;
    background: var(--cream-50);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(15,36,23,0.12);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .site-cta-btn {
    flex: 1; justify-content: center; gap: 7px;
    padding: 14px 8px; border-radius: 12px;
    font-size: 0.9rem; box-shadow: none;
    margin: 0 3px;
  }
  .site-cta-btn:hover { transform: none; box-shadow: none; }
  .site-cta-btn svg { width: 18px; height: 18px; }
  /* 액션바가 푸터를 가리지 않도록 여백 확보 */
  body.has-site-cta .site-footer { padding-bottom: 110px; }
}

/* 값이 아직 없는 설정 — 흐리게 표시.
   ink-400 은 크림 배경에서 대비 3.17 로 AA 미달이라 ink-500(5.43)을 쓴다.
   "준비중" 은 장식이 아니라 읽어야 할 내용이다. */
.is-pending { color: var(--ink-500); font-style: italic; }
a.is-pending { cursor: default; text-decoration: none; }

/* 지도 임베드 */
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 320px;
}
.map-embed iframe { width: 100%; min-height: 400px; border: 0; display: block; }
.map-embed.is-placeholder {
  aspect-ratio: 21/9;
  background: linear-gradient(180deg, var(--forest-100), var(--forest-50));
  display: grid; place-items: center;
  border: 1px dashed var(--forest-300);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero scene animation ---------- */
.hero-scene svg { width: 100%; height: 100%; display: block; }

/* 나무 흔들림 - 각기 다른 속도/위상으로 자연스럽게 */
@keyframes sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50%      { transform: rotate( 1.6deg); }
}
@keyframes sway-strong {
  0%, 100% { transform: rotate(-2.4deg); }
  50%      { transform: rotate( 2.4deg); }
}
@keyframes sway-soft {
  0%, 100% { transform: rotate(-1deg); }
  50%      { transform: rotate( 1deg); }
}

.hero-scene .sway   { animation: sway 5.5s ease-in-out infinite; transform-box: fill-box; }
.hero-scene .s-1    { animation: sway-strong 5.8s ease-in-out infinite; }
.hero-scene .s-2    { animation: sway 6.8s ease-in-out infinite;        animation-delay: -0.9s; }
.hero-scene .s-3    { animation: sway-strong 6.2s ease-in-out infinite; animation-delay: -1.5s; }
.hero-scene .s-a    { animation: sway-soft 6.5s ease-in-out infinite;   animation-delay: -0.3s; }
.hero-scene .s-b    { animation: sway 5.2s ease-in-out infinite;        animation-delay: -1.1s; }
.hero-scene .s-c    { animation: sway-soft 6.9s ease-in-out infinite;   animation-delay: -0.6s; }
.hero-scene .s-d    { animation: sway 5.6s ease-in-out infinite;        animation-delay: -2.2s; }
.hero-scene .s-e    { animation: sway-soft 6.1s ease-in-out infinite;   animation-delay: -1.7s; }

/* 떠다니는 잎사귀 */
@keyframes drift-1 {
  0%   { transform: translate(500px,  60px) rotate(0deg);  opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translate(-40px,  320px) rotate(360deg); opacity: 0; }
}
@keyframes drift-2 {
  0%   { transform: translate(500px, 180px) rotate(0deg);  opacity: 0; }
  15%  { opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { transform: translate(-40px,  420px) rotate(-320deg); opacity: 0; }
}
@keyframes drift-3 {
  0%   { transform: translate(500px,  20px) rotate(0deg);  opacity: 0; }
  12%  { opacity: 0.8; }
  88%  { opacity: 0.8; }
  100% { transform: translate(-40px,  260px) rotate(280deg); opacity: 0; }
}
@keyframes drift-4 {
  0%   { transform: translate(500px, 100px) rotate(0deg);  opacity: 0; }
  10%  { opacity: 0.75; }
  90%  { opacity: 0.75; }
  100% { transform: translate(-40px,  360px) rotate(-260deg); opacity: 0; }
}
@keyframes drift-5 {
  0%   { transform: translate(500px, 220px) rotate(0deg);  opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.8; }
  100% { transform: translate(-40px,  460px) rotate(240deg); opacity: 0; }
}

.hero-scene .leaf { opacity: 0; }
.hero-scene .leaf-1 { animation: drift-1 12s linear infinite; }
.hero-scene .leaf-2 { animation: drift-2 15s linear infinite; animation-delay: -3s; }
.hero-scene .leaf-3 { animation: drift-3 18s linear infinite; animation-delay: -6s; }
.hero-scene .leaf-4 { animation: drift-4 14s linear infinite; animation-delay: -9s; }
.hero-scene .leaf-5 { animation: drift-5 16s linear infinite; animation-delay: -12s; }

/* =========================================================
   CI 3색 통합 — 페이지 톤 · 프로세스 · CTA · Concept
========================================================= */

/* Process 4단계 border-top 리듬 */
.process-row .process-step:nth-child(1) { border-top-color: var(--forest-500); }
.process-row .process-step:nth-child(2) { border-top-color: var(--cyan-600);   }
.process-row .process-step:nth-child(3) { border-top-color: var(--earth-500);  }
.process-row .process-step:nth-child(4) { border-top-color: var(--forest-500); }
.process-row .process-step:nth-child(1)::before { background: var(--forest-700); }
.process-row .process-step:nth-child(2)::before { background: var(--cyan-700);   }
.process-row .process-step:nth-child(3)::before { background: var(--earth-600);  }
.process-row .process-step:nth-child(4)::before { background: var(--forest-700); }

/* CTA 밴드 — 3색 그라디언트로 심도 */
.cta-band {
  background: linear-gradient(135deg,
    var(--forest-800) 0%,
    var(--cyan-900) 55%,
    var(--forest-950) 100%);
}

/* Brand 페이지 concept-card 아이콘 — 生:Cyan · 和:Earth */
.concept-row .concept-card:nth-child(1) h3 .ico {
  background: var(--cyan-50); color: var(--cyan-700);
}
.concept-row .concept-card:nth-child(1) h3 { color: var(--cyan-900); }
.concept-row .concept-card:nth-child(2) h3 .ico {
  background: var(--earth-50); color: var(--earth-700);
}
.concept-row .concept-card:nth-child(2) h3 { color: var(--earth-800); }

/* ---- 페이지 톤 오버라이드 ---- */

/* Earth 톤 페이지 (벌채·벌목) */
body.tone-earth .page-header {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(154,116,73,0.55), transparent 60%),
    linear-gradient(180deg, var(--earth-800), #2a1e10);
}
body.tone-earth .page-header .eyebrow       { color: var(--earth-300); }
body.tone-earth .page-header .eyebrow::before { background: var(--earth-500); }
body.tone-earth .page-header .leaf          { color: var(--earth-300); }
body.tone-earth .chip {
  background: var(--earth-50); color: var(--earth-800); border-color: var(--earth-100);
}
body.tone-earth .side-nav a.active {
  background: var(--earth-50); color: var(--earth-800);
}
body.tone-earth .prose h2 { color: var(--earth-800); }
body.tone-earth .prose h3 { color: var(--earth-700); }
body.tone-earth .side-nav a { color: var(--ink-700); }
body.tone-earth .prose > div[style*="var(--forest-50)"],
body.tone-earth .prose > div[style*="forest-50"] {
  background: var(--earth-50) !important;
  border-color: var(--earth-100) !important;
}
body.tone-earth .side-nav h5 { color: var(--earth-700); }

/* Cyan 톤 페이지 (파쇄) */
body.tone-cyan .page-header {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(42,125,140,0.55), transparent 60%),
    linear-gradient(180deg, var(--cyan-800), var(--cyan-900));
}
body.tone-cyan .page-header .eyebrow       { color: var(--cyan-300); }
body.tone-cyan .page-header .eyebrow::before { background: var(--cyan-500); }
body.tone-cyan .page-header .leaf          { color: var(--cyan-300); }
body.tone-cyan .chip {
  background: var(--cyan-50); color: var(--cyan-800); border-color: var(--cyan-100);
}
body.tone-cyan .side-nav a.active {
  background: var(--cyan-50); color: var(--cyan-800);
}
body.tone-cyan .prose h2 { color: var(--cyan-900); }
body.tone-cyan .prose h3 { color: var(--cyan-800); }
body.tone-cyan .prose > div[style*="var(--forest-50)"],
body.tone-cyan .prose > div[style*="forest-50"] {
  background: var(--cyan-50) !important;
  border-color: var(--cyan-100) !important;
}
body.tone-cyan .side-nav h5 { color: var(--cyan-800); }

/* 물결 파동 */
@keyframes wave-shift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}
.hero-scene .wave-1 { animation: wave-shift 6s linear infinite; }
.hero-scene .wave-2 { animation: wave-shift 8s linear infinite reverse; }

/* 수동 정지 (JS 가 붙이는 버튼) */
.hero-scene.motion-paused .sway,
.hero-scene.motion-paused .leaf,
.hero-scene.motion-paused .wave-1,
.hero-scene.motion-paused .wave-2,
.hero-scene.motion-paused animate { animation-play-state: paused; }
.hero-scene.motion-paused .leaf { opacity: 0; }

.motion-toggle {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  background: rgba(15, 36, 23, 0.55);
  color: var(--cream-50);
  font-size: 0.78rem; font-weight: 600;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  opacity: 0.45;
  transition: opacity .18s ease, background .18s ease;
}
.motion-toggle:hover,
.motion-toggle:focus-visible { opacity: 1; background: rgba(15, 36, 23, 0.75); }
@media (max-width: 720px) {
  .motion-toggle { right: 10px; top: 10px; padding: 7px 11px; font-size: 0.72rem; }
}

/* 접근성: 모션 감소 선호시 애니메이션 제거 */
@media (prefers-reduced-motion: reduce) {
  .hero-scene .sway,
  .hero-scene .leaf,
  .hero-scene .wave-1,
  .hero-scene .wave-2 { animation: none !important; }
  .hero-scene .leaf { opacity: 0; }
}
