:root {
  --bg: #ffffff;
  --paper: #f7fbff;
  --ink: #17202a;
  --muted: #647184;
  --line: #dbe7f3;
  --blue: #72bdea;
  --blue-dark: #2b7fb8;
  --green: #18c26e;
  --shadow: 0 24px 70px rgba(31, 82, 122, 0.12);
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  padding: 20px max(40px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(219, 231, 243, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #405064;
  font-size: 15px;
  white-space: nowrap;
}

.nav a {
  transition: color 0.2s ease;
}

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

.hero {
  display: flex;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  min-height: clamp(560px, calc(100vh - 74px), 720px);
  margin: 0 auto;
  padding: 46px 0 64px;
}

.hero-copy {
  max-width: 880px;
}

.quiet-line {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(64px, 6.2vw, 96px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 21px;
}

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

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #233044;
  font-size: 15px;
  font-weight: 700;
}

.hero-actions a:first-child {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.intro-grid {
  display: grid;
  gap: 22px;
  color: #3f4d60;
  font-size: 18px;
}

.intro-grid p {
  margin: 0;
}

.wide {
  max-width: 760px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 82, 122, 0.06);
}

.work-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.work-card h3,
.notes-list h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.work-card p,
.notes-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.list-card {
  grid-column: auto;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: var(--paper);
}

.notes-section {
  border-top: 1px solid var(--line);
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.notes-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 76px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 70px;
  padding: 64px 72px;
  border-radius: 8px;
  background: #edf8ff;
}

.contact-section p {
  max-width: 620px;
  margin: 20px 0 0;
  color: #4a5c70;
  font-size: 18px;
}

.contact-section img {
  width: 100%;
  border: 12px solid #fff;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(31, 82, 122, 0.14);
}

.footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 28px 24px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer a:hover {
  color: var(--blue-dark);
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 2px;
  }

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

  .hero {
    gap: 42px;
    min-height: auto;
    padding-top: 56px;
  }

  .work-grid,
  .notes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    padding: 38px;
  }

  .contact-section img {
    max-width: 320px;
  }
}

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

  .hero,
  .section,
  .contact-section {
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-text,
  .intro-grid,
  .contact-section p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .work-grid,
  .notes-list {
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 28px 20px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}
