:root {
  --bg: #f4f2ec;
  --panel: rgba(255, 255, 255, 0.68);
  --text: #171b20;
  --soft: #59616a;
  --muted: #8b9298;
  --line: rgba(31, 38, 46, 0.14);
  --cyan: #335f86;
  --green: #b78348;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f4f2ec;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background-color: #f4f2ec;
  background-image:
    radial-gradient(circle at 76% 18%, rgba(76, 111, 143, 0.14), transparent 20rem),
    radial-gradient(circle at 12% 28%, rgba(141, 120, 93, 0.12), transparent 18rem),
    linear-gradient(180deg, #fbfaf6 0%, #f0eee7 52%, #f8f7f2 100%);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-color: rgba(255, 255, 255, 0.18);
  background-image:
    linear-gradient(rgba(31, 38, 46, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 38, 46, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
}

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

.header,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.logo::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(141, 120, 93, 0.42);
}

nav {
  display: flex;
  gap: 22px;
  color: rgba(23, 27, 32, 0.68);
  font-size: 13px;
}

nav a,
footer a,
.project {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

nav a:hover,
footer a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 28px 0 46px;
  text-align: center;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(104, 226, 255, 0.55), transparent);
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: transparent;
  background: linear-gradient(115deg, #17202b 0%, #335f86 44%, #b78348 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(66px, 25vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  filter: drop-shadow(0 14px 24px rgba(51, 95, 134, 0.18));
  text-shadow: none;
}

.intro {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.75;
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 0 76px;
}

.project {
  display: grid;
  gap: 14px;
  padding: 12px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 54px rgba(31, 38, 46, 0.1);
  overflow: hidden;
}

.project:hover {
  border-color: rgba(76, 111, 143, 0.36);
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-5px);
}

.project.featured {
  background:
    linear-gradient(135deg, rgba(76, 111, 143, 0.12), rgba(141, 120, 93, 0.07)),
    rgba(255, 255, 255, 0.72);
}

.project-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 178px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(76, 111, 143, 0.42), rgba(183, 131, 72, 0.2));
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.project-image::before,
.project-image::after {
  position: absolute;
  content: "";
}

.project-thumb {
  position: relative;
  z-index: 1;
  display: block;
  width: min(52%, 132px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16));
  background-size: 18px 18px, 18px 18px, 100% 100%;
  box-shadow: 0 18px 48px rgba(31, 38, 46, 0.18);
}

.project-image::before {
  inset: 22%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.project-image::after {
  left: 18%;
  right: 18%;
  bottom: 22%;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -46px 0 rgba(255, 255, 255, 0.22), 0 46px 0 rgba(255, 255, 255, 0.22);
}

.project-image-ar {
  background:
    radial-gradient(circle at 64% 34%, rgba(255, 255, 255, 0.58), transparent 22%),
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(183, 131, 72, 0.34), rgba(76, 111, 143, 0.28));
  background-size: 100% 100%, 34px 34px, 34px 34px, 100% 100%;
}

.project-image-3d {
  background:
    radial-gradient(circle at 42% 45%, rgba(23, 27, 32, 0.18), transparent 24%),
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 38, 46, 0.48), rgba(76, 111, 143, 0.3));
  background-size: 100% 100%, 34px 34px, 34px 34px, 100% 100%;
}

.project-meta {
  display: block;
  margin: 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.project strong {
  display: block;
  margin: 0 8px;
  font-size: 24px;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--soft);
}

@media (min-width: 881px) {
  .header,
  main,
  footer {
    width: min(1180px, calc(100% - 48px));
  }

  body::before {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .header {
    height: 82px;
  }

  nav {
    gap: 32px;
    color: var(--soft);
  }

  .hero {
    min-height: auto;
    padding: 64px 0 78px;
    text-align: center;
  }

  h1 {
    font-size: clamp(88px, 18vw, 220px);
    line-height: 0.82;
    letter-spacing: -0.07em;
  }

  .projects {
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 92px;
  }

  .project {
    padding: 12px 12px 22px;
    border-radius: 16px;
  }

  .project-image {
    min-height: 210px;
  }

  .project strong {
    font-size: 28px;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  body {
    background-color: #f4f2ec;
    background-image:
      radial-gradient(circle at 72% 26%, rgba(76, 111, 143, 0.12), transparent 17rem),
      radial-gradient(circle at 18% 18%, rgba(141, 120, 93, 0.1), transparent 16rem),
      linear-gradient(180deg, #fbfaf6 0%, #f0eee7 56%, #f8f7f2 100%);
  }

  body::before {
    background-color: rgba(255, 255, 255, 0.28);
    background-size: 58px 58px;
  }

  .logo,
  nav,
  h1,
  .intro {
    text-shadow: 0 8px 24px rgba(31, 38, 46, 0.1);
  }

  .header {
    height: 64px;
  }

  nav {
    gap: 16px;
  }

  h1 {
    font-size: clamp(62px, 24vw, 96px);
  }

}
