:root {
  --bg: #070708;
  --surface: #131316;
  --surface2: #1c1c21;
  --text: #fcfcfc;
  --muted: #797b85;
  --muted2: #aeb0b6;
  --line: #2e2e37;
  --accent: #d85040;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  font-family: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
:root.light {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface2: #f0f0f2;
  --text: #0d0d0f;
  --muted: #62646c;
  --muted2: #797b85;
  --line: #e4e4e6;
  --accent: #d85040;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a {
  color: inherit;
  text-decoration: none;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(18px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 14px;
}
.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav nav a:hover {
  color: var(--text);
}
.theme-btn {
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted2);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
main {
  max-width: 1120px;
  margin: auto;
}
.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
}
.kicker,
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0 0 28px;
  max-width: 850px;
  font-weight: 800;
}
.hero h1 span {
  color: var(--accent);
}
.lead {
  font-size: 18px;
  color: var(--muted2);
  max-width: 680px;
  line-height: 1.7;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
  transition:
    opacity 0.15s,
    background 0.15s;
}
.btn:hover {
  opacity: 0.85;
}
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.secondary {
  background: var(--surface2);
}
.hero-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.hero-card h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 22px 0 6px;
  font-weight: 700;
}
.hero-card p {
  color: var(--muted);
  font-size: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chips span {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--muted);
  background: var(--surface2);
}
.section {
  padding: 100px 20px;
  border-top: 1px solid var(--line);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.two-col h2,
.contact h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0;
  font-weight: 800;
}
.two-col p,
.contact > p:not(.section-label) {
  color: var(--muted2);
  font-size: 16px;
  line-height: 1.75;
}
.timeline {
  border-left: 1px solid var(--line);
  margin-top: 45px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  padding: 0 0 52px 30px;
  position: relative;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.timeline-item.current:before {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}
.period {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 3px;
}
.timeline-item h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}
.role {
  margin: 3px 0 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.timeline-item p:last-child {
  margin: 0;
  color: var(--muted2);
  font-size: 15px;
  line-height: 1.7;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 45px;
}
.skill-grid div {
  background: var(--surface);
  padding: 26px;
}
.skill-grid h3 {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 700;
}
.skill-grid p {
  color: var(--muted2);
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.stats div {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stats strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--accent);
}
.stats span {
  color: var(--muted2);
  font-size: 13px;
  margin-top: 4px;
  display: block;
}
.contact {
  padding: 120px 20px;
  text-align: center;
}
.contact h2 {
  max-width: 750px;
  margin: 0 auto 20px;
}
.contact > p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted2);
  font-size: 16px;
  line-height: 1.75;
}
.contact .actions {
  justify-content: center;
}
.contact-detail {
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
  letter-spacing: 0.01em;
}
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}
.lead strong {
  color: var(--text);
  font-weight: 700;
}
@media (max-width: 800px) {
  .nav {
    padding: 12px 16px;
  }
  .nav nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 18px 70px;
  }
  .section {
    padding: 70px 18px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-left: 22px;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 46px;
  }
}
@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-card {
    padding: 24px;
  }
}
