/* ==================== 기본 설정 ==================== */
:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --gray-1: #f4f4f2;
  --gray-2: #d8d6d0;
  --gray-3: #8a8880;
  --gray-4: #4a4945;
  --band-text: #d8d6d0;
  --max-width: 880px;
  --max-width-wide: 1200px;
}

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
  cursor: url('assets/cursor.png') 16 16, auto;
}

h1, h2, h3, h4 { font-weight: 900; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: url('assets/cursor.png') 16 16, pointer; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  scroll-margin-top: 70px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-3);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-eyebrow.light { color: var(--gray-3); }

/* ==================== 전체 폭 섹션 ==================== */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  scroll-margin-top: 70px;
}

.bleed-black {
  background: var(--black);
  color: var(--white);
}

.bleed-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.bleed-inner.wide {
  max-width: var(--max-width-wide);
  padding: 0 2rem;
}

/* ==================== NAV — 히어로 오버레이 ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.nav.nav-scrolled {
  background: var(--white);
  border-bottom-color: var(--gray-2);
}

.nav-left {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 1.25rem 1.5rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav-links a { color: var(--white); transition: color 0.2s; }
.nav-links a:hover { opacity: 0.7; }

.nav.nav-scrolled .nav-links a { color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: background 0.2s;
}

.nav.nav-scrolled .nav-toggle span { background: var(--black); }

/* ==================== HERO — 스크롤 고정 + 좌우 분할 ==================== */
.hero-scroll-wrapper {
  position: relative;
  height: 220vh;
  scroll-margin-top: 0;
}

.hero-split {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  overflow: hidden;
}

.hero-left {
  background: var(--white);
  color: var(--black);
  padding: 6rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-stage {
  position: relative;
  min-height: clamp(200px, 30vh, 280px);
}

.hero-wordmark {
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(36px, 5.5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1;
  will-change: transform, opacity;
}

.hero-reveal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}

.hero-sub {
  font-size: 14px;
  color: var(--gray-4);
  margin-top: 1rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 10px 24px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.hero-cta:hover { background: var(--black); color: var(--white); }

.hero-right {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-star {
  width: 40%;
  max-width: 200px;
  filter: invert(1);
  will-change: transform;
}

/* ==================== ABOUT — 플립 카드 ==================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.flip-card {
  perspective: 1200px;
  aspect-ratio: 4 / 3;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner { transform: rotateY(180deg); }

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.flip-front {
  border: 1px solid var(--gray-2);
  justify-content: space-between;
  color: var(--gray-3);
}

.flip-front p { font-size: 14px; color: var(--gray-4); line-height: 1.6; }

.flip-icon { width: 32px; height: 32px; }

.flip-back {
  background: var(--black);
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
}

.flip-back p {
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
  font-family: sans-serif;
}

.about-footer {
  margin-top: 2rem;
  font-size: 14px;
  color: var(--gray-4);
  border-top: 1px solid var(--gray-2);
  padding-top: 1.5rem;
}

/* ==================== SERVICE — 원형 도형 (풀와이드) ==================== */
.service-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 140px;
}

.service-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: none;
  padding: 4px;
  color: var(--gray-3);
  transition: color 0.15s;
}

.service-circle svg { width: 100%; height: 100%; }

.service-circle:hover { color: var(--gray-4); }

.service-circle.active { color: var(--black); }

.circle-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-4);
  text-align: center;
}

.service-detail {
  display: none;
  max-width: var(--max-width);
  margin: 1rem auto 0;
  font-size: 14px;
  color: var(--gray-4);
  background: var(--gray-1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.service-detail.open { display: block; }

/* ==================== 그 외 다양한 기술 — 검은 띠 ==================== */
.tech-band .bleed-inner { padding: 3rem 1.5rem; }

.tech-band-text {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.5;
}

/* ==================== 가격표 (다크) ==================== */
.price-table {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.price-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  align-items: center;
  color: var(--band-text);
}

.price-head {
  font-weight: 700;
  color: var(--gray-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--gray-3);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.price-note {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--gray-3);
}

/* ==================== 프로세스 ==================== */
.process {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  gap: 1rem;
}

.process-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.process-step h4 { font-size: 15px; margin-bottom: 4px; }
.process-step p { font-size: 13px; color: var(--gray-4); }

/* ==================== WORK ==================== */
.work-title {
  font-size: 15px;
  margin: 2rem 0 1rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.25rem;
}

.work-thumb {
  aspect-ratio: 1;
  background: var(--gray-1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-3);
  text-align: center;
  padding: 0.5rem;
  transition: background 0.15s;
  overflow: hidden;
}

.work-thumb img,
.work-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.work-thumb.work-thumb-empty {
  padding: 0.75rem;
  line-height: 1.5;
  word-break: break-all;
}

.work-thumb:hover { background: var(--gray-2); }

.more-btn {
  display: block;
  margin: 0 auto 3rem;
  padding: 8px 22px;
  border: 1px solid var(--gray-2);
  border-radius: 999px;
  background: none;
  font-size: 13px;
  color: var(--gray-4);
  transition: border-color 0.15s, color 0.15s;
}

.more-btn:hover { border-color: var(--black); color: var(--black); }

.more-btn.hidden { display: none; }

/* ==================== 라이트박스 ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11,11,11,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open { display: flex; }

.lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 70vw;
}

.lightbox-content {
  width: 60vw;
  height: 60vh;
  max-width: 640px;
  max-height: 640px;
  background: var(--gray-4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  text-align: center;
  padding: 1rem;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  font-size: 14px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 36px;
  padding: 12px;
  line-height: 1;
}

.lightbox-arrow.left { left: 12px; }
.lightbox-arrow.right { right: 12px; }

/* ==================== CONTACT ==================== */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row label { font-size: 12px; color: var(--gray-3); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
  border: 1px solid var(--gray-2);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.form-row input:focus { outline: none; border-color: var(--black); }

.checkbox-row {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-row label { font-size: 13px; color: var(--gray-4); }

.send-btn {
  grid-column: span 2;
  padding: 12px;
  border: 1.5px solid var(--black);
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: url('assets/cursor.png') 16 16, pointer;
  transition: opacity 0.15s;
}

.send-btn:hover { opacity: 0.8; }

.form-status {
  grid-column: span 2;
  font-size: 13px;
  color: var(--gray-3);
}

/* ==================== CLOSING ==================== */
.closing { padding-bottom: 0; }

.closing-inner { padding-bottom: 2rem; }

.closing-line { font-size: 15px; color: var(--band-text); }

.closing-email {
  display: inline-block;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  margin-top: 1rem;
}

.closing-meta {
  margin-top: 2rem;
  font-size: 13px;
}

.closing-meta a { color: var(--gray-3); }
.closing-meta a:hover { color: var(--white); }

.closing-wordmark {
  font-size: clamp(60px, 14vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  padding: 2rem 1.5rem 1.5rem;
  word-break: break-word;
}

/* ==================== 모바일 ==================== */
@media (max-width: 720px) {
  .nav { background: var(--white) !important; border-bottom: 1px solid var(--gray-2); }
  .nav-links { display: none; }
  .nav-links a { color: var(--black) !important; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: var(--black) !important; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-2);
    padding: 1rem 1.5rem;
    gap: 12px;
  }

  .hero-scroll-wrapper { height: auto; }
  .hero-split { position: static; grid-template-columns: 1fr; height: auto; overflow: visible; }
  .hero-left { padding: 6rem 1.5rem 2rem; justify-content: flex-start; }
  .hero-stage { min-height: auto; position: static; }
  .hero-wordmark { position: static; opacity: 1 !important; transform: none !important; }
  .hero-reveal { position: static; opacity: 1 !important; transform: none !important; margin-top: 1.5rem; }
  .hero-right { padding: 3rem 2rem; }
  .hero-star { width: 30%; }

  .about-split { grid-template-columns: 1fr; }

  .flip-card:hover .flip-inner { transform: none; }
  .flip-back { display: none; }
  .flip-card { aspect-ratio: auto; perspective: none; }
  .flip-inner { position: static; transform: none !important; }
  .flip-face { position: static; }

  .service-item { width: 42%; }

  .price-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .price-head { display: none; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form { grid-template-columns: 1fr; }
  .checkbox-row, .send-btn, .form-status { grid-column: span 1; }

  .lightbox-body { max-width: 90vw; }
  .lightbox-content { width: 85vw; height: 50vh; }
}
