/* ───────── Bring the Bacon · Modern ───────── */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #555552;
  --ink-3: #8f8e89;
  --line: #e7e5df;
  --accent: #c4512c;            /* 베이컨 */

  --sans: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  --latin: "Fraunces", Georgia, serif;
  --logo: "Bagel Fat One", "Pretendard Variable", sans-serif;

  --wrap: min(1200px, 100% - 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  letter-spacing: -0.012em; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; margin: 0; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(196, 81, 44, .18); }

/* ───── 로고: 베이글 팻원, 검은 굵은 글씨 ───── */
.logo {
  display: inline-block;
  font-family: var(--logo); font-weight: 400; color: var(--ink);
  font-size: 26px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
  -webkit-text-stroke: .02em currentColor;   /* 조금 더 볼드하게 */
}

/* ───── NAV ───── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(24px, calc((100% - 1200px) / 2));
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(250, 250, 247, .85);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: #fff !important; background: var(--ink); padding: 8px 18px; border-radius: 999px; transition: background .2s !important; }
.nav__cta:hover { background: var(--accent); }

/* ───── HERO ───── */
.hero {
  width: var(--wrap); margin: 0 auto;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); column-gap: 48px;
  align-items: center; gap: 32px;
  padding: 110px 0 64px;
}
.eyebrow {
  font-family: var(--latin); font-style: italic; font-size: 20px; color: var(--accent);
  margin-bottom: 20px;
}
.hero__title { font-size: clamp(36px, 4vw, 60px); line-height: 1.16; letter-spacing: -0.045em; }
.hero__title .line { display: block; white-space: nowrap; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.hero__cta {
  margin-top: 36px; display: inline-flex; gap: 10px; align-items: center;
  font-weight: 600; text-decoration: none; padding-bottom: 4px; border-bottom: 1.5px solid var(--ink);
}
.hero__cta i { font-style: normal; transition: transform .25s; }
.hero__cta:hover i { transform: translateX(4px); }

.hero__art { position: relative; margin: 0 -2vw 0 0; container-type: inline-size; }
.hero__art img {
  width: 100%; height: auto; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 78%, transparent 100%);
}
/* 그림 속 검은 간판 위에 로고 */
.hero__sign {
  position: absolute; left: 33.1%; top: 13%; width: 33.7%; height: 8.2%;
  display: grid; place-items: center; pointer-events: none;
}
.hero__sign .logo { font-size: 3.6cqw; color: #f4f1ea; opacity: .95; }

/* ───── SECTIONS ───── */
.section { width: var(--wrap); margin: 0 auto; padding: clamp(96px, 13vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { margin-bottom: 56px; max-width: 760px; }
.num { display: block; font-family: var(--latin); font-style: italic; font-size: 20px; color: var(--accent); margin-bottom: 14px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.2; }
.section__desc { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.65; font-weight: 500; letter-spacing: -0.025em; }

/* about */
.about__body { display: grid; gap: 24px; max-width: 760px; margin-bottom: 80px; }
.idiom { color: var(--ink-2); padding-left: 18px; border-left: 2px solid var(--accent); }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { position: relative; padding: 32px 28px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.value__mark { display: block; font-family: var(--latin); font-style: italic; font-size: 44px; line-height: 1; color: var(--accent); margin-bottom: 28px; }
.value h3 { font-size: 22px; margin-bottom: 10px; }
.value p { color: var(--ink-2); font-size: 16px; }

/* work */
.work__list { list-style: none; padding: 0; margin: 0; }
.work__list li {
  display: grid; grid-template-columns: 200px 180px 1fr; align-items: baseline; gap: 24px;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .3s;
}
.work__list li:first-child { border-top: 1px solid var(--line); }
.work__list li:hover { padding-left: 12px; }
.work__ko { font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.04em; }
.work__en { font-family: var(--latin); font-style: italic; font-size: 19px; color: var(--ink-3); }
.work__list p { color: var(--ink-2); }

/* products */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0 0 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); border-color: #d6d3cc; box-shadow: 0 24px 48px -28px rgba(17,17,17,.3); }
.card__img { width: 100%; height: auto; aspect-ratio: 1200 / 630; flex: none; object-fit: cover; border-bottom: 1px solid var(--line); margin-bottom: 26px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img { transform: scale(1.03); }
.card > :not(.card__img) { margin-left: 28px; margin-right: 28px; }
.card__tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #f1efea; padding: 4px 10px; border-radius: 999px; }
.card h3 { font-size: 28px; margin: 22px 0 10px; }
.card__line { font-size: 17px; font-weight: 500; line-height: 1.55; margin-bottom: 14px; }
.card__desc { color: var(--ink-2); font-size: 15px; }
.card__link { margin-top: auto; padding-top: 28px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.card__link i { font-style: normal; transition: transform .3s; }
.card:hover .card__link i { transform: translate(3px, -3px); color: var(--accent); }

/* vision */
.vision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); align-items: center; }
.vision__display { font-family: var(--latin); font-size: clamp(40px, 5vw, 78px); line-height: 1.06; letter-spacing: -0.03em; }
.vision__display span, .vision__display em { display: block; white-space: nowrap; }
.vision__display span { color: var(--ink-3); }
.vision__display em { font-style: italic; color: var(--ink); }
.vision__display em::first-letter { color: var(--accent); }
.vision__text { max-width: 560px; display: grid; gap: 18px; }
.vision__text .num, .vision__text .kicker { margin-bottom: 0; }
.vision__text h2 { margin-bottom: 6px; }
.vision__text p:not(.lead):not(.kicker) { color: var(--ink-2); }

/* team */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person {
  display: grid; gap: 2px; padding: 26px 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.person__role { font-family: var(--latin); font-style: italic; color: var(--accent); font-size: 17px; margin-bottom: 36px; }
.person b { font-size: 22px; letter-spacing: -0.03em; }
.person span:last-child { font-size: 14px; color: var(--ink-3); }

/* contact (검은 블록) */
.contact { background: var(--ink); color: #f5f3ee; padding: clamp(100px, 14vw, 170px) 24px; text-align: center; }
.contact__inner { display: grid; justify-items: center; gap: 22px; max-width: 760px; margin: 0 auto; }
.contact__ask { color: #b9b6ae; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.7; }
.contact h2 { font-size: clamp(40px, 6vw, 80px); }
.btn {
  margin-top: 18px; display: inline-flex; gap: 12px; align-items: center; padding: 17px 32px;
  background: #f5f3ee; color: var(--ink); text-decoration: none; font-weight: 600;
  border-radius: 999px; transition: background .25s, color .25s, transform .25s;
}
.btn i { font-style: normal; }
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* footer */
.footer {
  background: var(--ink); color: #8f8c85; border-top: 1px solid #2a2a28;
  padding: 28px max(24px, calc((100% - 1200px) / 2));
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px;
}
.footer .logo { color: #f5f3ee; font-size: 22px; }

/* ───── 등장 애니메이션 ───── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__text > * { opacity: 0; transform: translateY(14px); animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__text > *:nth-child(2) { animation-delay: .1s; }
.hero__text > *:nth-child(3) { animation-delay: .25s; }
.hero__text > *:nth-child(4) { animation-delay: .4s; }
.hero__art { opacity: 0; animation: fadein 1.6s .15s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__text > *, .hero__art { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ───── 반응형 ───── */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .nav__links a[href="#team"] { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 92px; gap: 16px; min-height: 0; }
  .hero__art { order: -1; margin: 0 -12px; }
  .values, .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .work__list li { grid-template-columns: 1fr; gap: 2px; }
  .vision { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .person__role { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .logo { font-size: 23px; }
  .hero__title .line { white-space: normal; }
  .vision__display span, .vision__display em { white-space: normal; }
}
