/* ===================================================================
   Howard Jung Consulting — Design System
   Editorial minimal aesthetic. Restraint and intentionality.
   =================================================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Noto+Serif+KR:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* ===== Design Tokens ===== */
:root {
  /* Color */
  --bg: #FAF8F4;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F2EDE4;
  --ink: #1A1612;
  --ink-soft: #4A4239;
  --ink-mute: #8A8076;
  --line: #E8E0D2;
  --line-soft: #F0E9DC;
  --accent: #8B6F47;
  --accent-deep: #6B5535;

  /* Type */
  --display-en: 'Fraunces', Georgia, serif;
  --display-ko: 'Noto Serif KR', 'Fraunces', serif;
  --body: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
  --space-9: 9rem;

  /* Layout */
  --container: 1180px;
  --reading: 680px;
  --radius-sm: 4px;
  --radius: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

/* Lang-specific display fonts */
html[lang="ko"] .display, html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { font-family: var(--display-ko); letter-spacing: -0.01em; }
html[lang="en"] .display, html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--display-en); letter-spacing: -0.015em; }

/* ===== Typography ===== */
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.08; font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.18; font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.3; font-weight: 500; }
h4 { font-size: 1.1rem; line-height: 1.4; font-weight: 600; font-family: var(--body); letter-spacing: -0.005em; }
p { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }
.lead { font-size: 1.225rem; line-height: 1.6; color: var(--ink-soft); font-weight: 400; }
.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* ===== Layout primitives ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.container-reading { max-width: var(--reading); margin: 0 auto; padding: 0 var(--space-4); }
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-6) 0; }
@media (max-width: 768px) {
  .section { padding: var(--space-7) 0; }
  .section-tight { padding: var(--space-5) 0; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo {
  font-family: var(--display-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo span { color: var(--accent); }
.nav {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.lang-toggle {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--bg-elevated);
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .nav-items, .lang-toggle-desktop { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink); }
  .nav.open .nav-items {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: var(--space-4);
    gap: var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .lang-toggle-desktop {
    display: inline-flex;
    align-self: flex-start;
    margin-top: var(--space-2);
  }
}

/* ===== Hero ===== */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
}
.hero-eyebrow { margin-bottom: var(--space-4); }
.hero h1 {
  margin-bottom: var(--space-4);
  max-width: 16ch;
}
.hero .lead { max-width: 52ch; margin-bottom: var(--space-5); }
.hero-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
  font-size: 0.95rem;
  color: var(--ink-mute);
}
.hero-meta span:not(:last-child)::after {
  content: '·';
  margin-left: var(--space-4);
  color: var(--line);
}
@media (max-width: 768px) {
  .hero { padding: var(--space-7) 0 var(--space-6); }
}

/* ===== Tracks (two service paths) ===== */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (max-width: 720px) {
  .tracks { grid-template-columns: 1fr; }
}
.track-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.track-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.track-card:hover::before { transform: scaleY(1); }
.track-card .eyebrow {
  color: var(--accent);
  margin-bottom: var(--space-3);
  display: block;
}
.track-card h3 { margin-bottom: var(--space-2); }
.track-card p { font-size: 0.95rem; margin-bottom: var(--space-3); }
.track-card .arrow {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--body);
}

/* ===== Generic CTA button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Section heading ===== */
.section-head {
  margin-bottom: var(--space-6);
  max-width: 720px;
}
.section-head .eyebrow { margin-bottom: var(--space-3); display: block; }
.section-head h2 { margin-bottom: var(--space-3); max-width: 22ch; }
.section-head .lead { color: var(--ink-soft); max-width: 60ch; }

/* ===== Timeline (career arc) ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (max-width: 880px) {
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
}
.phase {
  border-top: 1px solid var(--ink);
  padding-top: var(--space-3);
}
.phase-years {
  font-family: var(--display-en);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}
.phase-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
  color: var(--ink);
}
.phase-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== Stat row ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-5) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}
.stat-num {
  font-family: var(--display-en);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ===== Service tier ===== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (max-width: 880px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}
.tier-name {
  font-family: var(--display-en);
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
  color: var(--ink);
}
.tier-price {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-family: var(--body);
}
.tier-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}
.tier ul {
  list-style: none;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.tier li {
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tier li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Article (prose) ===== */
.article-meta {
  text-align: center;
  margin-bottom: var(--space-5);
}
.article-meta .eyebrow { margin-bottom: var(--space-3); display: block; }
.article-meta time { color: var(--ink-mute); font-size: 0.9rem; }
.article h1 {
  max-width: 22ch;
  margin: 0 auto var(--space-5);
  text-align: center;
  font-weight: 500;
}
.article-lead {
  font-size: 1.25rem;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 auto var(--space-7);
  font-style: italic;
  font-family: var(--display-ko);
}
html[lang="en"] .article-lead { font-family: var(--display-en); }
.article-body { max-width: var(--reading); margin: 0 auto; }
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}
.article-body p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-byline {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1.7;
}

/* ===== Featured insight (link card) ===== */
.insight-card {
  display: block;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}
.insight-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.insight-card time {
  font-size: 0.8rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.insight-card h3 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  line-height: 1.25;
}
.insight-card p { font-size: 0.95rem; }

/* ===== About — profile section ===== */
.profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; gap: var(--space-4); }
}
.profile-image {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}
.profile-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== FAQ ===== */
.faq-item {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.faq-a {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ===== Contact / CTA panel ===== */
.cta-panel {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-7);
  text-align: center;
}
.cta-panel h2 { color: var(--bg); margin-bottom: var(--space-3); }
.cta-panel p { color: rgba(250, 248, 244, 0.75); max-width: 50ch; margin: 0 auto var(--space-4); }
.cta-panel .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.cta-panel .btn-primary:hover { background: var(--accent); color: var(--bg); }

/* ===== Footer ===== */
.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-6) 0 var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-mute);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-brand .logo { font-size: 1.05rem; }
.footer-brand p { font-size: 0.85rem; margin-top: var(--space-2); max-width: 38ch; }
.footer-meta { text-align: right; line-height: 1.6; }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

/* ===== Reveal animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); animation: reveal 0.8s var(--ease) forwards; }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.15s; }
  .reveal-3 { animation-delay: 0.25s; }
  .reveal-4 { animation-delay: 0.35s; }
  @keyframes reveal { to { opacity: 1; transform: translateY(0); } }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.divider {
  margin: var(--space-6) auto;
  width: 60px;
  height: 1px;
  background: var(--line);
}
.divider-wide { width: 100%; }
