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

:root {
  --black: #0F0F0F;
  --gray: #6B6B6B;
  --light-gray: #F5F5F5;
  --border: #E8E8E8;
  --white: #FFFFFF;
  --accent: #1A1A1A;
  --tag-bg: #F0F0F0;
  --tag-color: #444;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  max-width: 1400px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) { .container { padding: 0 1.25rem; } }
@media (max-width: 480px) { .container { padding: 0 1rem; } }

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

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

@media (max-width: 480px) {
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.85rem; }
}

/* ── Intro ── */
.intro {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 4rem;
  max-width: 760px;
}

.intro-tag {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.intro h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.intro h1 em {
  font-style: italic;
  /* color: var(--gray); */
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 2rem;
}

.intro-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.8; }

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s;
}

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

/* ── Works Header ── */
.works-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.works-header span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── Works Grid ── */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

/* ── Card ── */
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img { transform: scale(1.03); }

.card-info {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.card-info h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.card-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray);
}

/* ── About ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 6rem;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 4rem; }
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.about-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about-left p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 1rem;
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2.25rem;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.skill-group:last-child { border-bottom: none; }

.skill-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.skill-group span:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.875rem;
  color: var(--gray);
}

footer a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--black); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-tag  { animation: fadeUp 0.5s ease both; animation-delay: 0.1s; }
.intro h1   { animation: fadeUp 0.5s ease both; animation-delay: 0.2s; }
.intro p    { animation: fadeUp 0.5s ease both; animation-delay: 0.3s; }
.intro-links { animation: fadeUp 0.5s ease both; animation-delay: 0.4s; }
