/* === thereafter Website — 4-Color Palette === */
:root {
  --olive: #B5AD8E;
  --pink: #E8C4B8;
  --beige: #D5CAAB;
  --orange: #E8A94D;
  --dark: #1A1A1A;
  --text: #333333;
  --sub: #555555;
  --muted: #888888;
  --border: #E2DED8;
  --w: 960px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
  color-scheme: light only;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 56px;
}

.nav-logo img {
  height: 20px;
  width: auto;
}

.nav-logo-black { display: none; }
.nav-logo-white { display: block; }

.nav.scrolled .nav-logo-black { display: block; }
.nav.scrolled .nav-logo-white { display: none; }

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

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav.scrolled .nav-links a { color: var(--sub); }
.nav.scrolled .nav-links a:hover { color: var(--orange); }

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff;
  transition: background 0.3s;
}

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

/* ================================================
   HERO
   ================================================ */
.hero {
  height: 100vh;
  min-height: 600px;
  background: var(--olive);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  text-align: center;
}

.hero-logo {
  margin-bottom: 20px;
  line-height: 1;
}

.hero-logo img {
  height: 56px;
  width: auto;
}

.hero-slogan {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}

.scroll-arrow span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(255,255,255,0.5);
  border-bottom: 1.5px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ================================================
   SECTIONS (common)
   ================================================ */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-title.light { color: #fff; }

.section-sub {
  font-size: 14px;
  color: var(--sub);
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.8;
}

.section-sub.light { color: rgba(255,255,255,0.7); }

/* ================================================
   WHAT WE DO
   ================================================ */
.work { background: #fff; }

.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  text-align: center;
  padding: 48px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.work-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(232,169,77,0.1);
  transform: translateY(-4px);
}

.work-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--olive);
}

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

.work-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.work-type {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.work-desc {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
}

/* ================================================
   INSIGHT HUB
   ================================================ */
.insight { background: var(--beige); }

.insight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.insight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.2s;
}

.insight-card:hover {
  border-left-color: var(--orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.insight-track {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  margin-bottom: 12px;
}

.insight-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.insight-kw {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.insight-kw span {
  font-size: 11px;
  color: #6B5E55;
  background: rgba(232,196,184,0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

.insight-cta {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn:hover {
  background: #D49A3A;
  box-shadow: 0 4px 16px rgba(232,169,77,0.3);
  transform: translateY(-1px);
}

/* ================================================
   ABOUT
   ================================================ */
.about { background: #fff; }

.about-content {
  max-width: 560px;
  margin: 0 auto;
}

.about-name-block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.about-initial {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.about-role {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.about-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 2px;
  width: 72px;
  flex-shrink: 0;
}

.about-item span:last-child {
  font-size: 15px;
  color: var(--text);
}

.about-projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-projects li {
  font-size: 15px;
  color: var(--text);
  padding-left: 12px;
  position: relative;
}

.about-projects li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

/* ================================================
   CONTACT
   ================================================ */
.contact { background: var(--olive); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.contact-item {
  text-align: center;
}

.contact-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.contact-item a {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--orange); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  padding: 20px 24px;
  background: #1A1A1A;
  text-align: center;
}

.footer p {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .nav-links.open a { color: var(--text); }
  .nav-toggle { display: flex; }

  .hero-logo img {
    height: 40px;
  }

  .hero-slogan { font-size: 14px; }

  .section { padding: 72px 0; }
  .section-title { font-size: 22px; }
  .section-sub { margin-bottom: 40px; }

  .work-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-card { padding: 36px 24px; }

  .insight-cards {
    grid-template-columns: 1fr;
  }

  .about-name-block { gap: 14px; }

  .about-initial {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .about-item {
    flex-direction: column;
    gap: 6px;
  }

  .about-label {
    width: auto;
  }

  .contact-item a {
    font-size: 15px;
  }
}
