:root {
  --bg: #0c0d10;
  --bg-soft: #15171c;
  --paper: #1b1e25;
  --ink: #f4efe6;
  --muted: #a8a196;
  --line: rgba(244, 239, 230, 0.12);
  --accent: #d6b27c;
  --accent-2: #7ea8a0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7vw;
  background: rgba(12, 13, 16, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

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

.hero,
.about,
.work,
.skills,
.contact {
  padding: 96px 7vw;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: var(--accent);
  color: #1a140c;
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 180px 28px 140px 28px;
  box-shadow: var(--shadow);
}

.hero-photo figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 28px;
  color: var(--muted);
}

.about-visual img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin-top: 48px;
}

.facts li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.facts strong {
  display: block;
  font-family: "Instrument Serif", serif;
  font-size: 40px;
  margin-bottom: 8px;
}

.project {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.project img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 24px;
}

.featured img {
  height: 100%;
  min-height: 360px;
}

.featured div,
.project-row .project {
  padding: 28px;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tag {
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project h3 {
  font-size: 32px;
  margin-bottom: 12px;
}

.project p,
.project ul {
  color: var(--muted);
}

.project ul {
  margin-top: 16px;
  padding-left: 18px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-grid article {
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #191c23, #121419);
  border: 1px solid var(--line);
}

.skill-grid h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.skill-grid p {
  color: var(--muted);
}

.contact {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.2), rgba(12, 13, 16, 0.92)),
    url("https://p26-volcsearch-sign.byteimg.com/tos-cn-i-xstd03g9pf/8734620c47b94da398e163d3d78983fc~tplv-obj.jpeg?lk3s=7acb411c&scene=volc_search&x-expires=1851300440&x-signature=snhd70SZdCtKfmSNRCKtIIY2muY%3D")
      center/cover;
}

.contact h2 {
  margin-bottom: 14px;
}

.contact p {
  color: var(--muted);
  margin-bottom: 28px;
}

.social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 7vw 40px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav {
    padding: 16px 6vw;
  }

  .nav nav {
    display: none;
  }

  .hero,
  .about,
  .work,
  .skills,
  .contact {
    padding: 72px 6vw;
  }

  .hero,
  .about-grid,
  .featured,
  .project-row,
  .facts,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo img,
  .featured img,
  .project img {
    height: 320px;
    border-radius: 28px;
  }
}
