:root {
  --bg: #FAFAF8;
  --bg-alt: #F1F0EC;
  --ink: #201F1E;
  --ink-soft: #5E5D5A;
  --line: #E4E2DC;
  --accent: #0B9C86;
  --accent-1: #00D9A0;
  --accent-2: #01A4DC;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --white: #FFFFFF;
  --radius: 14px;
  --maxw: 1120px;
  --font-en: 'Inter', sans-serif;
  --font-kr: 'Noto Sans KR', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-kr);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 56px;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
}
.logo-text {
  font-family: var(--font-kr);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-links a { color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after { width: 100%; }

.nav-cta {
  color: var(--white) !important;
  background: var(--accent-gradient);
  padding: 9px 18px !important;
  border-radius: 100px;
}
.nav-cta:hover { filter: brightness(0.92); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: 0.25s ease;
}

/* SECTIONS */
.section {
  padding: 140px 0 120px;
  scroll-margin-top: 80px;
}
.section:nth-of-type(even) { background: var(--bg-alt); }

/* ABOUT */
.about { padding-top: 200px; }
.about-lead {
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin-bottom: 32px;
}
.about-problem {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
}
.keywords {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.keywords li {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
}

/* SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -20px rgba(20,19,26,0.25);
}
.service-index {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.service-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

/* WORK */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
.work-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -20px rgba(20,19,26,0.25);
}
.work-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 46px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}
.work-thumb--dark { background: linear-gradient(135deg, var(--ink), #45443f); }
.work-thumb--brand { background: var(--accent-gradient); }
.work-thumb--deep { background: linear-gradient(135deg, var(--accent-2), var(--ink)); }
.work-info { padding: 22px 24px 26px; }
.work-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.work-meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 4px; }
.work-role {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.partner-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
}
.partner-strip img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.partner-strip img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,19,26,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 0 0 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  font-size: 20px;
  cursor: pointer;
  z-index: 1;
}
.modal-thumb {
  height: 200px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal h3 { font-size: 22px; font-weight: 700; margin: 24px 32px 6px; }
.modal-meta { font-size: 14px; color: var(--ink-soft); margin: 0 32px 4px; }
.modal-role {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 32px 16px;
}
.modal-desc { font-size: 14.5px; color: var(--ink-soft); margin: 0 32px; }

/* PEOPLE */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.people-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.people-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.people-photo {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.people-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.people-heading h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.people-role { font-size: 13.5px; color: var(--accent); font-weight: 600; }
.people-expertise { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.people-bio {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 18px;
}
.people-bio li {
  list-style: disc;
  margin-bottom: 6px;
}
.people-bio li:last-child { margin-bottom: 0; }

/* CONTACT */
.contact { text-align: center; }
.contact .container { max-width: 720px; }
.contact .eyebrow, .contact .section-title { text-align: center; }
.contact-desc {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 44px;
}
.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-email {
  font-family: var(--font-en);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 36px;
  border-radius: 100px;
  transition: filter 0.2s ease;
  margin-top: 4px;
}
.btn-primary:hover { filter: brightness(0.92); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-img {
  height: 16px;
  width: auto;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .partner-strip { gap: 24px; }
  .partner-strip img { height: 24px; max-width: 90px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .section { padding: 96px 0 80px; }
  .about { padding-top: 140px; }
  .br-desktop { display: none; }
}
