/* ───────── Tokens (나뭇잎 BI) ───────── */
:root {
  --ink: #232326;
  --ink-2: #636366;
  --mist: #c8c8ce;
  --leaf: #74ab66;
  --forest: #3b7c2a;
  --sprout: #b5d7ac;
  --paper: #f3f4ef;
  --white: #ffffff;

  --pad: clamp(20px, 5vw, 80px);
  --max: 1440px;
  --header-h: 72px;

  --f-kr: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-en: "Outfit", var(--f-kr);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-kr);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* ───────── Shared ───────── */
.eyebrow {
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sprout);
}
.grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 24px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.label {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: baseline;
  align-self: start;
}
.label-num { font-family: var(--f-en); font-weight: 400; color: var(--ink-2); }
.section-title {
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.035em;
}
.lead {
  max-width: 40em;
  margin-top: 28px;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--ink-2);
  line-height: 1.75;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── Header ───────── */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  color: var(--white);
  transition: background .4s, color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(243, 244, 239, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  color: var(--ink);
  border-bottom-color: rgba(35, 35, 38, .08);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-symbol { width: 34px; height: 34px; }
.brand-wordmark { width: 64px; height: 24px; color: var(--leaf); }
.nav { display: flex; gap: 40px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { border: 1px solid currentColor; border-radius: 999px; padding: 8px 20px !important; transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--leaf); border-color: var(--leaf); color: var(--white); }
.menu-btn { display: none; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-field {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 12), 1fr);
  grid-auto-rows: var(--cell, 120px);
  align-content: center;
  opacity: .9;
}
.hero-field::after { /* 왼쪽 아래 텍스트 가독성 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, var(--ink) 25%, rgba(35,35,38,.55) 55%, rgba(35,35,38,0) 85%);
}
.tile { position: relative; display: grid; place-items: center; }
.tile svg { width: 58%; height: 58%; color: rgba(255,255,255,.07); --leaf-fill: rgba(255,255,255,.07); transition: color 2.4s var(--ease); }
.tile.is-grown svg { --leaf-fill: var(--leaf); color: rgba(255,255,255,.07); }
.tile.is-grown.is-deep svg { --leaf-fill: var(--forest); }
.tile.is-grown.is-light svg { --leaf-fill: var(--sprout); }
.tile svg path { transition: fill 2.4s var(--ease); }

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(96px, 14vh, 160px);
}
.hero-title {
  margin-top: 28px;
  font-size: clamp(44px, 8.2vw, 132px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.hero-title span { display: block; overflow: hidden; }
.hero-title span:last-child { color: var(--leaf); }
.hero-sub { margin-top: 36px; max-width: 34em; font-size: clamp(16px, 1.3vw, 20px); color: rgba(255,255,255,.72); line-height: 1.7; }
.scroll-cue {
  position: absolute; z-index: 1; right: var(--pad); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-en); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.scroll-cue i { width: 1px; height: 56px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--white); animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* intro motion */
.hero .eyebrow, .hero-title span, .hero-sub { animation: rise 1.2s var(--ease) both; }
.hero-title span:nth-child(1) { animation-delay: .15s; }
.hero-title span:nth-child(2) { animation-delay: .28s; }
.hero-title span:nth-child(3) { animation-delay: .41s; }
.hero-sub { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ───────── About ───────── */
.about { padding: clamp(100px, 16vw, 220px) 0 clamp(80px, 10vw, 160px); }
.statement {
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.04em;
}
.identity {
  max-width: var(--max);
  margin: clamp(80px, 10vw, 140px) auto 0;
  padding: 0 var(--pad);
}
.identity-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 24px var(--pad);
  padding: 32px 0;
  border-top: 1px solid rgba(35,35,38,.18);
}
.identity-row:last-child { border-bottom: 1px solid rgba(35,35,38,.18); }
.identity dt { font-size: 14px; font-weight: 600; }
.identity dt span { display: block; font-family: var(--f-en); font-weight: 400; font-size: 13px; color: var(--forest); letter-spacing: .08em; margin-bottom: 2px; }
.identity dd { font-size: clamp(19px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.5; max-width: 30em; }

/* ───────── Business ───────── */
.business { padding-top: clamp(40px, 6vw, 80px); }
.business-head { padding-bottom: clamp(60px, 8vw, 120px); }
.stack { position: relative; }
.panel {
  position: sticky; top: 0;
  min-height: 100svh;
  display: flex; align-items: center;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}
.panel + .panel { box-shadow: 0 -24px 60px rgba(0,0,0,.12); }
.panel--paper { background: var(--white); color: var(--ink); }
.panel--leaf  { background: var(--forest); color: var(--white); }
.panel--ink   { background: var(--ink); color: var(--white); }

.panel-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: calc(var(--header-h) + 40px) var(--pad) 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.panel-kicker { font-family: var(--f-en); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.panel-kicker b { font-weight: 500; margin-right: 10px; }
.panel-title { margin-top: 18px; font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.panel-desc { margin-top: 24px; max-width: 32em; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; opacity: .78; }
.items { margin-top: 44px; }
.items li {
  display: grid; grid-template-columns: minmax(200px, .9fr) 1.4fr; gap: 20px;
  padding: 20px 0;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 22%, transparent);
  font-size: 15px;
}
.items li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.items strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.items em { font-family: var(--f-en); font-style: normal; font-weight: 600; }
.items span { opacity: .7; line-height: 1.6; }

.panel-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  display: grid; place-items: center;
  overflow: hidden;
}
.panel-visual svg { width: 46%; height: 46%; }
.panel-visual figcaption {
  position: absolute; left: 28px; bottom: 22px;
  font-family: var(--f-en); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .6;
}
.visual--one   { background: var(--paper); color: var(--ink); }
.visual--two   { background: var(--leaf); color: var(--white); }
.visual--three { background: #2e2e32; color: var(--leaf); --leaf-fill: var(--leaf); }

/* ───────── Method ───────── */
.method { position: relative; z-index: 1; background: var(--paper); padding: clamp(100px, 14vw, 200px) 0; }
.steps {
  max-width: var(--max);
  margin: clamp(64px, 8vw, 110px) auto 0;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(6, 1fr);
  counter-reset: s;
}
.steps li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--ink); }
.steps li::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%; background: var(--ink);
}
.steps li:last-child::before { background: var(--leaf); box-shadow: 0 0 0 4px rgba(116,171,102,.25); }
.steps b { font-family: var(--f-en); font-weight: 400; font-size: 13px; color: var(--ink-2); }
.steps h4 { margin-top: 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.steps p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.steps li:nth-child(2) { transition-delay: .06s; } .steps li:nth-child(3) { transition-delay: .12s; }
.steps li:nth-child(4) { transition-delay: .18s; } .steps li:nth-child(5) { transition-delay: .24s; }
.steps li:nth-child(6) { transition-delay: .3s; }

/* ───────── Principles ───────── */
.principles { background: var(--white); padding: clamp(100px, 14vw, 200px) 0; }
.versus { max-width: var(--max); margin: clamp(56px, 7vw, 100px) auto 0; padding: 0 var(--pad); }
.versus-head, .versus-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.versus-head { padding-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.versus-head span:last-child { color: var(--forest); }
.versus-row { padding: 26px 0; border-top: 1px solid rgba(35,35,38,.14); align-items: baseline; }
.versus-row:last-child { border-bottom: 1px solid rgba(35,35,38,.14); }
.versus-row s {
  font-size: clamp(17px, 1.6vw, 24px); color: #a0a0a6; letter-spacing: -.02em;
  text-decoration-thickness: 1px; text-decoration-color: rgba(35,35,38,.35);
}
.versus-row p { font-size: clamp(19px, 1.9vw, 28px); font-weight: 700; letter-spacing: -.03em; }

/* ───────── Contact ───────── */
.contact { background: var(--leaf); color: var(--ink); }
.contact-inner { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 14vw, 200px) var(--pad); }
.contact .eyebrow { color: var(--ink); opacity: .7; }
.contact-title { margin-top: 24px; font-size: clamp(36px, 6vw, 96px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; }
.contact .lead { color: rgba(35,35,38,.78); }
.contact-mail {
  display: inline-flex; align-items: center; gap: 20px;
  margin-top: 56px; padding-bottom: 8px;
  font-family: var(--f-en); font-size: clamp(24px, 3vw, 44px); font-weight: 500;
  border-bottom: 2px solid var(--ink);
}
.contact-mail i { font-style: normal; transition: transform .4s var(--ease); }
.contact-mail:hover i { transform: translateX(10px); }

/* ───────── Footer ───────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px var(--pad) 40px; }
.footer-top, .footer-bottom { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--footer { color: var(--white); }
.footer-nav { display: flex; gap: 32px; font-size: 14px; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .panel-inner { grid-template-columns: 1fr; }
  /* 태블릿·모바일: 그림을 패널 위쪽 띠로 */
  .panel-visual { order: -1; aspect-ratio: auto; height: 180px; border-radius: 18px; }
  .panel-visual svg { width: auto; height: 62%; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .grid, .identity-row { grid-template-columns: 1fr; }
  .br-md { display: none; }
  .brand-symbol { width: 28px; height: 28px; }
  .brand-wordmark { width: 54px; height: 20px; }

  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 40px; height: 40px; margin-right: -8px; padding: 8px;
    background: none; border: 0; color: inherit; cursor: pointer; z-index: 2;
  }
  .menu-btn span { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ink); color: var(--white); font-size: 26px; font-weight: 700;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-cta { font-size: 18px; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .site-header { color: var(--white); background: transparent; border-color: transparent; backdrop-filter: none; }
  .menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .scroll-cue { display: none; }
  .panel { min-height: auto; border-radius: 20px 20px 0 0; }  /* sticky 유지: top 값은 main.js가 카드 높이에 맞춰 계산 */
  .items li { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 24px 0 28px 28px; border-top: 0; border-left: 1px solid var(--ink); }
  .steps li::before { top: 30px; left: -5px; }
  .versus-head { display: none; }
  .versus-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ───────── Mobile refinements ───────── */
@media (max-width: 760px) {
  /* 헤더: 메뉴 열어도 로고 유지 */
  .brand { position: relative; z-index: 2; }

  /* 히어로 */
  .hero { min-height: 88svh; }
  .hero-field {
    -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--header-h) + 8px), #000 calc(var(--header-h) + 72px));
            mask-image: linear-gradient(to bottom, transparent calc(var(--header-h) + 8px), #000 calc(var(--header-h) + 72px));
  }
  .hero-inner { padding-bottom: 64px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .16em; line-height: 1.8; }
  .eb-sep { display: none; }
  .eb-sub { display: block; }
  .hero-title { margin-top: 18px; }
  .hero-sub { margin-top: 24px; }

  /* 여백 압축 */
  .grid { gap: 20px; }
  .lead { margin-top: 18px; }
  .about { padding: 80px 0 64px; }
  .identity { margin-top: 56px; }
  .identity-row { gap: 6px; padding: 22px 0; }

  /* 사업 패널 */
  .business { padding-top: 16px; }
  .business-head { padding-bottom: 48px; }
  /* 다음 카드가 둥근 모서리만큼 앞 카드 위로 겹쳐 올라가, 모서리 뒤로 배경이 비치지 않게 */
  .panel + .panel { box-shadow: 0 -12px 32px rgba(0,0,0,.14); }
  .panel-inner { padding: 20px var(--pad) 48px; gap: 28px; }
  .panel-visual { height: 132px; border-radius: 14px; }
  .panel-visual figcaption { left: 18px; bottom: 14px; font-size: 11px; }
  .panel-title { margin-top: 12px; }
  .panel-desc { margin-top: 16px; }
  .items { margin-top: 28px; }
  .items li { padding: 16px 0; }

  /* 6단계: 번호와 제목을 한 줄로 */
  .method { padding: 80px 0; }
  .steps { margin-top: 44px; }
  .steps li {
    display: grid; grid-template-columns: 32px 1fr; align-items: baseline;
    padding: 14px 0 20px 22px;
  }
  .steps li::before { top: 22px; }
  .steps b { grid-column: 1; }
  .steps h4 { grid-column: 2; margin-top: 0; font-size: 20px; }
  .steps p { grid-column: 2; margin-top: 6px; font-size: 14.5px; }

  /* 원칙 */
  .principles { padding: 80px 0; }
  .versus { margin-top: 40px; }
  .versus-row { padding: 20px 0; }
  .versus-row s { color: #7d7d83; font-size: 15px; }
  .versus-row s::before { content: "✕"; position: absolute; left: 0; display: inline-block; text-decoration: none; color: #b0b0b6; }
  .versus-row p::before { content: "→"; position: absolute; left: 0; color: var(--forest); font-weight: 500; }
  .versus-row s, .versus-row p { position: relative; padding-left: 1.4em; }
  .versus-row p { font-size: 18px; }

  /* 문의·푸터 */
  .contact-inner { padding: 80px var(--pad); }
  .contact-mail { margin-top: 40px; }
  .site-footer { padding-top: 48px; }
  .footer-nav { gap: 0; margin-left: -12px; font-size: 15px; }
  .footer-nav a { padding: 10px 12px; }
  .footer-bottom { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
