:root {
  color-scheme: dark;
  --bg: #101612;
  --surface: #18221b;
  --ink: #f3f6ee;
  --muted: #b4c0b3;
  --accent: #d6fa9d;
  --line: #303d34;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.7; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--accent); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.masthead { border-bottom: 1px solid var(--line); }
.brand, nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); }
.brand { gap: .65rem; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
nav a, .footer a { text-decoration: none; }
nav a:hover, .footer a:hover { color: var(--accent); }
nav, .footer { color: var(--muted); font-size: .9rem; }
.intro { display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; gap: 2rem; padding-block: clamp(3.8rem, 9vw, 7.25rem); }
.kicker { color: var(--accent); font-size: .875rem; font-weight: 650; letter-spacing: .09em; }
h1 { margin-block: .8rem 1.25rem; font-size: clamp(2.9rem, 6.8vw, 5.55rem); font-weight: 800; line-height: 1.13; letter-spacing: -.05em; }
h1 span { color: var(--accent); }
.intro-copy > p:not(.kicker) { max-width: 31ch; font-size: 1.08rem; color: var(--muted); }
.cta { display: inline-flex; margin-top: 1.65rem; border-radius: .45rem; padding: .68rem 1.1rem; text-decoration: none; font-weight: 700; background: var(--accent); color: var(--bg); }
.cta:hover { background: #e5ffc1; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.08;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  isolation: isolate;
  background: radial-gradient(ellipse at center, #354536, #202d25 52%, #141e17 78%);
}
.hero-art::before, .hero-art::after { position: absolute; inset: 50% 0 auto; height: 1px; content: ""; background: #d6fa9d28; }
.hero-art::after { inset: 0 auto 0 50%; width: 1px; height: auto; }
.signal-ring { position: absolute; width: 48%; aspect-ratio: 1; border: 1px solid #b4df9280; border-radius: 50%; }
.signal-ring:nth-child(2) { width: 64%; opacity: .64; }
.signal-ring:nth-child(3) { width: 80%; opacity: .45; }
.signal-ring:nth-child(4) { width: 97%; opacity: .24; }
.signal-core { position: relative; z-index: 1; display: grid; place-items: center; width: 30%; aspect-ratio: 1; border: 1px solid #d6fa9d80; border-radius: 50%; background: #233328; box-shadow: 0 0 48px #b8ef8a26; }
.signal-core img { width: 60%; }

.work, .contact { scroll-margin-top: 1.5rem; padding-block: 2.2rem 3.5rem; border-top: 1px solid var(--line); }
h2 { margin-bottom: 1.25rem; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.035em; }
.featured { display: grid; grid-template-columns: 1fr 1.22fr; align-items: stretch; border: 1px solid var(--line); border-radius: 1.15rem; overflow: hidden; }
.featured-art { display: grid; min-height: 13rem; place-items: center; background: radial-gradient(ellipse at 25% 90%, #40548b, transparent 62%), linear-gradient(142deg, #293852, #171d37 90%); }
.app-emblem { display: grid; place-items: center; border-radius: 1.8rem; width: 8rem; aspect-ratio: 1; background: #d7dcff12; border: 1px solid #c5d1ff42; box-shadow: 0 18px 44px #0a102759; transform: rotate(-8deg); }
.app-emblem img { width: 65%; }
.featured-copy, .project { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.3rem, 4vw, 2rem); background: var(--surface); }
h3 { margin-block: .35rem .6rem; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.28; letter-spacing: -.025em; }
h3 span { margin-left: .65rem; color: var(--muted); font-size: .57em; font-weight: 500; }
.featured-copy > p:not(.kicker), .project > p:not(.kicker), .contact p { color: var(--muted); }
.project-link { display: inline-block; margin-top: auto; padding-top: 1rem; color: var(--accent); font-weight: 650; }
.project-link:hover { color: #f0ffd4; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.project { border: 1px solid var(--line); border-radius: 1rem; }
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: start; }
.contact h2 { margin-bottom: .5rem; }
.contact-list { display: grid; gap: 0 1.3rem; grid-template-columns: repeat(2, 1fr); padding: 0; margin: 0; list-style: none; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a { display: flex; flex-direction: column; padding: .65rem 0; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-list span { color: var(--muted); font-size: .9rem; }
.footer { border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .intro, .featured, .contact { grid-template-columns: 1fr; }
  .intro { padding-block: 3rem; }
  .hero-art { aspect-ratio: 1.7; }
  .contact { gap: 1rem; }
}
@media (max-width: 440px) {
  .shell { width: calc(100% - 2rem); }
  .projects { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.1rem, 10.8vw, 2.9rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
