/* ============================================
   MMGG (맴맴곳곳) — Global Styles
   미니멀 갤러리 스타일 · Inter + Pretendard
   ============================================ */

:root {
  --text-main: #1a1a1a;
  --text-sub: #666;
  --text-weak: #999;
  --text-faint: #bbb;
  --bg: #ffffff;
  --bg-sub: #f9f9f9;
  --border: #e8e8e8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: opacity .3s; }
a:hover { opacity: .6; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
@media (min-width: 768px) { .header-inner { height: 72px; } }

.logo img { height: 28px; width: auto; }
@media (min-width: 768px) { .logo img { height: 34px; } }

.nav-desktop { display: none; gap: 36px; align-items: center; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: 14px; color: var(--text-sub); letter-spacing: .02em;
}
.nav-desktop a.active { color: var(--text-main); }
.nav-desktop a.nav-cta { color: var(--text-main); font-weight: 500; }

.menu-btn {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-btn span { width: 22px; height: 1.5px; background: var(--text-main); transition: .3s; }
@media (min-width: 768px) { .menu-btn { display: none; } }

.nav-mobile {
  display: none; flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 16px 0 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 0; font-size: 15px; color: var(--text-sub); }
@media (min-width: 768px) { .nav-mobile { display: none !important; } }

/* ---------- Section labels ---------- */
.section-label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-weak); font-weight: 500;
}
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-weak); font-weight: 500;
}

/* ---------- Page title ---------- */
.page-head { padding: 64px 0 40px; }
@media (min-width: 768px) { .page-head { padding: 96px 0 56px; } }
.page-head h1 { font-size: 32px; font-weight: 300; letter-spacing: -.01em; }
@media (min-width: 768px) { .page-head h1 { font-size: 44px; } }
.page-head .lead { margin-top: 20px; color: var(--text-sub); max-width: 560px; font-size: 15px; }

/* ---------- Home: Latest ---------- */
.latest { padding: 56px 0 24px; }
.latest-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.latest-head h1 { font-size: 28px; font-weight: 300; }
.latest-head a { font-size: 13px; color: var(--text-weak); }

.latest-item { padding: 48px 0; border-bottom: 1px solid var(--border); }
.latest-meta { display: flex; gap: 20px; margin-bottom: 14px; }
.latest-item h2 { font-size: 24px; font-weight: 400; margin-bottom: 12px; }
@media (min-width: 768px) { .latest-item h2 { font-size: 28px; } }
.latest-item p { color: var(--text-sub); font-size: 14.5px; max-width: 680px; margin-bottom: 28px; }
.latest-media { display: grid; gap: 24px; }
@media (min-width: 768px) { .latest-media { grid-template-columns: 1fr 1fr; } }
.latest-media img, .latest-media .video-wrap { width: 100%; }
.latest-item img { aspect-ratio: 16/10; object-fit: cover; }
.video-wrap { position: relative; aspect-ratio: 16/9; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Project grid ---------- */
.feed { padding: 24px 0 80px; }
.grid-2 { display: grid; gap: 40px 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card { display: block; }
.card .thumb { overflow: hidden; background: var(--bg-sub); }
.card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .7s ease;
}
.card:hover img { transform: scale(1.03); }
.card.large { grid-column: 1 / -1; }
.card.large img { aspect-ratio: 16/9; }
.card-info { padding-top: 14px; }
.card-info .meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-weak); letter-spacing: .1em; text-transform: uppercase; }
.card-info h3 { font-size: 17px; font-weight: 400; margin-top: 6px; }
.card-info .sub { font-size: 13px; color: var(--text-weak); margin-top: 2px; }

/* ---------- Filter ---------- */
.filter { display: flex; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; }
.filter button {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); font-family: inherit; transition: color .3s;
}
.filter button.active, .filter button:hover { color: var(--text-main); }

/* ---------- Project detail ---------- */
.detail-head { padding: 72px 0 40px; }
.detail-head h1 { font-size: 30px; font-weight: 300; }
@media (min-width: 768px) { .detail-head h1 { font-size: 40px; } }
.detail-head .sub { color: var(--text-weak); margin-top: 8px; font-size: 15px; }

.detail-meta {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.detail-meta div span { display: block; }
.detail-meta .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-weak); margin-bottom: 4px; }
.detail-meta .v { font-size: 14px; }

.detail-desc { max-width: 720px; color: var(--text-sub); font-size: 15px; margin-bottom: 56px; }

.detail-images { display: grid; gap: 24px; padding-bottom: 64px; }
.detail-images img { width: 100%; }

.detail-nav {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 32px 0 80px; border-top: 1px solid var(--border);
}
.detail-nav a { max-width: 45%; }
.detail-nav .dir { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-weak); display: block; margin-bottom: 6px; }
.detail-nav .name { font-size: 15px; }
.detail-nav .next { text-align: right; margin-left: auto; }

/* ---------- About ---------- */
.about-section { padding: 0 0 72px; }
.about-section h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-weak); font-weight: 500; margin-bottom: 28px; }
.about-intro p { font-size: 17px; font-weight: 300; line-height: 1.9; max-width: 720px; margin-bottom: 20px; }
.about-block { max-width: 720px; margin-bottom: 36px; }
.about-block h3 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.about-block p { color: var(--text-sub); font-size: 14.5px; }
.scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; max-width: 600px; }
@media (min-width: 768px) { .scope-list { grid-template-columns: 1fr 1fr 1fr; } }
.scope-list li { list-style: none; font-size: 14px; color: var(--text-sub); padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ---------- News ---------- */
.news-item { padding: 44px 0; border-bottom: 1px solid var(--border); max-width: 820px; }
.news-meta { display: flex; gap: 18px; margin-bottom: 12px; align-items: baseline; }
.news-meta .date { font-size: 13px; color: var(--text-weak); }
.news-item h2 { font-size: 21px; font-weight: 400; margin-bottom: 10px; }
.news-item > p { color: var(--text-sub); font-size: 14.5px; }
.news-points { margin-top: 24px; display: grid; gap: 18px; }
.news-points .point .num { font-size: 12px; color: var(--text-faint); letter-spacing: .1em; display: block; margin-bottom: 4px; }
.news-points .point p { color: var(--text-sub); font-size: 14px; }
.news-item .video-wrap { margin-top: 28px; max-width: 720px; }

/* ---------- Contact / Forms ---------- */
.contact-info { display: grid; gap: 28px; padding-bottom: 56px; max-width: 480px; }
.contact-info .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-weak); margin-bottom: 4px; }
.contact-info .v { font-size: 16px; }

.form { max-width: 640px; padding-bottom: 96px; }
.form-section-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-weak); margin: 40px 0 8px; font-weight: 500; }
.field { margin-top: 28px; }
.field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--border);
  padding: 10px 0; font-size: 15px; font-family: inherit; color: var(--text-main);
  background: transparent; border-radius: 0; outline: none; transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text-main); }
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: var(--text-faint); }

.btn {
  display: inline-block; margin-top: 40px;
  background: var(--text-main); color: #fff;
  border: none; padding: 14px 36px; font-size: 14px; letter-spacing: .04em;
  font-family: inherit; cursor: pointer; transition: opacity .3s;
}
.btn:hover { opacity: .8; }
.form-note { margin-top: 20px; font-size: 12.5px; color: var(--text-weak); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 48px; margin-top: 40px;
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-weak); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { font-size: 13px; color: var(--text-sub); padding: 3px 0; }
.site-footer a { color: var(--text-sub); }
