html { scroll-behavior: smooth; }
body.home-page {
  --space-ink: #f5f2ff;
  --space-muted: #bdbcd2;
  --space-line: #ffffff24;
  --space-mint: #a6f8ed;
  margin: 0;
  overflow-x: hidden;
  background: #09071b;
  color: var(--space-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
.home-page a { color: inherit; text-decoration: none; }
.home-page a:focus-visible, .home-page button:focus-visible { outline: 3px solid #b2fff0; outline-offset: 5px; }
.home-page p { max-width: none; }
.home-page header, .home-page main, .home-page footer { position: relative; z-index: 1; }
.home-page main { width: 100%; margin: 0; padding: 0; }

.cosmos { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.cosmos-aurora { position: absolute; inset: -24%; background: radial-gradient(ellipse at 20% 10%, #3658a94a 0, transparent 35%), radial-gradient(ellipse at 78% 30%, #8c37ba38 0, transparent 32%), radial-gradient(ellipse at 42% 88%, #08647336 0, transparent 32%); animation: aurora 22s ease-in-out infinite alternate; }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.cosmos-grain { position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(0deg, transparent 0, transparent 3px, #ffffff0a 4px); }

.space-header { display: flex; align-items: center; gap: 36px; width: min(1320px, calc(100% - 96px)); min-height: 88px; margin: 0 auto; padding: 18px 0; border-bottom: 1px solid #ffffff20; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-symbol { display: inline-block; width: 43px; height: 43px; border: 1px solid #d9caff8c; border-radius: 14px 14px 14px 4px; background: linear-gradient(145deg, #6555f5, #47308f); box-shadow: 0 0 24px #9c6cff55; font-family: Georgia, serif; font-size: 25px; font-style: italic; line-height: 41px; text-align: center; }
.brand-symbol span { display: inline; color: #a6f8ed; }
.brand-name { font-family: Georgia, serif; font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }.brand-name small { display: block; margin-top: 6px; color: #c5bdda; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10px; font-weight: 400; letter-spacing: .08em; }
.space-nav { display: flex; align-items: center; justify-content: center; gap: 32px; margin: 0 0 0 auto; color: #dfdbea; font-size: 14px; font-weight: 600; }.space-nav a:hover { color: #a8fff0; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 13px; border: 1px solid #ffffff42; border-radius: 999px; background: #ffffff0d; color: #ded8ef; font: inherit; font-size: 12px; cursor: pointer; }.motion-toggle:hover { border-color: #b5fff0; color: #b5fff0; }.motion-toggle[hidden] { display: none; }

.hero { position: relative; display: grid; min-height: min(800px, calc(100svh - 88px)); place-items: center; padding: 100px 24px 120px; overflow: hidden; text-align: center; isolation: isolate; }
.hero-portal { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(1030px, 95vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.portal-aura { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(ellipse, #bd5bff70 0, #7047e74a 28%, #29afcf35 46%, transparent 69%); filter: blur(42px); animation: portal-breathe 7s ease-in-out infinite alternate; }
.portal-core { position: absolute; inset: 25%; border: 1px solid #d5b9ff50; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #996efa30 0, #58319b27 30%, #13143e48 64%, #07081700 72%); box-shadow: 0 0 70px #9f6dff25, inset 0 0 65px #ad7fff31; animation: portal-breathe 9s ease-in-out infinite alternate-reverse; }
.portal-ring { position: absolute; border: 1px solid #a9c9ff6b; border-radius: 50%; box-shadow: 0 0 18px #a279ff35, inset 0 0 15px #91e9ff12; }
.portal-ring i { position: absolute; top: 13%; left: 15%; width: 8px; height: 8px; border-radius: 50%; background: #c4fff4; box-shadow: 0 0 13px 4px #92f8e7; }
.portal-ring-one { inset: 13%; animation: orbit-one 34s linear infinite; }.portal-ring-two { inset: 18%; border-color: #f5b9ff73; animation: orbit-two 28s linear infinite; }.portal-ring-two i { top: 18%; left: 80%; width: 6px; height: 6px; background: #ffc1f6; box-shadow: 0 0 13px 4px #f18be0; }.portal-ring-three { inset: 11%; border-style: dashed; border-color: #a5e8ff32; animation: orbit-three 56s linear infinite; }
.portal-spark { position: absolute; color: #c9fff5; text-shadow: 0 0 20px #8bfce8; animation: sparkle 4s ease-in-out infinite alternate; }.spark-one { top: 21%; left: 16%; font-size: 24px; }.spark-two { top: 28%; right: 13%; color: #ffd0fa; font-size: 28px; animation-delay: -1.2s; }.spark-three { bottom: 24%; left: 18%; font-size: 20px; animation-delay: -2.4s; }
.hero-content { width: min(850px, 100%); }.hero-intro { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border: 1px solid #d9cfff3b; border-radius: 999px; background: #1a173a80; color: #e1d9ff; font-size: 13px; }.hero-intro span, .project-kind span { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #adffe9; box-shadow: 0 0 12px #84ffe5; }
.home-page h1 { margin: 28px 0 23px; font-size: clamp(64px, 8.8vw, 126px); font-weight: 800; letter-spacing: -.065em; line-height: 1.12; text-shadow: 0 7px 36px #090522a8; }.home-page h1 > span { display: block; }.hero-title-glow { color: #e2d2ff; background: linear-gradient(100deg, #fdfbff 8%, #c9b5ff 36%, #9dfff0 64%, #fdfbff 90%); background-size: 220% auto; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: title-shimmer 7s ease-in-out infinite alternate; }.hero-fullstop { letter-spacing: 0; }
.hero-description { width: min(600px, 100%); margin: 0 auto; color: #e0dbea; font-size: 16px; line-height: 2; text-shadow: 0 2px 16px #050411; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 27px; margin-top: 34px; }.launch-button { display: inline-flex; align-items: center; gap: 30px; min-height: 56px; padding: 0 22px; border: 1px solid #e9fffa99; border-radius: 999px; background: linear-gradient(110deg, #b9fff0, #a9c8ff); box-shadow: 0 0 28px #79d5e655; color: #101332 !important; font-size: 14px; font-weight: 800; transition: transform .25s, box-shadow .25s; }.launch-button:hover { transform: translateY(-3px); box-shadow: 0 0 38px #89e8e888; }.launch-button b { font-size: 19px; }.github-button { color: #f3efff; font-size: 14px; font-weight: 700; }.github-button:hover { color: #a9fff0; }.github-button span { margin-left: 5px; }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); color: #d2cce2 !important; font-size: 12px; white-space: nowrap; }.scroll-hint span { color: #b4fbed; font-size: 19px; animation: scroll-bob 1.8s ease-in-out infinite; }

.ticker { overflow: hidden; border-top: 1px solid #ffffff20; border-bottom: 1px solid #ffffff20; background: #ffffff08; }.ticker-track { display: flex; align-items: center; width: max-content; padding: 15px 0; color: #c8c0df; font-size: 13px; letter-spacing: .08em; animation: ticker-move 28s linear infinite; }.ticker-group { display: flex; align-items: center; justify-content: space-around; gap: 28px; width: max(100vw, 650px); white-space: nowrap; }.ticker-track i { color: #a8f4e5; font-size: 19px; font-style: normal; }
.projects { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding: 120px 0 30px; scroll-margin-top: 30px; }.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }.section-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: #b4fbed; font-size: 13px; font-weight: 700; }.section-kicker span { color: #d7afff; font-size: 18px; }.section-intro h2 { margin: 0; font-size: clamp(42px, 5.2vw, 66px); letter-spacing: -.045em; line-height: 1.25; }.section-intro > p { max-width: 20em; margin: 0 0 8px; color: #c4bdd2; font-size: 15px; line-height: 1.9; }
.project-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.project-card { position: relative; overflow: hidden; border: 1px solid #ffffff2b; border-radius: 24px; background: #17152a; transition: transform .35s, border-color .35s, box-shadow .35s; }.project-card:hover { transform: translateY(-5px); border-color: #c3b5ff80; box-shadow: 0 22px 70px #02010d80, 0 0 35px #9378ff1f; }.project-copy { position: relative; z-index: 2; padding: 34px; }.project-kind { display: flex; align-items: center; gap: 9px; margin: 0; color: #c6c3d8; font-size: 12px; font-weight: 700; }.project-kind span { width: 6px; height: 6px; }.project-copy h3 { margin: 13px 0 12px; color: #fbfaff; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.25; }.project-copy > p:not(.project-kind) { max-width: 31em; margin: 0; color: #c7c3d4; font-size: 15px; line-height: 1.9; }.project-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 27px; color: #b0ffef !important; font-size: 14px; font-weight: 700; }.project-link:hover { text-decoration: underline; text-underline-offset: 5px; }.project-link span, .all-repos span { font-size: 18px; }.project-actions { display: flex; flex-wrap: wrap; gap: 26px; }.project-link.secondary { color: #d4cde3 !important; }

.ledger-card { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 390px; background: radial-gradient(ellipse at 85% 40%, #206e825c, transparent 55%), linear-gradient(115deg, #231a3e, #102539); }.ledger-card .project-copy { padding: 54px; }.ledger-card .project-copy h3 { font-size: clamp(38px, 4vw, 54px); }.ledger-art { position: relative; min-height: 390px; }.ledger-art::before { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, #77fee16b 0, #337ea454 35%, transparent 68%); filter: blur(20px); content: ""; }.ledger-orbit { position: absolute; inset: 15%; border: 1px solid #b8ffec50; border-radius: 50%; animation: orbit-one 24s linear infinite; }.ledger-orbit-two { inset: 23%; border-color: #c3a7ff6e; animation: orbit-two 20s linear infinite; }.ledger-image { position: absolute; top: 50%; left: 50%; display: grid; width: 180px; height: 180px; place-items: center; transform: translate(-50%, -50%) rotate(-8deg); border: 1px solid #ccfff09c; border-radius: 38px; background: #d6fff629; box-shadow: 0 25px 60px #02060db0, 0 0 55px #80ffe05c; animation: image-float 6s ease-in-out infinite; }.ledger-image img { display: block; width: 145px; height: 145px; border-radius: 26%; }.ledger-spark { position: absolute; top: 20%; right: 19%; color: #d6fff6; font-size: 26px; text-shadow: 0 0 20px #a4ffe7; }.ledger-art-note { position: absolute; right: 10%; bottom: 15%; color: #b3e4dc; font-family: Georgia, serif; font-size: 11px; letter-spacing: .15em; }
.switch-card { background: radial-gradient(ellipse at 50% 5%, #6353c879, transparent 55%), #151529; }.terminal-art { width: min(78%, 350px); height: 180px; margin: 48px auto 12px; overflow: hidden; transform: rotate(-4deg); border: 1px solid #d6c5ff66; border-radius: 14px; background: #10111fe8; box-shadow: 0 20px 50px #05020c99, 0 0 50px #a37aff2e; }.terminal-bar { display: flex; align-items: center; gap: 6px; height: 35px; padding: 0 14px; border-bottom: 1px solid #ffffff1d; background: #ffffff0c; }.terminal-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d88ca8; }.terminal-bar i:nth-child(2) { background: #eac17a; }.terminal-bar i:nth-child(3) { background: #7fdbbf; }.terminal-bar span { margin-left: auto; color: #afa4c2; font-size: 10px; }.terminal-body { padding: 18px 21px; font-family: Consolas, monospace; font-size: 12px; }.terminal-body p { margin: 0 0 15px; color: #e7e1f5; }.terminal-body p span { color: #a6f8e0; }.terminal-option { display: flex; align-items: center; gap: 13px; color: #a9a1bb; }.terminal-option b { color: #a7f8e5; }.terminal-switch { width: 35px; height: 19px; padding: 3px; border-radius: 20px; background: #9debd7; }.terminal-switch i { display: block; width: 13px; height: 13px; margin-left: auto; border-radius: 50%; background: #264c55; }.terminal-body small { display: block; margin-top: 15px; color: #a8a0b5; font-size: 10px; }.terminal-cursor { color: #aaffea; animation: cursor-blink 1s steps(2, start) infinite; }
.quiz-card { background: radial-gradient(ellipse at 50% 8%, #a06b8a65, transparent 53%), #201827; }.quiz-art { position: relative; height: 240px; overflow: hidden; }.quiz-art::before { position: absolute; inset: 10% 20%; border-radius: 50%; background: radial-gradient(circle, #ffd4a969, #d280a124 50%, transparent 70%); filter: blur(18px); content: ""; }.quiz-ring { position: absolute; top: 22px; left: 50%; width: 190px; height: 190px; margin-left: -95px; border: 1px solid #ffcebc80; border-radius: 50%; animation: orbit-one 18s linear infinite; }.quiz-ring-two { top: 40px; width: 154px; height: 154px; margin-left: -77px; border-style: dashed; border-color: #ffdfc75c; animation: orbit-two 24s linear infinite; }.quiz-emblem { position: absolute; top: 50%; left: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); object-fit: contain; filter: drop-shadow(0 12px 22px #12050dcc); animation: emblem-float 7s ease-in-out infinite; }.quiz-art-note { position: absolute; right: 10%; bottom: 20px; color: #e2b6ad; font-family: Georgia, serif; font-size: 10px; letter-spacing: .14em; }
.color-card { grid-column: 1 / -1; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; min-height: 230px; background: linear-gradient(110deg, #24203c, #1e1a30); }.color-art { position: relative; width: 165px; height: 165px; margin: auto; }.color-art::before { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, #a27bff75, #57e8ed30 44%, transparent 70%); filter: blur(14px); content: ""; }.color-emblem { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px #070413b3); animation: picker-float 6s ease-in-out infinite; }.color-note { margin: 0 48px 0 0; color: #b7a9ce; font-family: Georgia, serif; font-size: 14px; font-style: italic; line-height: 1.5; text-align: right; }

.more-projects { margin-top: 115px; }.more-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }.more-heading h3 { margin: 0; font-size: 30px; letter-spacing: -.03em; }.all-repos { color: #dcd5ea !important; font-size: 13px; font-weight: 700; }.all-repos:hover { color: #a9fff0 !important; }.repo-list { margin: 0; padding: 0; border-top: 1px solid var(--space-line); list-style: none; }.repo-list li { max-width: none; border-bottom: 1px solid var(--space-line); }.repo-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding: 17px 8px; transition: padding .25s, background .25s; }.repo-list a:hover { padding-right: 15px; padding-left: 15px; background: #ffffff08; }.repo-list strong { display: block; font-size: 16px; }.repo-list small { display: block; margin-top: 4px; color: #b9b4c9; font-size: 13px; }.repo-kind { flex-shrink: 0; color: #c5bfd3; font-size: 12px; text-align: right; }.repo-kind b { margin-left: 18px; color: #adffec; font-size: 18px; }
.closing { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 110px 24px 80px; color: #d0c9df; }.closing > span { color: #d7adff; font-size: 26px; }.closing p { margin: 0; font-size: 15px; }.back-top { margin-left: 20px; color: #adf5e8 !important; font-size: 13px; }
.home-page .home-footer { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding: 28px 0 38px; border-color: var(--space-line); color: #c0b8d0; font-size: 12px; line-height: 2; opacity: 1; }.home-page .home-footer a { color: #c8e8e5; text-decoration: underline; text-underline-offset: 3px; }.footer-signature { margin: 0 0 10px; color: #d1c6e0; font-family: Georgia, serif; font-size: 13px; font-style: italic; }

@keyframes aurora { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.08); } }
@keyframes portal-breathe { from { opacity: .7; transform: scale(.95); } to { opacity: 1; transform: scale(1.06); } }
@keyframes orbit-one { from { transform: rotate(0deg) scaleY(.57); } to { transform: rotate(360deg) scaleY(.57); } }
@keyframes orbit-two { from { transform: rotate(120deg) scaleY(.78); } to { transform: rotate(-240deg) scaleY(.78); } }
@keyframes orbit-three { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes sparkle { from { opacity: .45; transform: scale(.75); } to { opacity: 1; transform: scale(1.18); } }
@keyframes title-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes scroll-bob { 50% { transform: translateY(6px); } }
@keyframes ticker-move { to { transform: translateX(-50%); } }
@keyframes image-float { 0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); } 50% { transform: translate(-50%, -56%) rotate(-4deg); } }
@keyframes cursor-blink { to { visibility: hidden; } }
@keyframes emblem-float { 0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); } 50% { transform: translate(-50%, -53%) rotate(2deg); } }
@keyframes picker-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }

@media (max-width: 720px) {
  .space-header { flex-wrap: wrap; gap: 12px 20px; width: calc(100% - 40px); min-height: 78px; padding: 15px 0; }.brand-symbol { width: 38px; height: 38px; font-size: 22px; line-height: 36px; }.brand-name { font-size: 21px; }.space-nav { gap: 16px; font-size: 12px; }.motion-toggle { min-height: 30px; padding: 0 10px; font-size: 11px; }
  .hero { min-height: 660px; padding: 80px 20px 100px; }.hero-portal { width: 130vw; }.home-page h1 { font-size: clamp(52px, 11vw, 78px); }.hero-description { max-width: 25em; font-size: 15px; }.hero-actions { gap: 22px; margin-top: 28px; }
  .projects { width: calc(100% - 40px); padding-top: 80px; }.section-intro { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 30px; }.section-intro h2 { font-size: 43px; }.section-intro > p { max-width: 29em; margin: 0; font-size: 14px; }
  .project-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }.ledger-card, .color-card { grid-column: auto; }.ledger-card { grid-template-columns: minmax(0, 1fr); }.ledger-card .project-copy { padding: 32px 28px 0; }.ledger-card .project-copy h3 { font-size: 37px; }.ledger-art { min-height: 280px; }.ledger-image { width: 145px; height: 145px; border-radius: 31px; }.ledger-image img { width: 116px; height: 116px; }.ledger-art-note { right: 8%; bottom: 12%; }
  .project-copy { padding: 28px; }.terminal-art { margin-top: 40px; }.quiz-art-note { display: none; }.color-card { grid-template-columns: 130px minmax(0, 1fr); min-height: 210px; }.color-art { width: 115px; height: 115px; }.color-card .project-copy { padding-left: 10px; }.color-note { display: none; }
  .more-projects { margin-top: 80px; }.more-heading { align-items: start; flex-direction: column; gap: 16px; }.more-heading h3 { font-size: 26px; }.closing { padding: 80px 20px 65px; }.home-page .home-footer { width: calc(100% - 40px); }
}
@media (max-width: 420px) {
  .space-header { gap: 12px; }.space-nav { gap: 11px; }.motion-toggle { order: 3; margin-left: auto; }.hero { min-height: 620px; padding-top: 70px; }.home-page h1 { font-size: clamp(46px, 13vw, 55px); }.hero-intro { font-size: 12px; }.hero-actions { gap: 16px; }.launch-button { gap: 16px; padding: 0 17px; }.projects { width: calc(100% - 32px); }.section-intro h2 { font-size: 39px; }.color-card { grid-template-columns: 96px minmax(0, 1fr); }.color-art { width: 90px; height: 90px; }.color-card .project-copy { padding-right: 20px; }.repo-kind { font-size: 11px; }.repo-kind b { margin-left: 8px; }.home-page .home-footer { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-page:not([data-motion="on"]) *, .home-page:not([data-motion="on"]) *::before, .home-page:not([data-motion="on"]) *::after { animation-play-state: paused !important; transition-duration: 0s !important; }
}
.home-page[data-motion="off"] *, .home-page[data-motion="off"] *::before, .home-page[data-motion="off"] *::after { animation-play-state: paused !important; transition-duration: 0s !important; }
