@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #2e2820;
  --muted: #7a6f65;
  --accent: #b87352;
  --accent-light: #f0e6df;
  --border: #e8e2da;
  --max-w: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

/* ── Page wrapper ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-body {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px dashed #d4a98c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .hero-body {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .photo-placeholder {
    width: 100px;
    height: 100px;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.85rem;
  justify-content: center;
}

.social-links a {
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* ── Section titles ── */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

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

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

/* ── Timeline / Experience ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.15rem;
  letter-spacing: 0.02em;
}

.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline-content .subtitle {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.68;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.role {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.role-title {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.role-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.role-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.68;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.role-desc:last-child {
  margin-bottom: 0;
}

/* ── Education ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.edu-card .degree {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-card .school {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.edu-card .year {
  font-size: 0.8rem;
  color: var(--muted);
}

.tools-block {
  margin-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tools-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.tools-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.tools-list {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Portfolio cards ── */
.page-header {
  padding: 3.5rem 0 1.5rem;
  border-bottom: none;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portfolio-header-full {
  padding: 3.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-blurb {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

.nda-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.nda-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.nda-note a:hover {
  color: var(--text);
}

.page-header .section-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.page-header p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.projects {
  padding: 3.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}

.project-card:hover {
  box-shadow: 0 6px 30px rgba(184, 115, 82, 0.1);
  border-color: #d4a98c;
}

.card-image-wrap {
  position: relative;
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--accent-light);
  object-fit: cover;
  display: block;
}

.card-image--white {
  background: #ffffff;
  object-fit: contain;
  padding: 1rem;
}

.card-logo {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.project-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.project-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* ── Hobbies ── */
.hobbies-list {
  padding: 3.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hobby-entry {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.hobby-entry:first-child {
  border-top: 1px solid var(--border);
}

.hobby-entry-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hobby-icon-sm {
  font-size: 1.25rem;
}

.hobby-entry h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.hobby-entry p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 580px;
}

.get-in-touch {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.get-in-touch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.get-in-touch a:hover {
  color: var(--text);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

.footer-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

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

  .tools-row {
    flex-direction: column;
    gap: 0.2rem;
  }
}
