:root {
  color-scheme: dark;
  --bg: #090b0d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f6f2ea;
  --muted: rgba(246, 242, 234, 0.68);
  --subtle: rgba(246, 242, 234, 0.46);
  --accent: #74d3c5;
  --accent-dark: #1e6b65;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(9, 11, 13, 0.86), rgba(9, 11, 13, 0));
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 48px;
  padding: 170px clamp(20px, 6vw, 84px) 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 13, 0.96) 0%, rgba(9, 11, 13, 0.78) 44%, rgba(9, 11, 13, 0.48) 100%),
    linear-gradient(0deg, var(--bg), rgba(9, 11, 13, 0) 30%),
    url("./assets/hero-bg.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.meta {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 13vw, 164px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(9, 11, 13, 0.56);
  backdrop-filter: blur(20px);
}

.hero-panel dl,
.hero-panel dd {
  margin: 0;
}

.hero-panel div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:first-child {
  padding-top: 0;
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-panel dt {
  color: var(--subtle);
  font-size: 13px;
}

.hero-panel dd {
  color: var(--text);
  font-weight: 600;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0;
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.intro > p {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 26px);
}

.two-column {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.sticky {
  position: sticky;
  top: 112px;
}

.timeline,
.skill-groups {
  display: grid;
  gap: 18px;
}

.timeline-item,
.skill-groups article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-item {
  padding: 28px;
}

.timeline-item p:not(.meta),
.project-card p,
.skill-groups p {
  color: var(--muted);
}

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

.project-card {
  min-height: 300px;
  padding: 26px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(116, 211, 197, 0.45);
  background: var(--surface-strong);
}

.project-card span {
  display: block;
  margin-bottom: 96px;
  color: var(--accent);
  font-weight: 700;
}

.skill-groups article {
  padding: 26px 28px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: end;
  padding-bottom: 72px;
}

.contact h2 {
  max-width: 720px;
}

.contact-links {
  display: grid;
  gap: 14px;
  min-width: 240px;
}

.contact-links a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
}

.contact-links a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 32px clamp(20px, 6vw, 84px);
  color: var(--subtle);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    padding: 16px 20px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero,
  .intro,
  .two-column,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    width: 100%;
  }

  .sticky {
    position: static;
  }

  .section {
    padding: 76px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 230px;
  }

  .project-card span {
    margin-bottom: 56px;
  }

  .site-footer {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .nav {
    display: none;
  }

  h1 {
    font-size: 64px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
