@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* KIT — fresh build */
:root {
  --font: 'Pretendard', system-ui, sans-serif;
  --black: #09090b;
  --gray-900: #18181b;
  --gray-600: #52525b;
  --gray-400: #a1a1aa;
  --gray-100: #f4f4f5;
  --white: #ffffff;
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --max: 1120px;
  --header: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fs-body: 17px;
  --fs-body-sm: 15px;
  --fs-caption: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Header */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-head.is-solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-100);
}
.site-head .bar {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-head .logo img { height: 26px; }
.site-head.on-dark .logo img { filter: brightness(0) invert(1); }
.site-head.on-dark.is-solid .logo img { filter: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.site-head.on-dark .nav a { color: rgba(255,255,255,0.75); }
.site-head.on-dark.is-solid .nav a { color: var(--gray-600); }
.nav a:hover, .nav a.is-active { color: var(--black); }
.site-head.on-dark .nav a:hover,
.site-head.on-dark .nav a.is-active { color: var(--white); }
.site-head.on-dark.is-solid .nav a:hover,
.site-head.on-dark.is-solid .nav a.is-active { color: var(--blue); }

.nav .btn-nav {
  margin-left: 8px;
  padding: 8px 16px;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 6px;
  font-weight: 600;
}
.nav .btn-nav:hover { background: var(--blue-dark); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-900);
  transition: transform 0.25s, opacity 0.25s;
}
.site-head.on-dark .menu-toggle span { background: #fff; }
.site-head.on-dark.is-solid .menu-toggle span { background: var(--gray-900); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-fill { background: var(--blue); color: var(--white); }
.btn-fill:hover { background: var(--blue-dark); }
.btn-line {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-line:hover { background: rgba(255,255,255,0.08); }
.btn-dark-line {
  background: transparent;
  color: var(--gray-900);
  border: 1px solid var(--gray-100);
}
.btn-dark-line:hover { border-color: var(--gray-400); }

/* Home hero */
.home-hero {
  min-height: 92vh;
  padding-top: var(--header);
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--black) 42%, transparent 68%);
  pointer-events: none;
}
.home-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.home-hero .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}
.home-hero .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.home-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
.home-hero .desc {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 420px;
  margin-bottom: 32px;
}
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .visual {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.home-hero .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.bg-gray { background: var(--gray-100); }
.bg-dark { background: var(--black); color: rgba(255,255,255,0.7); }

.sec-head { margin-bottom: 40px; }
.sec-head.center { text-align: center; }
.sec-head .over {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.bg-dark .sec-head .over { color: #38bdf8; }
.sec-head h2 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.2;
}
.bg-dark .sec-head h2 { color: var(--white); }
.sec-head p {
  margin-top: 10px;
  font-size: 18px;
  max-width: 480px;
}
.sec-head.center p { margin-inline: auto; }

/* Service cards */
.svc-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.svc-item {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.svc-item:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 30px rgba(2,132,199,0.08);
}
.svc-item .n {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}
.svc-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.svc-item p { font-size: var(--fs-body-sm); line-height: 1.6; }
.svc-item .link {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--blue);
}

/* Stats bar */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  overflow: hidden;
}
.stat-bar > div {
  padding: 28px 20px;
  text-align: center;
  background: var(--white);
  border-right: 1px solid #e4e4e7;
}
.stat-bar > div:last-child { border-right: none; }
.stat-bar strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
}
.stat-bar span { font-size: var(--fs-caption); color: var(--gray-400); }

/* Partners */
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  padding: 24px 0;
  border-top: 1px solid #e4e4e7;
  border-bottom: 1px solid #e4e4e7;
}
.logos span {
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--gray-400);
}

/* Two col feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.split .text { font-size: 18px; line-height: 1.7; }
.split-boxes { display: flex; flex-direction: column; gap: 12px; }
.split-box {
  padding: 20px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.split-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 4px;
}
.split-box p { font-size: var(--fs-body-sm); color: rgba(255,255,255,0.55); }

/* CTA */
.cta {
  text-align: center;
  padding: 64px 0;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}
.cta h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}
.cta p { margin-bottom: 24px; font-size: 18px; }

/* Footer */
.site-foot {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 24px;
  font-size: var(--fs-body-sm);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.foot-grid h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
}
.foot-grid p { line-height: 1.8; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.35);
}

/* Subpage hero */
.page-top {
  padding: calc(var(--header) + 48px) 0 48px;
  background: var(--gray-100);
  border-bottom: 1px solid #e4e4e7;
}
.page-top h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-top p { font-size: 18px; max-width: 520px; }

/* Info list */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.info-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}
.info-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #e4e4e7;
  font-size: var(--fs-body-sm);
}
.info-grid > div > p { font-size: var(--fs-body-sm); line-height: 1.65; }
.info-row dt {
  width: 100px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--black);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span {
  font-size: var(--fs-caption);
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 100px;
  color: var(--gray-600);
}

/* Projects */
.proj-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.proj-tabs button {
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e4e4e7;
  border-radius: 100px;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
}
.proj-tabs button.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.search-in {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 32px;
  display: block;
  padding: 12px 18px;
  font-family: var(--font);
  font-size: var(--fs-body-sm);
  border: 1px solid #e4e4e7;
  border-radius: 100px;
  outline: none;
}
.search-in:focus { border-color: var(--blue); }
.proj-list {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.proj-list.show { display: grid; }
.proj-card {
  padding: 18px;
  font-size: var(--fs-body-sm);
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s;
}
.proj-card:hover { border-color: var(--blue); }
.proj-card .date { font-size: 12px; font-weight: 600; color: var(--blue); }
.proj-card .client { font-weight: 600; color: var(--black); margin: 4px 0; }
.proj-card .title { font-size: var(--fs-body-sm); line-height: 1.5; }

/* Video gallery */
.v-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.v-filter button {
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}
.v-filter button.active { background: var(--black); color: var(--white); border-color: var(--black); }
.v-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.v-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  cursor: pointer;
  transition: box-shadow 0.25s;
}
.v-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.v-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--gray-900);
}
.v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
}
.v-play::after {
  content: '';
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  clip-path: polygon(38% 28%, 38% 72%, 72% 50%);
}
.v-body { padding: 16px; }
.v-body h3 { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.v-body .meta { font-size: var(--fs-caption); color: var(--gray-400); }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  padding: 24px;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 900px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal-video { aspect-ratio: 16/9; background: #000; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-info { padding: 20px; }
.modal-info h3 { font-size: 18px; color: var(--black); margin-bottom: 8px; }
.modal-info p { font-size: var(--fs-body-sm); line-height: 1.65; color: var(--gray-600); }

/* Business page */
.biz-intro {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-600);
}
.biz-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.biz-pillar {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--white);
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.biz-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.biz-pillar:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 16px 48px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}
.biz-pillar:hover::before { transform: scaleX(1); }
.biz-pillar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.biz-pillar .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.biz-pillar h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.biz-pillar .lead {
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.biz-tags span {
  font-size: var(--fs-caption);
  font-weight: 500;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 100px;
  color: var(--gray-600);
}
.biz-pillar .more {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--blue);
}
.biz-pillar .more:hover { text-decoration: underline; }

.biz-detail { display: flex; flex-direction: column; gap: 64px; }
.biz-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid #e4e4e7;
}
.biz-block:last-child { padding-bottom: 0; border-bottom: none; }
.biz-block-label .num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.biz-block-label h3 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.biz-block-body .desc {
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 560px;
  margin-bottom: 24px;
}
.biz-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.biz-point {
  padding: 20px;
  background: var(--gray-100);
  border-radius: 10px;
}
.biz-point h4 {
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.biz-point p {
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--gray-600);
}
.biz-examples {
  font-size: var(--fs-caption);
  color: var(--gray-400);
  margin-bottom: 20px;
}
.biz-examples strong { color: var(--gray-600); font-weight: 600; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.biz-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.biz-step {
  padding: 28px 24px;
  border-right: 1px solid #e4e4e7;
  position: relative;
}
.biz-step:last-child { border-right: none; }
.biz-step .step-n {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.biz-step h4 {
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.biz-step p {
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--gray-600);
}

.biz-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  background: var(--black);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.biz-banner h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.biz-banner p {
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  max-width: 520px;
}
.biz-banner .chips { margin-top: 16px; }
.biz-banner .chips span {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Responsive */
@media (max-width: 900px) {
  .home-hero .inner { grid-template-columns: 1fr; }
  .home-hero .visual { max-width: 480px; }
  .svc-four { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-bar > div:nth-child(2) { border-right: none; }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .biz-pillars { grid-template-columns: 1fr; }
  .biz-block { grid-template-columns: 1fr; gap: 20px; }
  .biz-points { grid-template-columns: 1fr; }
  .biz-process { grid-template-columns: repeat(2, 1fr); }
  .biz-step:nth-child(2) { border-right: none; }
  .biz-step:nth-child(1),
  .biz-step:nth-child(2) { border-bottom: 1px solid #e4e4e7; }
  .biz-banner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid #e4e4e7;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-head.on-dark .nav { background: var(--white); }
  .site-head.on-dark .nav a { color: var(--gray-600); }
  .svc-four, .stat-bar { grid-template-columns: 1fr; }
  .stat-bar > div { border-right: none; border-bottom: 1px solid #e4e4e7; }
  section { padding: 56px 0; }
  .biz-process { grid-template-columns: 1fr; }
  .biz-step { border-right: none; border-bottom: 1px solid #e4e4e7; }
  .biz-step:last-child { border-bottom: none; }
}
