:root {
  --bg: #f4f1ea;
  --ink: #151412;
  --ink-dim: #5f5a51;
  --ink-faint: #8f8a80;
  --rule: #dcd7cc;
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --serif-kr: "Noto Serif KR", "Cormorant Garamond", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
  --measure: 40rem;
}

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

html { scroll-behavior: smooth; }

html, body { background: var(--bg); color: var(--ink); }

body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[lang="ko"] body { font-family: var(--serif-kr); word-break: keep-all; overflow-wrap: anywhere; }

a { color: inherit; text-decoration: none; transition: color 0.3s ease, opacity 0.3s ease; }

em { font-style: italic; }

/* ---------- Labels (shared) ---------- */

.label,
.eyebrow,
.project-status,
.project-meta,
.founder-role,
.section-head h2,
.nav,
.footer,
.brand-en {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.brand { display: flex; align-items: baseline; gap: 0.9rem; white-space: nowrap; color: var(--ink); }
.brand-kr {
  font-family: var(--serif-kr);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.nav { display: flex; align-items: center; gap: 2rem; color: var(--ink-dim); }
.nav a:hover { color: var(--ink); }

.lang-toggle { display: flex; align-items: center; gap: 0.4rem; margin-left: 0.8rem; }
.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--ink); }
.lang-sep { color: var(--rule); }

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 7rem;
}

.eyebrow {
  color: var(--ink-faint);
  margin-bottom: 3rem;
}

.hero-title {
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 11ch;
  margin-bottom: 2.6rem;
}

.hero-sub {
  color: var(--ink-dim);
  max-width: var(--measure);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  margin-bottom: 2.8rem;
}

/* Image slot: stays hidden until an <img> is placed inside it. */
.hero-still { display: none; }
.hero-still:has(img) {
  display: block;
  margin: 5rem calc(-1 * var(--gutter)) 0;
}
.hero-still img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1);
}
.hero-still figcaption {
  padding: 0.8rem var(--gutter) 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Links ---------- */

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.1rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.text-link:hover { color: var(--ink-dim); border-color: var(--rule); }
.text-link .arrow { display: inline-block; transition: transform 0.3s ease; }
.text-link:hover .arrow { transform: translateX(4px); }

.text-link--lg {
  font-size: 1.25rem;
  align-self: flex-start;
}

.text-link--sm {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom-color: var(--rule);
}
.text-link--sm:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ---------- Sections ---------- */

.section {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, var(--measure));
  gap: 2rem 5rem;
  padding: 7rem var(--gutter);
  border-top: 1px solid var(--rule);
}

.section-head {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.section-head h2 { color: var(--ink-faint); }

.section-body > * + * { margin-top: 1.5rem; }

.section-body p { color: var(--ink-dim); }
.section-body .lede {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
}

/* ---------- Projects ---------- */

.project + .project {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--rule);
}

.project-status {
  color: var(--ink-faint) !important;
  margin-bottom: 1.2rem;
}

.project-title {
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.project-title a:hover { color: var(--ink-dim); }
.project-title--dim { color: var(--ink-faint); font-style: italic; }

.project-meta {
  color: var(--ink-faint) !important;
  margin-bottom: 1.5rem;
}

.project-desc { max-width: var(--measure); margin-bottom: 2rem; }

/* ---------- Founder ---------- */

.founder-name {
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.founder-kr {
  display: block;
  font-family: var(--serif-kr);
  font-size: 0.45em;
  color: var(--ink-faint);
  margin-top: 0.5rem;
  letter-spacing: 0;
}
.founder-role {
  color: var(--ink-faint) !important;
  margin-bottom: 2rem;
}

/* ---------- Support ---------- */

.support-note {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-faint) !important;
  max-width: 34rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.4rem 2.4rem;
  margin-top: 2.6rem;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
}
.footer .dot { color: var(--rule); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 1.15rem; }
  .topbar { padding: 1.1rem var(--gutter); }
  .nav { gap: 1.2rem; }
  .nav > a { display: none; }
  .lang-toggle { margin-left: 0; }
  .brand-kr { display: none; }
  .hero { min-height: auto; padding: 5rem var(--gutter) 6rem; }
  .hero-title { margin-bottom: 2rem; }
  .section {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 4.5rem var(--gutter);
  }
  .section-head { position: static; }
  .footer { gap: 0.4rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
