:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --panel: #fffdfa;
  --ink: #20211c;
  --muted: #74766d;
  --line: #e5ded2;
  --accent: #151611;
  --soft: #ece5d8;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, #ffffff 0, transparent 34%),
    linear-gradient(135deg, #faf8f2 0%, var(--bg) 46%, #eee8dc 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(45, 38, 24, 0.06);
}

.brand {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.nav nav {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.nav nav a {
  padding: 8px 12px;
  border-radius: 999px;
}

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

main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 86px 0 72px;
}

.eyebrow,
.section-label,
.project-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.intro,
.section-body p,
.project-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.intro {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 12px 30px rgba(43, 36, 24, 0.07);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.section {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(28px, 6vw, 80px);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-body {
  max-width: 720px;
}

.project-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 248, 0.94)),
    var(--panel);
  box-shadow: 0 28px 80px rgba(55, 46, 30, 0.11);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 28px;
  width: 42px;
  height: 14px;
  border-radius: 999px;
  background: #ffe27a;
  box-shadow: 0 8px 22px rgba(95, 78, 25, 0.16);
  transform: rotate(-7deg);
}

.project-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 32px;
  padding: 0;
  list-style: none;
}

.project-points li {
  position: relative;
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: #ffec4d;
  color: #3f3817;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
  box-shadow:
    0 18px 24px -18px rgba(47, 40, 18, 0.48),
    10px 18px 30px -24px rgba(95, 75, 18, 0.4);
  transform: rotate(var(--tilt));
}

.project-points li::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 10%;
  bottom: -13px;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(42, 35, 14, 0.18), transparent 68%);
  filter: blur(7px);
  z-index: -1;
}

.project-points li:nth-child(1) { --tilt: -2deg; }
.project-points li:nth-child(2) { --tilt: 1.4deg; background: #ffd4e1; }
.project-points li:nth-child(3) { --tilt: -0.8deg; background: #c9ef91; }
.project-points li:nth-child(4) { --tilt: 2deg; background: #aee1ff; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid a,
.contact-grid p {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.68);
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.contact-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    padding: 18px 20px;
  }

  .nav nav {
    gap: 12px;
  }

  main {
    width: min(100% - 28px, 1040px);
  }

  .hero {
    min-height: auto;
    padding: 70px 0 54px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 50px 0;
  }

  .project-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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


@media (max-width: 520px) {
  .project-points {
    grid-template-columns: 1fr;
  }

  .project-points li {
    min-height: 96px;
  }
}
