:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --text: #1c2024;
  --muted: #5d6670;
  --panel: #ffffff;
  --line: rgba(28, 32, 36, 0.12);
  --accent: #0f766e;
  --accent-dark: #0b4f49;
  --amber: #c97a22;
  --ink: #101417;
  --shadow: 0 20px 60px rgba(16, 20, 23, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(16, 20, 23, 0.84);
  color: #fff;
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #f7c66b;
  color: #13201e;
  font-size: 0.92rem;
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding: clamp(58px, 7vw, 96px) clamp(20px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(246, 244, 239, 0), var(--bg));
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(16, 20, 23, 0.88) 0%,
      rgba(16, 20, 23, 0.76) 34%,
      rgba(16, 20, 23, 0.38) 66%,
      rgba(16, 20, 23, 0.2) 100%
    ),
    url("/assets/hero-workspace.png") center / cover;
}

.hero-content {
  max-width: 760px;
  color: #fff;
}

.eyebrow,
.section-kicker,
.project-tag {
  margin: 0;
  color: #f4b85d;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.project-card h3 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 720;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: #f7c66b;
  color: #14201d;
}

.button.primary:hover {
  background: #ffd684;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin-top: 10px;
  font-size: clamp(1.85rem, 3vw, 3rem);
  color: var(--ink);
}

.section p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

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

.project-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(16, 20, 23, 0.06);
}

.project-card h3 {
  margin-top: 26px;
  font-size: 1.28rem;
}

.project-card p {
  margin: 16px 0 0;
  font-size: 0.96rem;
}

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

.stack-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.stack-list li {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #263036;
  font-weight: 680;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact-section p {
  max-width: 680px;
}

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

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 720;
}

.contact-links a:hover {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 8px 26px rgba(15, 118, 110, 0.12);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lab-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #101417;
  background: rgba(16, 20, 23, 0.92);
  color: #fff;
  box-shadow: 0 14px 40px rgba(16, 20, 23, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lab-launcher-label {
  padding: 0 8px;
  color: #f7c66b;
  font-size: 0.82rem;
  font-weight: 760;
}

.lab-launcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 720;
}

.lab-launcher a:hover {
  background: #f7c66b;
  color: #13201e;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

  .hero-media {
    background:
      linear-gradient(
        180deg,
        rgba(16, 20, 23, 0.88) 0%,
        rgba(16, 20, 23, 0.72) 52%,
        rgba(16, 20, 23, 0.48) 100%
      ),
      url("/assets/hero-workspace.png") center / cover;
  }

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

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

  .contact-links {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: 2.18rem;
  }

  .section {
    width: min(100% - 32px, 1120px);
  }

  .lab-launcher {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: flex-start;
    overflow-x: auto;
  }
}
