:root {
  --bg: #f3f3f3;
  --ink: #050505;
  --muted: #575757;
  --line: #b7b7b7;
  --gold: #eea900;
  --red: #ff3d2f;
  --cyan: #80d8d7;
  --panel: #ffffff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 38px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.brand-name {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-role {
  margin-left: 4px;
  font-size: 15px;
  color: #222;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  white-space: nowrap;
}

.hero {
  min-height: calc(100vh - 206px);
  display: grid;
  grid-template-columns: minmax(300px, 486px) minmax(320px, 520px);
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 70px 38px 120px;
}

.portrait-wrap {
  width: min(486px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #d9d9d9;
  box-shadow: var(--shadow);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(100%);
  transform: scale(1.12);
}

.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(76px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.25;
}

.intro p {
  max-width: 430px;
  margin: 0;
  color: #222;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.action-circle {
  width: 145px;
  height: 145px;
  border: 1px solid #1b1b1b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.action-circle:hover {
  transform: translateY(-4px);
  background: #fff;
  text-decoration: none;
}

.action-resume {
  background: var(--gold);
}

.action-projects {
  background: var(--red);
}

.action-contact {
  background: var(--cyan);
}

.section {
  border-top: 1px solid var(--line);
  padding: 64px 56px;
}

.section h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
}

.download-link {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}

.download-link:hover {
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: 54px;
}

.resume-aside {
  display: grid;
  align-content: start;
  gap: 28px;
}

.resume-aside h3,
.role h3,
.project h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.resume-aside p {
  margin: 0;
  color: var(--muted);
}

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

.tag-list li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.role {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.role-time {
  font-weight: 700;
}

.company {
  margin: 0 0 10px;
  color: var(--muted);
}

.role ul {
  margin: 0;
  padding-left: 19px;
}

.project-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project {
  min-height: 220px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project:nth-child(1) {
  border-top: 8px solid var(--gold);
}

.project:nth-child(2) {
  border-top: 8px solid var(--red);
}

.project:nth-child(3) {
  border-top: 8px solid var(--cyan);
}

.project p {
  margin: 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 56px;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr auto;
  gap: 28px;
  align-items: start;
}

.footer strong,
.footer a {
  display: block;
}

.footer strong {
  font-size: 20px;
  line-height: 1.2;
}

.copyright {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .brand {
    flex-wrap: wrap;
  }

  .brand-role {
    width: 100%;
    margin-left: 34px;
  }

  .top-nav {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 44px 24px 70px;
  }

  .portrait-wrap {
    max-width: 420px;
  }

  .intro p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .resume-layout,
  .role,
  .project-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 23px;
  }

  .hero-actions {
    gap: 10px;
  }

  .action-circle {
    width: 104px;
    height: 104px;
    font-size: 16px;
  }
}
