:root {
  --ink: #171714;
  --paper: #f2f0e9;
  --paper-dark: #e8e5dc;
  --line: rgba(23, 23, 20, 0.18);
  --forest: #173f35;
  --sage: #a9b8a5;
  --stone: #cbc7bc;
  --highlight: #d7e4c6;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.section-shell,
.site-header {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.brand-mark svg {
  width: 27px;
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.brand i {
  margin-inline: 6px;
  color: rgba(23, 23, 20, 0.28);
  font-style: normal;
  font-weight: 400;
}

.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav {
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}

.language-toggle {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.language-toggle:hover {
  color: var(--paper);
  background: var(--ink);
}

.nav a {
  transition: opacity 180ms ease;
}

.nav a:hover {
  opacity: 0.5;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding-block: 80px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-index {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(89, 181, 60, 0.12);
}

.hero h1 {
  max-width: 800px;
  margin: 30px 0 26px;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-name {
  display: block;
  width: fit-content;
  padding-right: 0.08em;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.86;
  text-shadow: 3px 3px 0 var(--highlight);
  transform: skewX(-5deg);
}

.hero h1 em {
  display: block;
  width: fit-content;
  margin-top: 0.16em;
  padding: 0.04em 0.16em 0.09em 0.1em;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 0.66em;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
  transform: rotate(-1deg);
}

.hero-intro {
  max-width: 570px;
  margin: 0;
  color: rgba(23, 23, 20, 0.72);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}

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

.hero-actions {
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 12px 30px rgba(23, 63, 53, 0.2);
}

.button-primary:hover {
  box-shadow: 0 16px 36px rgba(23, 63, 53, 0.28);
}

.button-secondary:hover {
  color: var(--paper);
  background: var(--ink);
}

.social-links {
  margin-top: 30px;
}

.hero-product-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 28px;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 22%, rgba(215, 228, 198, 0.22), transparent 30%),
    linear-gradient(150deg, #214f43 0%, var(--forest) 48%, #102d27 100%);
  border: 1px solid rgba(23, 23, 20, 0.12);
  border-radius: 30px;
  box-shadow:
    0 30px 70px rgba(23, 63, 53, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.15);
  transform: rotate(2deg);
  transition:
    transform 300ms ease,
    box-shadow 300ms ease;
}

.hero-product-card:hover {
  box-shadow:
    0 36px 84px rgba(23, 63, 53, 0.26),
    inset 0 1px rgba(255, 255, 255, 0.15);
  transform: rotate(0deg) translateY(-6px);
}

.hero-product-topline,
.live-badge {
  display: flex;
  align-items: center;
}

.hero-product-topline {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  color: rgba(242, 240, 233, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-badge {
  gap: 8px;
}

.live-badge i {
  width: 7px;
  height: 7px;
  background: var(--highlight);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(215, 228, 198, 0.12);
}

.hero-product-visual {
  position: relative;
  height: 190px;
  margin: 22px 0 14px;
}

.market-core,
.market-orbit {
  position: absolute;
  border-radius: 50%;
}

.market-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--forest);
  background: var(--highlight);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-style: italic;
  transform: translate(-50%, -50%);
}

.market-orbit {
  top: 50%;
  left: 50%;
  border: 1px solid rgba(242, 240, 233, 0.26);
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: 130px;
  height: 130px;
}

.orbit-b {
  width: 210px;
  height: 110px;
  transform: translate(-50%, -50%) rotate(25deg);
}

.orbit-c {
  width: 260px;
  height: 70px;
  border-style: dashed;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.hero-product-kicker {
  margin: 0 0 7px;
  color: rgba(242, 240, 233, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-product-card h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.hero-product-proposition {
  max-width: 340px;
  margin: 16px 0 10px;
  font-size: 15px;
  line-height: 1.65;
}

.hero-product-meta {
  margin: 0;
  color: rgba(242, 240, 233, 0.5);
  font-size: 11px;
}

.hero-product-card > a {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  padding-top: 17px;
  border-top: 1px solid rgba(242, 240, 233, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.social-links a {
  color: rgba(23, 23, 20, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.marquee {
  overflow: hidden;
  padding-block: 17px;
  color: var(--paper);
  background: var(--ink);
  transform: rotate(-1deg) scale(1.02);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  display: flex;
  gap: 28px;
  align-items: center;
  padding-right: 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.marquee-track i {
  color: var(--highlight);
  font-style: normal;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.section-block {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 70px;
  padding-block: 150px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 14px 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.section-heading > p:last-child {
  max-width: 240px;
  color: rgba(23, 23, 20, 0.56);
  font-size: 13px;
}

.about-lead {
  max-width: 760px;
  margin: 0 0 72px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.32;
  letter-spacing: -0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-item {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.about-item strong {
  font-size: 34px;
  letter-spacing: -0.06em;
}

.about-item h3 {
  margin: 16px 0 8px;
  font-size: 15px;
}

.about-item p {
  margin: 0;
  color: rgba(23, 23, 20, 0.56);
  font-size: 12px;
}

.work {
  grid-template-columns: 0.45fr 1.55fr;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
  background: var(--paper-dark);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.project-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 18px 50px rgba(23, 23, 20, 0.12);
}

.project-card:first-child {
  grid-column: span 2;
}

.project-featured {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.project-featured .project-visual {
  min-height: 430px;
}

.project-featured .project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
}

.project-featured .project-copy h3 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.project-featured .project-copy p {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
}

.project-visual {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 250px;
  place-items: center;
  background: var(--stone);
}

.project-forest .project-visual {
  color: var(--paper);
  background: var(--forest);
}

.project-stone .project-visual {
  background: var(--stone);
}

.project-sage .project-visual {
  background: var(--sage);
}

.project-visual > span {
  z-index: 1;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -0.1em;
}

.project-tree {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 2px;
  height: 165px;
  background: currentColor;
  opacity: 0.35;
  transform: translateX(-50%);
}

.project-tree::before,
.project-tree::after {
  position: absolute;
  left: 50%;
  content: "";
  border-right: 72px solid transparent;
  border-bottom: 90px solid currentColor;
  border-left: 72px solid transparent;
  transform: translateX(-50%);
}

.project-tree::before {
  bottom: 38px;
}

.project-tree::after {
  bottom: 0;
  border-right-width: 100px;
  border-bottom-width: 120px;
  border-left-width: 100px;
}

.project-copy {
  padding: 24px;
}

.project-copy span,
.project-copy strong {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.project-copy blockquote {
  max-width: 540px;
  margin: 14px 0 20px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.project-copy p {
  min-height: 44px;
  margin: 0 0 24px;
  color: rgba(23, 23, 20, 0.56);
  font-size: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 28px;
}

.project-tags span {
  padding: 6px 10px;
  color: rgba(23, 23, 20, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact {
  display: block;
  padding-block: 80px 100px;
  border-top: 1px solid var(--line);
}

.github-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 760px;
  margin-top: 28px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.github-card:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 18px 44px rgba(23, 23, 20, 0.14);
  transform: translateY(-4px);
}

.github-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  transition:
    color 220ms ease,
    background 220ms ease;
}

.github-card:hover .github-mark {
  color: var(--ink);
  background: var(--highlight);
}

.github-mark svg {
  width: 36px;
  fill: currentColor;
}

.github-copy {
  display: grid;
  gap: 4px;
}

.github-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.github-copy span {
  color: rgba(23, 23, 20, 0.56);
  font-size: 12px;
  transition: color 220ms ease;
}

.github-card:hover .github-copy span {
  color: rgba(242, 240, 233, 0.6);
}

.github-arrow {
  font-size: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 28px;
  color: rgba(23, 23, 20, 0.5);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .section-shell,
  .site-header {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav {
    gap: 18px;
  }

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

  .hero {
    gap: 54px;
    padding-block: 64px 90px;
  }

  .hero h1 {
    font-size: clamp(54px, 15vw, 84px);
  }

  .hero-product-card {
    width: min(100%, 520px);
    min-height: 500px;
    transform: none;
  }

  .section-block {
    gap: 48px;
    padding-block: 100px;
  }

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

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

  .project-featured .project-visual {
    min-height: 280px;
  }

}

@media (max-width: 580px) {
  .site-header {
    height: 72px;
  }

  .brand > span:last-child,
  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    letter-spacing: -0.07em;
  }

  .hero h1 em {
    font-size: 0.7em;
  }

  .hero-product-card {
    min-height: 480px;
    padding: 24px;
    border-radius: 24px;
  }

  .hero-product-visual {
    height: 170px;
  }

  .hero-product-card > a {
    right: 24px;
    bottom: 22px;
    left: 24px;
  }

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

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

  .project-card:first-child {
    grid-column: auto;
  }

  .project-visual {
    min-height: 200px;
  }

  .github-card {
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 22px;
  }

  .github-mark {
    width: 54px;
    height: 54px;
  }

  .github-mark svg {
    width: 30px;
  }

  .github-arrow {
    display: none;
  }

  .site-footer {
    gap: 8px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
