/* 먹고놀랩 — 기본 와꾸
   토큰 출발점: gdweb 프리셋 concept-재미있는 (헤드라인 78/1.19 · 본문 16/1.5 · 버튼 48h r8 · 카드 r16 · 컨테이너 1280)
   브랜드색: 회사소개서 오렌지 */
:root {
  --font-sans: 'Pretendard Variable', Pretendard, sans-serif;
  --font-en: 'Poppins', var(--font-sans);
  --bg: #ffffff; --fg: #111111; --mute: #555555; --line: #e8e4e0;
  --o: #ff7a45; --o-deep: #e85d26; --cream: #fff4ec; --ink: #2b2b2b;
  --hero-size: 78px; --hero-lh: 1.19;
  --h2-size: 48px; --h2-lh: 1.25;
  --body-size: 16px; --body-lh: 1.5;
  --btn-h: 48px; --btn-px: 24px; --btn-radius: 8px;
  --card-radius: 16px;
  --section-py: 120px; --container: 1280px; --pad-x: 40px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (max-width: 760px) {
  :root { --hero-size: 44px; --h2-size: 30px; --h2-lh: 1.3; --body-size: 15px; --btn-h: 44px; --btn-px: 18px; --section-py: 72px; --pad-x: 20px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--body-size)/var(--body-lh) var(--font-sans); letter-spacing: -0.007em; word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: 100%; max-width: calc(var(--container) + var(--pad-x) * 2); margin: 0 auto; padding: 0 var(--pad-x); }
.sec { padding: var(--section-py) 0; }
.o { color: var(--o); }
.eyebrow { margin: 0 0 16px; font: 600 14px/1 var(--font-en); letter-spacing: 0.12em; color: var(--o); }
.h2 { margin: 0; font-size: var(--h2-size); line-height: var(--h2-lh); font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 20px; line-height: 1.6; margin: 0 0 40px; }
.ph { color: #b04a1c; background: #fff0e6; outline: 1px dashed #f0a477; } /* 자료 대기 자리 표시 — 오픈 전 제거 */

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h); padding: 0 var(--btn-px); border-radius: var(--btn-radius); background: var(--o); color: #fff; font-size: 16px; font-weight: 500; transition: background-color .2s ease, transform .16s var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-inv { background: #fff; color: var(--o-deep); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--o-deep); }
  .btn-ghost:hover { background: var(--fg); color: #fff; }
  .btn-inv:hover { background: var(--ink); color: #fff; }
}

/* 헤더 */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; height: 72px; padding: 0 var(--pad-x); transition: background-color .25s ease, box-shadow .25s ease, transform .3s var(--ease-out); }
.hd.is-solid { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.hd.is-hide { transform: translateY(-100%); }
.hd-logo { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.hd-logo b { font-size: 22px; font-weight: 800; color: var(--o); letter-spacing: -0.03em; }
.hd-logo span { font: 600 13px/1 var(--font-en); color: var(--mute); }
.hd-nav { display: flex; gap: 32px; font-size: 16px; font-weight: 500; }
.hd-nav a { position: relative; padding: 6px 0; }
.hd-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--o); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.hd-nav a.is-cur::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .hd-nav a:hover::after { transform: scaleX(1); } }
.hd-burger { display: none; width: 40px; height: 40px; position: relative; }
.hd-burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--fg); transition: transform .25s var(--ease-out); }
.hd-burger i:first-child { top: 15px; } .hd-burger i:last-child { top: 23px; }
@media (max-width: 960px) {
  .hd { gap: 12px; height: 60px; }
  .hd-burger { display: block; }
  .hd-nav { position: fixed; inset: 60px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--pad-x) 24px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease-out); }
  .hd-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hd.is-open .hd-nav { opacity: 1; transform: none; pointer-events: auto; }
  .hd.is-open { background: #fff; }
  .hd.is-open .hd-burger i:first-child { transform: translateY(4px) rotate(45deg); }
  .hd.is-open .hd-burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* 히어로 */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--cream); }
.hero-in { position: relative; z-index: 2; padding-top: 72px; }
.hero-eyebrow { margin: 0 0 24px; font-size: 18px; font-weight: 600; color: var(--o-deep); }
.hero-title { margin: 0 0 28px; font-size: var(--hero-size); line-height: var(--hero-lh); font-weight: 700; letter-spacing: -0.03em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero-title .w > span { display: inline-block; }
.hero-sub { margin: 0 0 40px; font-size: 20px; line-height: 1.6; color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.f { position: absolute; margin: 0; border-radius: var(--card-radius); overflow: hidden; background: #fff; box-shadow: 0 20px 40px -20px rgba(120,50,10,.35); }
.f img { width: 100%; height: 100%; object-fit: cover; }
.f1 { width: 260px; height: 300px; right: 30%; top: 10%; rotate: -6deg; }
.f2 { width: 230px; height: 230px; right: 6%;  top: 14%; rotate: 5deg; }
.f3 { width: 280px; height: 260px; right: 20%; top: 50%; rotate: 3deg; }
.f4 { width: 190px; height: 210px; right: 2%;  top: 58%; rotate: -4deg; }
.f5 { width: 170px; height: 190px; right: 40%; top: 66%; rotate: 8deg; }
@media (max-width: 1100px) { .f1, .f5 { display: none; } .f2 { right: -40px; } .f3 { right: -60px; top: 62%; } .f4 { display: none; } }
@media (max-width: 760px) { .hero { align-items: flex-end; padding-bottom: 96px; } .f2 { width: 150px; height: 150px; top: 84px; right: -30px; } .f3 { width: 170px; height: 160px; top: 200px; right: 40%; } .hero-sub { font-size: 17px; } }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 28px; height: 44px; margin-left: -14px; border: 2px solid var(--fg); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fg); animation: scrollDot 1.6s var(--ease-out) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* 마퀴 */
.marquee { overflow: hidden; background: var(--o); color: #fff; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { padding: 0 28px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.marquee li::after { content: "✦"; margin-left: 56px; font-size: 14px; vertical-align: middle; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 회사소개 */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.about-head { position: sticky; top: 120px; align-self: start; }
.about-illu { width: 320px; margin-top: 48px; }
.about-steps { list-style: none; margin: 0 0 56px; padding: 0; }
.about-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.about-steps b { font: 700 28px/1 var(--font-en); color: var(--o); }
.about-steps p { margin: 0; font-size: 18px; }
.about-steps em { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--cream); color: var(--o-deep); font-style: normal; font-size: 14px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.stats div { padding: 28px 24px; border-radius: var(--card-radius); background: var(--cream); }
.stats dt { font-size: 15px; color: var(--mute); margin-bottom: 8px; }
.stats dd { margin: 0; font: 700 44px/1 var(--font-en); color: var(--o-deep); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-head { position: static; } .about-illu { width: 220px; margin-top: 24px; } .stats { grid-template-columns: 1fr 1fr; } .stats dd { font-size: 34px; } .lead { font-size: 18px; } }

/* 사업분야 — 가로 스크롤 */
.what { background: var(--ink); color: #fff; overflow: hidden; }
.what-pin { display: flex; align-items: center; gap: 64px; min-height: 100vh; padding: var(--section-py) 0 var(--section-py) max(var(--pad-x), calc((100vw - var(--container)) / 2)); }
.what-intro { flex: 0 0 360px; }
.what-hint { margin: 32px 0 0; font: 600 16px/1 var(--font-en); color: var(--o); }
.what-track { display: flex; gap: 24px; padding-right: var(--pad-x); }
.pillar { flex: 0 0 440px; min-height: 520px; padding: 40px; border-radius: var(--card-radius); display: flex; flex-direction: column; }
.p-play { background: var(--o); } .p-eat { background: #f2c14e; color: var(--fg); } .p-creative { background: #5aa7a1; } .p-community { background: #fff; color: var(--fg); }
.pillar .pillar-en { margin: 0 0 auto; font: 700 56px/1 var(--font-en); letter-spacing: -0.03em; opacity: .9; }
.pillar h3 { margin: 40px 0 16px; font-size: 32px; line-height: 1.25; }
.pillar h3 small { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; opacity: .8; }
.pillar p { margin: 0 0 24px; font-size: 16px; }
.pillar ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pillar li { padding: 6px 12px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 900px) {
  .what-pin { display: block; min-height: 0; padding: var(--section-py) var(--pad-x); }
  .what-intro { margin-bottom: 40px; } .what-hint { display: none; }
  .what-track { flex-direction: column; padding: 0; }
  .pillar { flex: none; min-height: 0; padding: 28px; } .pillar .pillar-en { font-size: 44px; margin-bottom: 0; } .pillar h3 { margin-top: 24px; font-size: 26px; }
}

/* 컨설팅 */
.consult-list { list-style: none; margin: 56px 0 0; padding: 0; }
.consult-list li { display: grid; grid-template-columns: 220px 1fr 100px; gap: 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); transition: background-color .2s ease; }
.consult-list li:last-child { border-bottom: 1px solid var(--line); }
.c-who { font-weight: 700; font-size: 18px; color: var(--o-deep); }
.c-what { font-size: 20px; font-weight: 500; }
.c-what small { display: block; margin-top: 4px; font-size: 15px; color: var(--mute); font-weight: 400; }
.c-when { font: 600 16px/1 var(--font-en); color: var(--mute); text-align: right; }
@media (hover: hover) and (pointer: fine) { .consult-list li:hover { background: var(--cream); } }
@media (max-width: 760px) { .consult-list li { grid-template-columns: 1fr auto; gap: 6px 12px; } .c-what { grid-column: 1 / -1; grid-row: 2; font-size: 17px; } }

/* 주요실적 */
.works { background: var(--cream); }
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.chip.is-on { background: var(--fg); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { text-align: left; border-radius: var(--card-radius); overflow: hidden; background: #fff; }
.card.is-out { display: none; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #f3eee9; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card-txt { padding: 18px 20px 22px; }
.card-tag { font-size: 13px; font-weight: 600; color: var(--o-deep); }
.card-ttl { margin: 6px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-who { font-size: 14px; color: var(--mute); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-img img { transform: scale(1.05); } }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 560px) { .grid { gap: 12px; } .card-txt { padding: 12px 12px 14px; } .card-ttl { font-size: 15px; } .card-who, .card-tag { font-size: 12px; } }

/* 대표 */
.ceo-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.ceo-photo { aspect-ratio: 4 / 5; border-radius: var(--card-radius); background: #f3eee9; display: grid; place-items: center; color: var(--mute); outline: 1px dashed #d8cfc6; }
.ceo-career { margin: 0; padding-left: 18px; line-height: 2; }
@media (max-width: 900px) { .ceo-grid { grid-template-columns: 1fr; gap: 32px; } .ceo-photo { max-width: 360px; } }

/* 다운로드 */
.dl { background: var(--o); color: #fff; padding: 96px 0; overflow: hidden; }
.dl-in { display: flex; align-items: center; gap: 64px; }
.dl-illu { width: 420px; flex: 0 0 auto; border-radius: var(--card-radius); }
.dl .h2 { margin-bottom: 32px; }
@media (max-width: 900px) { .dl-in { flex-direction: column-reverse; align-items: flex-start; gap: 40px; } .dl-illu { width: 100%; max-width: 420px; } }

/* 문의 */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.contact-sub { margin-top: 20px; color: var(--mute); }
.contact-cta { display: grid; gap: 16px; align-content: start; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; border: 1px solid #e6e0da; border-radius: 12px; transition: border-color .2s ease; }
.contact-card span { font-size: 14px; color: var(--mute); }
.contact-card b { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contact-card:hover { border-color: var(--o); } }
.contact-cta .btn { justify-self: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .contact-card { padding: 20px; } .contact-card b { font-size: 17px; } }

/* 푸터 */
.ft { background: var(--ink); color: #cfcac5; padding: 56px 0; font-size: 14px; }
.ft-in { display: grid; gap: 12px; }
.ft-logo { margin: 0; font: 600 14px/1 var(--font-en); } .ft-logo b { font-family: var(--font-sans); font-size: 20px; color: var(--o); margin-right: 6px; }
.ft address { font-style: normal; line-height: 1.8; }
.ft-copy { margin: 0; color: #8d8782; font-size: 13px; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.ft-credit { margin: 0; color: #8d8782; font: 500 12px/1 var(--font-en); letter-spacing: .06em; }
.ft-credit a { font-family: var(--font-sans); letter-spacing: 0; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .ft-credit a:hover { color: var(--o); } }

/* 라이트박스 */
.lb { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--card-radius); overflow: auto; }
.lb::backdrop { background: rgba(20,14,10,.7); }
.lb[open] { animation: lbIn .3s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } }
.lb img { width: 100%; }
.lb-cap { padding: 20px 24px; } .lb-cap b { display: block; font-size: 18px; } .lb-cap span { color: var(--mute); font-size: 15px; }
.lb-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 24px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 120s; }
  .hero-scroll span { animation: none; }
  .lb[open] { animation: none; }
}
