:root {
  --ink: #1c2420;
  --ink-soft: #4a544f;
  --muted: #7a837e;
  --line: #e6e2da;
  --bg: #fdfcf9;
  --tint: #f5f1e9;
  --card: #ffffff;
  --accent: #e59a3c;
  --accent-deep: #c97d1f;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(28, 36, 32, 0.04), 0 12px 32px -12px rgba(28, 36, 32, 0.14);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(253, 252, 249, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.site-nav .nav-cta:hover { color: #fff; background: #2e3934; }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2e3934; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn-outline-light:hover { border-color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 112px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-lead { margin-top: 24px; max-width: 520px; font-size: 18px; color: var(--ink-soft); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }

.hero-window {
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e4e0d8; }
.window-bar i:first-child { background: #f2a49a; }
.window-bar i:nth-child(2) { background: #f3cf7c; }
.window-bar i:nth-child(3) { background: #9fd3a6; }
.window-bar span { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.hero-video { width: 100%; aspect-ratio: 1; object-fit: cover; }

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-chip strong { font-size: 22px; font-weight: 800; color: var(--accent-deep); letter-spacing: -0.02em; }
.hero-chip span { color: var(--ink-soft); }
.chip-a { top: 18%; left: -48px; }
.chip-b { bottom: 10%; right: -36px; }
.chip-b img { width: 28px; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-tint { background: var(--tint); }

.section-kicker {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.section-kicker.on-dark { color: var(--accent); }
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.about-body > p { font-size: 18px; color: var(--ink-soft); }
.values { list-style: none; margin-top: 44px; border-top: 1px solid var(--line); }
.values li { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.value-num { font-size: 14px; font-weight: 700; color: var(--accent-deep); padding-top: 3px; }
.values h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.values p { margin-top: 6px; color: var(--ink-soft); }

/* Business */
.biz-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.biz-card {
  position: relative;
  padding: 32px 28px 36px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.biz-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent-deep);
}
.biz-icon svg { width: 24px; height: 24px; }
.biz-card h3 { margin-top: 24px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.biz-card p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.biz-card.is-soon { background: rgba(255, 255, 255, 0.55); border-style: dashed; }
.biz-card.is-soon .biz-icon { background: #ece8e0; color: var(--muted); }
.biz-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ece8e0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Works */
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.works-note { color: var(--muted); }

.work-feature {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.work-media { background: #f8f8f8; border-right: 1px solid var(--line); overflow: hidden; }
.work-media video { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transform: scale(1.18); transform-origin: 0 50%; }
.work-info { padding: 52px 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.work-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf5ec;
  color: #2f7a43;
  font-size: 13px;
  font-weight: 600;
}
.work-logo { margin-top: 22px; width: min(260px, 80%); height: auto; }
.work-title { margin-top: 18px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.work-desc { margin-top: 12px; color: var(--ink-soft); }
.work-meta { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.work-meta li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.work-meta span { width: 64px; flex-shrink: 0; color: var(--muted); font-weight: 400; }
.work-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

.case-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.case-media-dark { background: #121412; }
.case-media-warm { background: linear-gradient(135deg, #fbf3e6, #f3e3cc); }
.case-media .case-mascot { width: auto; height: 92%; object-fit: contain; }
.case-info { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.case-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}
.case-title { margin-top: 16px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.case-desc { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.case-points { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.case-points li { position: relative; padding-left: 18px; font-size: 15px; font-weight: 500; }
.case-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.case-tags { list-style: none; margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags li { padding: 4px 10px; border-radius: 8px; background: var(--tint); color: var(--ink-soft); font-size: 13px; font-weight: 500; }

.work-next {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line);
}
.work-next-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(229, 154, 60, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
.work-next h3 { font-size: 17px; font-weight: 700; }
.work-next p { margin-top: 2px; font-size: 15px; color: var(--muted); }

@keyframes pulse {
  50% { box-shadow: 0 0 0 11px rgba(229, 154, 60, 0); }
}

/* Contact */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
}
.contact-card h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.contact-card p:not(.section-kicker) { margin-top: 14px; color: rgba(255, 255, 255, 0.66); }
.contact-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.footer-biz { margin-top: 18px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.footer-biz a:hover { color: var(--ink); }
.footer-copy { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .work-info { padding: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }

  .hero { padding: 56px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { width: min(100%, 360px); }
  .chip-a { left: -16px; }
  .chip-b { right: -12px; }

  .section { padding: 88px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .works-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .work-feature { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .work-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
  .contact-actions { width: 100%; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .biz-grid { grid-template-columns: 1fr; }
  .work-info { padding: 32px 24px; }
  .case-info { padding: 26px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-next-dot { animation: none; }
}

.brand-name em, .footer-brand em { font-style: normal; color: var(--accent-deep); }
