:root {
  color-scheme: light;
  --ink: #1d2428;
  --muted: #627078;
  --line: #d9e1df;
  --paper: #f7f4ec;
  --panel: #ffffff;
  --teal: #136f70;
  --coral: #c9533e;
  --gold: #b9872f;
  --shadow: 0 24px 80px rgba(29, 36, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 244, 236, 0.9);
  box-shadow: 0 1px 0 rgba(29, 36, 40, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.nav {
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: #10272a;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 20, 0.74), rgba(8, 20, 20, 0.14) 58%),
    linear-gradient(180deg, rgba(8, 20, 20, 0.22), rgba(8, 20, 20, 0.58));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 92vh;
  align-content: center;
  width: min(760px, calc(100% - 36px));
  padding: 112px 0 88px;
  margin-left: clamp(18px, 7vw, 96px);
  color: #fff;
}

.eyebrow,
.section-label,
.project-meta {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb08f;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 760;
}

.button.primary {
  background: #fff;
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 88px);
  margin-top: 18px;
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
}

.skills {
  background: #eef3ef;
}

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

.skill-card,
.project-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 38px rgba(29, 36, 40, 0.06);
}

.skill-card {
  padding: 24px;
}

.icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: #e4f0ed;
  color: var(--teal);
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.icon-arrow::before {
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-2px, 2px) rotate(45deg);
}

.icon-arrow::after {
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

.icon-wave::before {
  width: 22px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  transform: translateY(2px);
}

.icon-wave::after {
  width: 22px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  transform: translateY(-2px);
}

.icon-star::before,
.icon-star::after {
  width: 22px;
  height: 2px;
  background: currentColor;
}

.icon-star::before {
  transform: rotate(90deg);
}

.icon-star::after {
  box-shadow:
    0 0 0 0 currentColor,
    0 0 0 0 currentColor;
}

.skill-card p,
.project-card p,
.timeline-list span {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading a {
  color: var(--teal);
  font-weight: 800;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.project-card h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.timeline {
  background: #fdfbf5;
}

.timeline-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list time {
  color: var(--teal);
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 32px;
  align-items: end;
  padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.contact h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 760;
}

.contact-links a::after {
  content: "/";
  color: #ffb08f;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #141a1d;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

  .nav {
    max-width: 230px;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }

  .hero-content {
    width: min(680px, calc(100% - 36px));
    margin-inline: 18px;
  }

  .intro-grid,
  .skill-grid,
  .project-list,
  .contact {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .project-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

  .site-header {
    padding-top: 14px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    min-height: 88vh;
    padding-top: 100px;
  }

  h1 {
    font-size: 46px;
  }

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

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
