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

:root {
  --ink: #1a1a18;
  --paper: #f2f7f5;
  --muted: #00473e;
  --rule: #e0ddd7;
  --accent: #fa5246;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.nav-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}

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

/* ── HERO ── */
.hero {
  padding: 9rem 3rem 5rem;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.1s;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--muted);
}

.hero-bio {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── DIVIDER ── */
.divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 3rem;
  border: none;
  border-top: 1px solid var(--rule);
}

/* ── SECTION ── */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 3rem;
}

/* ── PROJECT CARDS ── */
.projects {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.project.visible {
  opacity: 1;
  transform: translateY(0);
}

.project:nth-child(even) .project-image { order: 2; }
.project:nth-child(even) .project-content { order: 1; }

/* image placeholder */
.project-image {
  aspect-ratio: 4/3;
  background: var(--rule);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-text svg {
  opacity: 0.4;
  margin-bottom: 0.25rem;
}

/* content */
.project a:link {
  color: var(--ink);
  background-color: transparent;
  text-decoration: underline;
}

.project a:visited {
  color: var(--muted);
  background-color: transparent;
  text-decoration: none;
}

.project a:hover {
  color: var(--accent);
  background-color: transparent;
  transition: all 0.2s ease;
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.project-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.project-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.project-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pill {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink);
}

.project-status {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.complete { background: #6aaa64; animation: none; }

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 3rem;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-strip .section-label { color: #666; }

.about-strip h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-strip p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.75;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skill-group h4 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.skill-group p {
  font-size: 0.88rem;
  color: #bbb;
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
}

footer p {
  font-size: 0.8rem;
  color: var(--muted);
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
}

footer a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  nav { padding: 1rem 1.5rem; }
  .hero, section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .project { grid-template-columns: 1fr; gap: 2rem; }
  .project:nth-child(even) .project-image { order: 0; }
  .project:nth-child(even) .project-content { order: 0; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-strip { padding-left: 1.5rem; padding-right: 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}