/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FAF6F1;
  --color-bg-warm: #F3EDE4;
  --color-text: #2C2420;
  --color-text-light: #6B5E54;
  --color-accent: #C17547;
  --color-accent-hover: #A5603A;
  --color-gold: #D4A855;
  --color-purple: #7B5EA7;
  --color-green: #4A8B6F;
  --color-red: #C75B5B;
  --color-brown: #8B6B4A;
  --font-sans: 'Noto Sans KR', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(44, 36, 32, 0.08);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(193, 117, 71, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(123, 94, 167, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 168, 85, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 32px;
  box-shadow: 0 20px 60px rgba(44, 36, 32, 0.12);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--color-text-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(193, 117, 71, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-light);
  border-radius: 12px;
  position: relative;
  opacity: 0.4;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-text-light);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

/* ===== Sections ===== */
.section {
  padding: 120px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--color-text);
}

/* ===== About ===== */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.9;
}

.about-text strong {
  color: var(--color-accent);
  font-weight: 600;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.thread-art {
  width: 280px;
  height: 280px;
}

.thread-svg {
  width: 100%;
  height: 100%;
}

.thread-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  stroke-linecap: round;
}

.thread-path.animate {
  animation: drawThread 2s ease forwards;
}

/* ===== Approach ===== */
.approach {
  background: var(--color-bg-warm);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 40px 24px;
  background: var(--color-bg);
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(44, 36, 32, 0.08);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  margin-top: 100px;
  flex-shrink: 0;
}

/* ===== Values ===== */
.values {
  background: var(--color-bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  padding: 48px 32px;
  border-radius: 20px;
  background: var(--color-bg-warm);
  border: 1px solid rgba(193, 117, 71, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.06);
}

.value-icon {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.footer-contact p {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  text-align: center;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes drawThread {
  to {
    stroke-dashoffset: 0;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 246, 241, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .section {
    padding: 80px 0;
  }
}
