/* ============ JUNGLEE — brand site ============ */
:root {
  --bg: #0b0b0f;
  --bg-soft: #101017;
  --panel: #14141c;
  --line: rgba(201, 162, 75, 0.22);
  --line-soft: rgba(245, 239, 228, 0.08);
  --gold: #c9a24b;
  --gold-bright: #e8c97a;
  --ivory: #f5efe4;
  --ivory-dim: rgba(245, 239, 228, 0.62);
  --ivory-faint: rgba(245, 239, 228, 0.38);
  --serif: "Noto Serif KR", "Cormorant Garamond", serif;
  --serif-en: "Cormorant Garamond", "Noto Serif KR", serif;
  --sans: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(201, 162, 75, 0.35); color: var(--ivory); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mark {
  font-family: var(--serif); font-weight: 600; font-size: 20px;
  color: var(--ivory); letter-spacing: 0.35em; padding-left: 0.35em;
}
.nav-mark em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.14em; color: var(--ivory-dim);
  text-transform: uppercase; transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-bright); }
@media (max-width: 640px) { .nav-links { gap: 20px; } .nav-links a { font-size: 11px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 0%, var(--bg) 92%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 120px 24px 80px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.5em; padding-left: 0.5em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 34px;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(88px, 17vw, 190px); line-height: 1.05;
  letter-spacing: 0.12em; padding-left: 0.12em;
  background: linear-gradient(160deg, #fdf8ec 20%, var(--gold-bright) 55%, var(--gold) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub-en {
  font-family: var(--serif-en); font-size: clamp(15px, 2.4vw, 21px);
  letter-spacing: 0.62em; padding-left: 0.62em; color: var(--ivory-dim);
  margin-top: 18px; text-transform: uppercase;
}
.hero-tagline {
  margin: 44px auto 0; max-width: 560px;
  font-size: clamp(15px, 2vw, 17.5px); color: var(--ivory-dim); line-height: 2.05;
  word-break: keep-all;
}
.hero-tagline strong { color: var(--ivory); font-weight: 500; }
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--ivory-faint); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .35; transform: translate(-50%,0);} 50% { opacity: .9; transform: translate(-50%,7px);} }

/* ---------- shared section ---------- */
.section { padding: 130px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: 0.42em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); opacity: 0.7; }
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 44px); line-height: 1.35;
  letter-spacing: 0.02em; word-break: keep-all; margin-bottom: 28px;
}
.section-title em { font-style: normal; color: var(--gold-bright); }
.lead {
  font-size: clamp(15.5px, 1.9vw, 17.5px); color: var(--ivory-dim);
  line-height: 2.1; max-width: 640px; word-break: keep-all;
}
.lead strong { color: var(--ivory); font-weight: 500; }
.lead + .lead { margin-top: 22px; }

/* ---------- meaning (name) ---------- */
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 70px; }
@media (max-width: 800px) { .name-grid { grid-template-columns: 1fr; gap: 44px; } }
.hanja-card {
  border: 1px solid var(--line); background: linear-gradient(170deg, var(--panel), var(--bg-soft));
  padding: 58px 40px; text-align: center; position: relative;
}
.hanja-card::before, .hanja-card::after {
  content: "✦"; position: absolute; color: var(--gold); font-size: 11px; opacity: .8;
}
.hanja-card::before { top: 14px; left: 16px; }
.hanja-card::after { bottom: 14px; right: 16px; }
.hanja-pair {
  display: flex; align-items: baseline; justify-content: center; gap: 26px;
  font-family: var(--serif); color: var(--ivory);
}
.hanja-pair .char { font-size: 84px; font-weight: 600; line-height: 1; }
.hanja-pair .plus { font-size: 26px; color: var(--gold); }
.hanja-label { display: flex; justify-content: center; gap: 92px; margin-top: 18px; }
.hanja-label span { font-size: 13px; color: var(--ivory-faint); letter-spacing: 0.08em; }
.hanja-result {
  margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 30px; letter-spacing: 0.5em; padding-left: 0.5em; color: var(--gold-bright);
}
.hanja-result small { display: block; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.22em; color: var(--ivory-faint); margin-top: 10px; }
@media (max-width: 480px) {
  .hanja-card { padding-left: 24px; padding-right: 24px; }
  .hanja-result small { font-size: 11px; letter-spacing: 0.12em; }
}

/* ---------- story ---------- */
.story-quote {
  font-family: var(--serif); font-size: clamp(21px, 3vw, 28px); line-height: 1.9;
  color: var(--ivory); word-break: keep-all; max-width: 760px; margin: 60px 0 0;
  padding-left: 34px; border-left: 2px solid var(--gold);
}
.story-quote em { font-style: normal; color: var(--gold-bright); }

/* ---------- projects ---------- */
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.proj-count { font-family: var(--serif-en); font-size: 15px; color: var(--ivory-faint); letter-spacing: 0.2em; }
.proj-list { margin-top: 64px; border-top: 1px solid var(--line-soft); }
.proj-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 34px; align-items: center;
  padding: 44px 10px; border-bottom: 1px solid var(--line-soft);
  transition: background 0.35s ease, padding 0.35s ease; position: relative;
}
a.proj-row:hover { background: rgba(201, 162, 75, 0.045); padding-left: 26px; }
.proj-num { font-family: var(--serif-en); font-size: 15px; letter-spacing: 0.18em; color: var(--gold); }
.proj-name {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); font-weight: 600; letter-spacing: 0.04em;
}
.proj-desc { font-size: 14px; color: var(--ivory-dim); margin-top: 8px; word-break: keep-all; }
.proj-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.proj-tags span {
  font-size: 11px; letter-spacing: 0.12em; color: var(--gold); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 99px;
}
.proj-arrow {
  font-family: var(--serif-en); font-size: 22px; color: var(--ivory-faint);
  transition: color .3s, transform .3s;
}
a.proj-row:hover .proj-arrow { color: var(--gold-bright); transform: translateX(6px); }
.proj-row.upcoming { opacity: 0.5; }
.proj-row.upcoming .proj-name { color: var(--ivory-faint); }
.proj-row.has-thumb { grid-template-columns: 92px 1fr 220px auto; }
.proj-thumb {
  display: block; width: 220px; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.proj-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92); transition: transform 0.6s cubic-bezier(.2,.65,.3,1);
}
a.proj-row:hover .proj-thumb img { transform: scale(1.05); }
@media (max-width: 700px) {
  .proj-row, .proj-row.has-thumb { grid-template-columns: 1fr auto; }
  .proj-num { grid-column: 1 / -1; }
  .proj-thumb { grid-column: 1 / -1; width: 100%; }
}

/* ---------- people ---------- */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 70px; }
@media (max-width: 800px) { .people-grid { grid-template-columns: 1fr; } }
.person {
  border: 1px solid var(--line-soft); background: linear-gradient(175deg, var(--panel), var(--bg-soft));
  padding: 52px 44px; position: relative; overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.person:hover { border-color: var(--line); transform: translateY(-4px); }
.person::before {
  content: ""; position: absolute; top: 0; left: 44px; right: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0;
  transition: opacity .4s;
}
.person:hover::before { opacity: 1; }
.person-photo {
  margin: -52px -44px 38px; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.person-photo img {
  width: 100%; height: 320px; object-fit: cover; object-position: 50% 22%;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 0.7s cubic-bezier(.2,.65,.3,1), filter 0.7s;
}
.person:hover .person-photo img { transform: scale(1.035); filter: saturate(1) contrast(1.02); }
.person-role { font-size: 11.5px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.person-name { font-family: var(--serif); font-size: 36px; font-weight: 600; margin-top: 16px; letter-spacing: 0.06em; }
.person-name small { display: block; font-family: var(--serif-en); font-size: 14px; letter-spacing: 0.3em; color: var(--ivory-faint); margin-top: 8px; text-transform: uppercase; }
.person-slogan {
  margin-top: 26px; font-family: var(--serif); font-size: 16.5px; line-height: 1.95;
  color: var(--gold-bright); word-break: keep-all; min-height: 64px;
}
.person-bio { margin-top: 22px; font-size: 14.5px; color: var(--ivory-dim); line-height: 2; word-break: keep-all; }
.person-links { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; gap: 22px; flex-wrap: wrap; }
.person-links a { font-size: 13px; letter-spacing: 0.06em; color: var(--ivory-dim); transition: color .25s; }
.person-links a:hover { color: var(--gold-bright); }
.person-links a::before { content: "— "; color: var(--gold); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--gold); opacity: .7; }
.contact-mail {
  display: inline-block; margin-top: 20px;
  font-family: var(--serif-en); font-size: clamp(24px, 4.4vw, 42px); letter-spacing: 0.06em;
  color: var(--ivory); border-bottom: 1px solid var(--line);
  padding-bottom: 10px; transition: color .3s, border-color .3s;
}
.contact-mail:hover { color: var(--gold-bright); border-color: var(--gold); }
.contact-note { margin-top: 26px; font-size: 14px; color: var(--ivory-faint); }

/* ---------- company band ---------- */
.company-band { text-align: center; }
.company-logo {
  width: min(340px, 70vw); margin: 0 auto;
  mix-blend-mode: screen; /* melts the logo's black background into the page */
}
.company-caption {
  margin-top: 8px; font-size: 14.5px; color: var(--ivory-faint); line-height: 2.1; word-break: keep-all;
}
.company-caption strong { color: var(--ivory-dim); font-weight: 500; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 64px 0 56px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 46px; width: auto; opacity: 0.9; }
.footer-brand-text { font-size: 12.5px; color: var(--ivory-faint); line-height: 1.8; letter-spacing: 0.04em; }
.footer-brand-text b { color: var(--ivory-dim); font-weight: 500; }
.footer-meta { font-size: 12px; color: var(--ivory-faint); letter-spacing: 0.08em; text-align: right; line-height: 2; }
.footer-meta a:hover { color: var(--gold-bright); }
@media (max-width: 640px) { .footer-meta { text-align: left; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.65,.3,1), transform 0.9s cubic-bezier(.2,.65,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ---------- project detail pages ---------- */
.detail-hero { padding: 210px 0 90px; position: relative; overflow: hidden; }
.detail-hero .eyebrow { margin-bottom: 30px; }
.detail-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 8vw, 86px);
  letter-spacing: 0.06em; line-height: 1.2;
  background: linear-gradient(160deg, #fdf8ec 25%, var(--gold-bright) 60%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.detail-sub { margin-top: 24px; font-size: clamp(15px, 2vw, 17.5px); color: var(--ivory-dim); max-width: 620px; line-height: 2.05; word-break: keep-all; }
.detail-meta {
  margin-top: 54px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
}
.detail-meta div { background: var(--bg-soft); padding: 22px 24px; }
.detail-meta dt { font-size: 11px; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; }
.detail-meta dd { margin-top: 10px; font-size: 14.5px; color: var(--ivory); word-break: keep-all; }
.detail-visual { padding: 20px 0 0; }
.detail-visual figure { position: relative; border: 1px solid var(--line-soft); overflow: hidden; }
.detail-visual img { width: 100%; height: auto; }
.detail-visual figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,15,0.28) 0%, transparent 30%, rgba(11,11,15,0.42) 100%);
}
.detail-visual figcaption {
  margin-top: 16px; font-size: 12.5px; letter-spacing: 0.14em; color: var(--ivory-faint);
  text-transform: uppercase;
}
.detail-visual figcaption b { color: var(--gold); font-weight: 500; }
.detail-body { padding: 90px 0 40px; }
.detail-body .block { max-width: 720px; margin: 0 auto 78px; }
.block h2 {
  font-family: var(--serif); font-size: clamp(23px, 3vw, 30px); font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.03em; word-break: keep-all;
}
.block h2::before { content: "✦"; color: var(--gold); font-size: 14px; margin-right: 14px; }
.block p { color: var(--ivory-dim); line-height: 2.1; word-break: keep-all; font-size: 15.5px; }
.block p + p { margin-top: 18px; }
.block p strong { color: var(--ivory); font-weight: 500; }
.feature-list { margin-top: 30px; display: grid; gap: 14px; }
.feature-list li {
  list-style: none; border: 1px solid var(--line-soft); background: var(--bg-soft);
  padding: 22px 26px; font-size: 14.5px; color: var(--ivory-dim); line-height: 1.95; word-break: keep-all;
}
.feature-list li b { display: block; color: var(--gold-bright); font-weight: 500; font-size: 15px; margin-bottom: 6px; letter-spacing: 0.02em; }
.detail-cta { text-align: center; padding: 30px 0 110px; }
.btn-gold {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold-bright);
  padding: 16px 46px; font-size: 13px; letter-spacing: 0.3em; padding-left: calc(46px + 0.3em);
  text-transform: uppercase; transition: background .3s, color .3s;
}
.btn-gold:hover { background: var(--gold); color: #14100a; }
.back-link { font-size: 13px; letter-spacing: 0.18em; color: var(--ivory-faint); text-transform: uppercase; transition: color .3s; }
.back-link:hover { color: var(--gold-bright); }
