:root {
  --ink: #111111;
  --bg: #ffffff;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}
.brand { font-weight: 700; letter-spacing: 0.01em; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.hero { padding: 72px 0 40px; }
.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero-sub {
  font-weight: 400;
  color: var(--muted);
  font-size: clamp(22px, 3.4vw, 40px);
}
.hero-intro {
  margin-top: 28px;
  max-width: 560px;
  font-size: 17px;
  color: #333;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stat-num { display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

h2 {
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.01em;
  margin: 72px 0 6px;
}
.section-note { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: zoom-in;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card-thumb {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  object-position: top center;
  background: #f5f5f5;
  display: block;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-meta { font-size: 12.5px; color: var(--muted); }
.card-tag {
  align-self: flex-start;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: #f0f0f0;
  border-radius: 999px;
  padding: 2px 9px;
  margin-top: 6px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.filter-btn {
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.filter-btn:hover { background: #f0f0f0; }
.filter-btn.active { background: var(--ink); color: #fff; }

.load-more-wrap { text-align: center; margin: 34px 0; }
.btn {
  font: inherit;
  font-size: 14px;
  padding: 10px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }

.about-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 24px 0 60px;
  flex-wrap: wrap;
}
.portrait {
  border-radius: 50%;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.about-text { flex: 1 1 380px; max-width: 640px; }
.facts { border-collapse: collapse; font-size: 15px; }
.facts th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  padding: 6px 28px 6px 0;
  white-space: nowrap;
}
.facts td { padding: 6px 0; font-weight: 500; }
.about-bio { margin-top: 22px; color: #333; font-size: 15.5px; }

footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 26px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.9);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  background: #fff;
  border-radius: 12px;
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 16px;
}
.lightbox-inner img { width: 100%; height: auto; border-radius: 6px; }
.lightbox-meta { padding: 14px 4px 6px; }
.lightbox-meta h3 { font-size: 18px; line-height: 1.3; }
.lightbox-meta p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.lightbox-meta a { display: inline-block; margin-top: 10px; font-size: 13.5px; text-decoration: underline; }
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 20px;
  font-size: 34px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 60;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 44px; }
}
