/* ── Reset & Base ────────────────────────────────────── */

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

:root {
  --bg: #0c0c0d;
  --bg-raised: #151517;
  --bg-hover: #1c1c1f;
  --text: #d4d1cc;
  --text-muted: #78756f;
  --accent: #c9835a;
  --accent-dim: #c9835a33;
  --border: #252528;
  --radius: 8px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
  --max-w: 1080px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 60px;
  background: rgba(12, 12, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 5rem;
}

.hero-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 400px;
}

/* ── Sections ────────────────────────────────────────── */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Artifact Grid ───────────────────────────────────── */

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.artifact-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  transition: border-color var(--transition), transform var(--transition);
}

.artifact-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}

.artifact-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-raised) 100%);
  border-bottom: 1px solid var(--border);
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.artifact-card:hover .artifact-preview {
  color: var(--accent);
}

.artifact-icon {
  font-family: var(--font-mono);
}

.artifact-info {
  padding: 1.1rem 1.25rem 1.25rem;
}

.artifact-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.artifact-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.artifact-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.15em 0.6em;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* ── Gallery Grid ────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: hsl(var(--hue, 0) 12% 14%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: hsl(var(--hue, 0) 20% 30%);
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}

.gallery-item:hover .gallery-placeholder {
  border-color: hsl(var(--hue, 0) 20% 30%);
  transform: scale(1.02);
}

.gallery-item figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 0.15rem;
}

/* ── About ───────────────────────────────────────────── */

.section-about {
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 560px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.about-contact {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem !important;
}

.about-contact a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.about-contact a:hover {
  border-bottom-color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Mobile ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    min-height: 55vh;
    padding-bottom: 3rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .section {
    padding: 3.5rem clamp(1.25rem, 4vw, 3rem);
  }

  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
