:root {
  color-scheme: dark;
  --bg: #101313;
  --panel: #151a18;
  --ink: #f4f5ed;
  --muted: #b6c0b8;
  --line: #34413a;
  --accent: #d5fb74;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover, summary:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; inset: .75rem auto auto .75rem; z-index: 2; padding: .5rem 1rem; background: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: translateY(0); }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55em; font-size: 1.2rem; font-weight: 750; }
.brand-cn { color: var(--muted); font-size: .88rem; font-weight: 500; }
.brand-mark { width: 1em; aspect-ratio: 1; border: 2px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--bg); background: var(--accent); }
nav { display: flex; gap: clamp(1rem, 4vw, 2.4rem); font-size: .94rem; }
.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 3rem; padding-block: clamp(3.2rem, 8vw, 7rem); }
.eyebrow { display: flex; align-items: center; gap: .7em; color: var(--accent); letter-spacing: .1em; font-size: .9rem; font-weight: 600; }
.eyebrow span { display: inline-block; width: 1.6rem; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(4.9rem, 11vw, 9rem); letter-spacing: -.09em; line-height: 1.18; margin: .24em 0 .14em -.06em; font-weight: 800; }
.period { margin-left: .065em; color: var(--accent); }
.lead { max-width: 19em; color: var(--muted); font-size: 1.15rem; }
.button { display: inline-flex; margin-top: 1.85rem; padding: .66rem 1.23rem; border-radius: .25rem; background: var(--accent); color: #18200e; font-weight: 700; }
.button:hover { color: #101313; background: #efffc1; }
.optics { position: relative; overflow: hidden; isolation: isolate; min-height: 280px; aspect-ratio: 1.18; border: 1px solid #394a3e; background: linear-gradient(#b3e8c015 1px, transparent 1px) center / 29px 29px, linear-gradient(90deg, #b3e8c015 1px, transparent 1px) center / 29px 29px, radial-gradient(ellipse at center, #354c30, #19241f 58%, #101613); }
.axis, .orbit, .aperture, .target { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.horizontal { width: 100%; height: 1px; background: #d5fb7440; }
.vertical { width: 1px; height: 100%; background: #d5fb7440; }
.orbit { border: 1px solid #c1f47985; border-radius: 50%; aspect-ratio: 1; }
.outer { width: 74%; border-style: dashed; border-color: #bcf77861; }
.middle { width: 58%; box-shadow: 0 0 40px #bfff5926, inset 0 0 30px #bfff5926; }
.inner { width: 32%; border-color: #f1ffb9b0; }
.aperture { width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 32%, #efffae, #bfe962 35%, #618d38 67%, #213d1b 98%); box-shadow: 0 0 55px #bcf65c80, 0 0 5px #f1ffb9; }
.target { width: 11%; height: 13%; top: 29%; left: 71%; border: 1px solid #f0ffc6a0; background: #e6fe7712; }
.projects, .about { border-top: 1px solid var(--line); padding-block: 2.5rem; scroll-margin-top: 1rem; }
.section-header { display: flex; gap: .75rem 2rem; justify-content: space-between; align-items: baseline; flex-wrap: wrap; margin-bottom: 1.65rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.25; letter-spacing: -.035em; }
.section-header p, .project-text p, .about p, .footer { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.project { background: var(--panel); border: 1px solid var(--line); }
.project-art { height: 8.25rem; position: relative; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.orchard { background: radial-gradient(ellipse at 68% 75%, #514025, #2a3222 55%, #1a241c); }
.fruit { position: absolute; width: 2.5rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 36% 28%, #f4ae6f, #bf5c37 53%, #733929); box-shadow: 0 5px 12px #10131370; }
.fruit::before { content: ""; position: absolute; inset: -.4rem; border: 1px solid #d5fb74aa; border-radius: 2px; }
.first { left: 23%; top: 23%; }
.second { left: 46%; top: 50%; width: 2rem; }
.third { left: 69%; top: 28%; width: 2.85rem; }
.circuit { background: repeating-linear-gradient(90deg, #41583b16 0 1px, transparent 1px 24px), #1d2824; }
.wire { width: 65%; height: .16rem; background: #a6b0a5; }
.resistor { position: absolute; width: 37%; height: 2.9rem; border-radius: .9rem; background: linear-gradient(0deg,#0007,transparent 56%,#fff4), linear-gradient(90deg,#c7b887 0 21%,#6e3228 21% 28%,#c7b887 28% 36%,#282221 36% 44%,#c7b887 44% 53%,#a65b35 53% 61%,#c7b887 61% 81%,#9a803f 81% 88%,#c7b887 88%); box-shadow: 0 8px 16px #0b100d80; }
.project-text { padding: 1.35rem 1.5rem; }
h3 { margin-bottom: .4rem; font-size: 1.35rem; }
details { margin-top: 1.1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; color: var(--accent); width: fit-content; }
details p { margin-top: .6rem; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; }
.about p { max-width: 36em; }
.footer { min-height: 75px; border-top: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 700px) {
  .frame { width: calc(100% - 36px); }
  .hero, .project-grid, .about { grid-template-columns: 1fr; }
  .hero { gap: 2rem; }
  .optics { min-height: 0; aspect-ratio: 1.39; }
  .outer { width: 65%; }
  .middle { width: 52%; }
  .brand-cn { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.numbers { display: flex; justify-content: center; gap: .5rem; background: #1b2922; }
.numbers span { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: .35rem; border: 1px solid #536b53; border-radius: .25rem; background: #26372b; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.numbers span:last-child { background: var(--accent); color: var(--bg); }
.numbers-ai { background: #202a1a; }
.numbers-ai span:nth-child(2) { min-width: 1.3rem; border-color: transparent; background: transparent; }
.project-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .55rem; color: var(--accent); font-weight: 650; }
.project-link:hover { text-decoration: underline; }
