:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #f3f5f7;
  --ink: #1f2933;
  --muted: #607080;
  --line: #e2e7ec;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #d9f2ee;
  --rust: #ad4f2f;
  --shadow: 0 20px 60px rgba(31, 41, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 40px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 72px 0 64px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.about-title {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06);
}

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

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.profile-panel {
  overflow: hidden;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.avatar-frame {
  padding: 24px 24px 0;
}

.avatar-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.profile-name {
  padding: 18px 24px 20px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
}

.profile-panel dl {
  margin: 0;
}

.profile-panel dl > div {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-panel dl > div:last-child {
  border-bottom: 0;
}

.profile-panel dt {
  margin-bottom: 6px;
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel dd {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
  border-top: 1px solid rgba(31, 41, 51, 0.1);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.credential-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.credential-panel h2 {
  margin-bottom: 24px;
}

.timeline,
.interest-grid {
  display: grid;
  gap: 16px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.interest-list li {
  padding: 12px 16px;
  border: 1px solid rgba(31, 41, 51, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 250, 252, 0.78);
  font-weight: 700;
}

.timeline-item,
.interest-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.timeline-item p,
.interest-grid p,
.project-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline-item a {
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
}

.projects-section {
  padding-bottom: 96px;
}

.project-group {
  margin-top: 36px;
}

.project-group:first-of-type {
  margin-top: 0;
}

.project-group-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card.muted {
  box-shadow: none;
}

.project-media {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 24px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}

.project-media img {
  width: 100%;
  height: auto;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 41, 51, 0.14);
}

.project-media.placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--muted);
  font-weight: 800;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.project-type {
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 110px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .credentials-grid,
  .project-card,
  .section-body {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .timeline-item,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item a {
    white-space: normal;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .project-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .project-content {
    padding: 24px;
  }
}
