/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg:          #fafafa;
  --bg-warm:     #f5f0eb;
  --bg-cool:     #edf0f3;
  --accent:      #8fa9b8;
  --accent-warm: #c49a6c;
  --text:        #1c1c1c;
  --text-light:  #6b7a85;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(28, 28, 28, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 60px;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.15s;
}

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  align-self: flex-start;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-warm {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

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

/* ── Section Shared ──────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
  gap: 5rem;
  align-items: center;
}

.hero-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(28, 28, 28, 0.13);
  justify-self: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 36ch;
}

/* ── About ───────────────────────────────────────────────── */
#about {
  background: var(--bg-warm);
}

.about-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
}

/* ── Beliefs ─────────────────────────────────────────────── */
#beliefs {
  background: var(--text);
}

.beliefs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

#beliefs .section-label {
  color: var(--accent);
}

#beliefs .section-heading {
  color: var(--bg);
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.belief-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(250, 250, 250, 0.15);
  padding-top: 1.25rem;
}

.belief-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bg);
  line-height: 1.2;
}

.belief-body {
  font-size: 0.88rem;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.6;
}

/* ── Projects ────────────────────────────────────────────── */
#projects {
  background: var(--bg);
}

.projects-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.projects-inner .section-label {
  margin-bottom: 0.75rem;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  width: 100%;
}

.project-card {
  border: 1.5px solid rgba(28, 28, 28, 0.10);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-card--upcoming {
  border-style: dashed;
  opacity: 0.6;
}

.project-card--wide {
  grid-column: 1 / -1;
}

.project-metrics {
  display: flex;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.project-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg-cool);
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  background: var(--bg-cool);
  color: var(--accent);
  align-self: flex-start;
}

.badge-shipped {
  background: rgba(196, 154, 108, 0.12);
  color: var(--accent-warm);
}

.project-company {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-light);
  flex: 1;
}

.project-link {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-warm);
  transition: color 0.15s;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.project-link:hover {
  color: var(--text);
}

/* ── Contact ─────────────────────────────────────────────── */
#contact {
  background: var(--bg-cool);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.contact-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-light);
}

.contact-list a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.15s;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ── Resume Page ─────────────────────────────────────────── */
.resume-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-container h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text);
}

.resume-container iframe {
  width: 100%;
  height: 80vh;
  border: none;
  box-shadow: 0 4px 28px rgba(28, 28, 28, 0.09);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  #hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 3.5rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-photo {
    max-width: 300px;
    justify-self: center;
  }

  .about-inner {
    padding: 4.5rem 1.5rem;
  }

  .project-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beliefs-inner,
  .projects-inner,
  .contact-inner {
    padding: 4.5rem 1.5rem;
  }

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

  .resume-container {
    padding: 3rem 1.5rem 5rem;
  }
}

@media (max-width: 600px) {
  .project-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-name {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.85rem;
  }

  .hero-headline {
    font-size: 1.6rem;
  }

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

  .hero-desc {
    max-width: unset;
  }
}
