:root {
  --bg: #0c1220;
  --card: #0f172a;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --accent: #7dd3fc;
  --border: #1f2937;
  --radius: 12px;
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08), transparent 28%),
              radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.12), transparent 26%),
              var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(12, 18, 32, 0.9);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}

.nav a[aria-current='page'] {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
}

main {
  padding: 32px 24px 64px;
  max-width: 1080px;
  margin: 0 auto;
}

main > section + section {
  margin-top: 32px;
}

.hero {
  padding: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
  border: 1px solid #1b2536;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: center;
}

.portrait-wrap {
  display: flex;
  justify-content: flex-end;
}

.portrait-wrap img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid #1f2937;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero.small {
  padding: 24px;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.lede {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #0b1220;
  box-shadow: 0 10px 30px rgba(125, 211, 252, 0.28);
}

.button.primary:hover {
  box-shadow: 0 14px 34px rgba(125, 211, 252, 0.35);
}

.button.ghost {
  border: 1px solid #1f2a3d;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.grid {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.two-column {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.body {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.list {
  padding-left: 18px;
  color: var(--muted);
  margin: 0;
  display: grid;
  gap: 8px;
}

.stack {
  display: grid;
  gap: 18px;
}

.stack h3 {
  margin: 0 0 6px;
}

.link {
  font-weight: 600;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.thumb-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-grid figure {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  display: block;
  height: 220px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-weight: 600;
}

.page-narrow {
  max-width: 980px;
}

.site-footer {
  padding: 24px;
  border-top: 1px solid #1f2937;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  background: #0b1220;
}

.footer-links {
  display: flex;
  gap: 14px;
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-header {
    position: static;
  }

  .thumb-grid img {
    height: 140px;
  }

  .gallery-grid img {
    height: 180px;
  }

  .portrait-wrap {
    justify-content: flex-start;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.lightbox img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid #1f2937;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.lightbox.show {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 24px;
  cursor: pointer;
}

.gallery-grid img {
  cursor: zoom-in;
}
