:root {
  --bg: #f7f5ef;
  --surface: #fffffb;
  --surface-soft: #eeefe7;
  --text: #20251f;
  --muted: #687064;
  --line: rgba(32, 37, 31, 0.12);
  --accent: #56776a;
  --accent-strong: #2f5d50;
  --accent-soft: #dbe7df;
  --gold: #b48a53;
  --shadow: 0 22px 70px rgba(38, 48, 42, 0.11);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(86, 119, 106, 0.14), transparent 28rem),
    linear-gradient(180deg, #fbfaf5 0%, var(--bg) 42%, #f0f1e8 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  background: rgba(247, 245, 239, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 245, 239, 0.92);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions,
.card-meta,
.status-card,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 700;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d8c3a0);
  box-shadow: 0 0 0 5px rgba(86, 119, 106, 0.11);
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(86, 119, 106, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 251, 0.74);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-text {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.contact-link {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.contact-link:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fffefa;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 14px 34px rgba(47, 93, 80, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 251, 0.72);
}

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 251, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-panel::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(180, 138, 83, 0.24);
  border-radius: var(--radius);
  content: "";
}

.status-card {
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6c9f83;
  box-shadow: 0 0 0 6px rgba(108, 159, 131, 0.18);
}

.signal-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.signal-list span,
.card-meta,
.note-item time {
  color: var(--muted);
  font-size: 0.8rem;
}

.signal-list strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
}

.section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy p + p {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 251, 0.68);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  border-color: rgba(47, 93, 80, 0.26);
  box-shadow: 0 18px 52px rgba(38, 48, 42, 0.1);
  transform: translateY(-4px);
}

.card-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 46px;
}

.project-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 800;
}

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

.note-list {
  border-top: 1px solid var(--line);
}

.note-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, padding-left 180ms ease;
}

.note-item:hover {
  color: var(--accent-strong);
  padding-left: 10px;
}

.note-item span {
  font-size: 1.08rem;
  font-weight: 750;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 80px;
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 251, 0.72);
  color: var(--accent-strong);
  transition: transform 180ms ease, background 180ms ease;
}

.site-footer {
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 700;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 251, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 56px;
  }

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

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

  .project-card {
    min-height: 250px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  h1 {
    font-size: clamp(2.18rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-link {
    width: 100%;
  }

  .note-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
