:root {
  --bg: #f6f3ee;
  --paper: #ffffff;
  --ink: #171717;
  --soft-ink: #5c5c5c;
  --line: #d9d3c9;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --rose: #b45367;
  --gold: #c58a22;
  --shadow: 0 24px 80px rgba(23, 23, 23, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(246, 243, 238, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  color: var(--soft-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--accent);
}

.section {
  min-height: 100vh;
  padding: clamp(80px, 11vw, 136px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding-top: clamp(56px, 7vw, 92px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 26px;
  font-size: clamp(4.25rem, 11vw, 9.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: clamp(1.18rem, 2vw, 1.58rem);
  line-height: 1.12;
}

.lead {
  max-width: 660px;
  color: var(--soft-ink);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.resume-preview {
  margin: 0;
}

.resume-preview img {
  display: block;
  width: min(100%, 430px);
  margin-left: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.resume-preview figcaption {
  margin-top: 12px;
  color: var(--soft-ink);
  font-size: 0.86rem;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(34px, 8vw, 104px);
}

.muted {
  background: #e8eee9;
}

.split .section-heading {
  position: sticky;
  top: 106px;
  align-self: start;
}

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.year,
.education-card span {
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 800;
}

.meta {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-item p:not(.meta),
.education-card p {
  color: var(--soft-ink);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.education-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(255, 255, 255, 0.46);
}

.education-card h3 {
  margin-top: 44px;
}

.tag-groups {
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  gap: 18px;
  margin-top: 54px;
}

.tag-group {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tags li {
  padding: 8px 12px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
  background: var(--paper);
  color: var(--soft-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(56px, 8vw, 86px) clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: white;
}

.footer .eyebrow {
  color: #7dd3ca;
}

.footer h2 {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4.8rem);
}

address {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  text-align: right;
}

address a:hover {
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
  }

  .hero,
  .split,
  .footer {
    grid-template-columns: 1fr;
  }

  .section {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6.4rem);
  }

  .resume-preview img {
    width: min(100%, 360px);
    margin-left: 0;
  }

  .resume-preview figcaption,
  address {
    text-align: left;
  }

  .section-heading {
    position: static;
  }

  .education-grid,
  .tag-groups {
    grid-template-columns: 1fr;
  }

  .education-card {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: relative;
  }

  nav {
    gap: 10px 16px;
    font-size: 0.84rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
