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

:root {
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --border: #e5e5e5;
  --accent: #1a1a1a;
  --accent-hover: #374151;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

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

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ──────────────────────────────────── */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Work Section ──────────────────────────── */
.work-section {
  padding: 40px 0 100px;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

/* ── Project Grid ──────────────────────────── */
.project-grid {
  display: grid;
  gap: 12px;
}

/* ── Project Card (horizontal row) ─────────── */
.project-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-color);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  overflow: hidden;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: transparent;
  border-left: 3px solid var(--accent-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ── Logo ──────────────────────────────────── */
.project-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  width: 220px;
  border-right: 1px solid var(--border);
}

.project-logo img {
  max-height: 120px;
  max-width: none;
  width: auto;
  object-fit: contain;
}

/* ── Meta (text content) ───────────────────── */
.project-meta {
  flex: 1;
  padding: 22px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.project-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  transition: opacity 0.2s ease;
}

.project-card:hover .project-link {
  opacity: 0.8;
}

/* ── Footer ────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left p:first-child {
  font-size: 16px;
  font-weight: 600;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 2px;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--text);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .project-card {
    border-left: 2px solid var(--accent-color);
  }

  .project-logo {
    width: 120px;
    padding: 16px;
  }

  .project-logo img {
    max-height: 80px;
    max-width: none;
  }

  .project-meta {
    padding: 16px 20px 20px;
  }

  .project-title {
    font-size: 17px;
  }

  .project-desc {
    font-size: 13px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Animations ────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .project-card {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.4s ease forwards;
  }

  .project-card:nth-child(1) { animation-delay: 0.1s; }
  .project-card:nth-child(2) { animation-delay: 0.15s; }
  .project-card:nth-child(3) { animation-delay: 0.2s; }
  .project-card:nth-child(4) { animation-delay: 0.25s; }
  .project-card:nth-child(5) { animation-delay: 0.3s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
