:root {
  color-scheme: dark;
  --bg: #071119;
  --surface: #0c1823;
  --surface-raised: #101f2c;
  --border: #21303e;
  --border-soft: #182936;
  --text: #e5edf3;
  --muted: #889aa9;
  --faint: #506777;
  --mint: #69dfbe;
  --purple: #b4a2e5;
  --orange: #e8ad87;
  --mono: "Cascadia Code","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --sans: Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif
}

* {
  box-sizing: border-box
}

html {
  min-width: 320px;
  scroll-behavior: smooth
}

body {
  margin: 0;
  padding: 28px 32px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 78% 36%,#163d3e20,transparent 55%)
}

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

button,input {
  font: inherit
}

button {
  cursor: pointer;
  color: inherit
}

button,a,input {
  -webkit-tap-highlight-color: transparent
}

button {
  border: 0
}

button:disabled {
  cursor: default
}

button:focus-visible,a:focus-visible,input:focus-visible,[tabindex="0"]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px
}

::selection {
  background: #69dfbe30;
  color: #fff
}

[hidden] {
  display: none!important
}

p,h1,h2,h3 {
  margin: 0
}

button {
  background: none
}

kbd {
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid #344552;
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1.3;
  color: #a3b3bf
}

.syntax-purple {
  color: var(--purple)
}

.syntax-orange {
  color: var(--orange)
}

.syntax-muted {
  color: var(--faint)
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  background: var(--mint);
  color: var(--bg);
  z-index: 20;
  padding: 12px
}

.skip-link:focus {
  top: 10px
}

.site-shell {
  max-width: 1536px;
  margin: auto;
  min-height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 22px 75px #0003
}

.site-header {
  height: 68px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 13px;
  min-width: 230px;
  font: 600 17px var(--mono);
  letter-spacing: -.5px;
  border-right: 1px solid var(--border)
}

.brand-icon {
  font-size: 23px;
  font-weight: 400;
  color: var(--mint)
}

.brand-dot {
  margin-left: -12px;
  color: var(--mint)
}

.navigation {
  display: flex;
  align-items: stretch
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 25px;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font: 13px var(--mono);
  transition: background .2s,color .2s
}

.nav-prefix {
  font-size: 10px;
  color: var(--faint)
}

.nav-link:hover {
  background: #ffffff03;
  color: var(--text)
}

.nav-link.active {
  color: var(--text);
  background: #ffffff02
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint)
}

.nav-link.active .nav-prefix {
  color: var(--mint)
}

.command-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 24px auto auto;
  color: var(--muted);
  font-size: 11px
}

.command-trigger:hover {
  color: var(--text)
}

.search-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: inline-block
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 1.5px;
  background: currentColor;
  right: -4px;
  bottom: -2px;
  transform: rotate(45deg)
}

.menu-toggle {
  display: none
}

.mobile-navigation {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px
}

.mobile-navigation a {
  display: block;
  padding: 14px;
  color: var(--muted);
  font-family: var(--mono)
}

#main {
  display: flex;
  flex-direction: column;
  flex: 1;
  outline: none
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column
}

.editor-bar {
  height: 46px;
  background: #09151f;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  font: 11px var(--mono);
  color: var(--faint);
  flex-shrink: 0
}

.file-tab {
  height: 100%;
  min-width: 176px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-right: 1px solid var(--border-soft);
  color: #b5c3ce
}

.code-icon {
  color: var(--mint);
  font-size: 15px
}

.file-dot {
  height: 5px;
  width: 5px;
  margin-left: 13px;
  border-radius: 50%;
  background: var(--faint)
}

.editor-path {
  margin-left: 25px
}

.editor-path>span {
  color: #3c5363;
  margin: 0 10px
}

.editor-language {
  margin-left: auto;
  margin-right: 26px;
  font-size: 10px
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(330px,.9fr);
  align-items: center;
  gap: 70px;
  padding: 55px 7.5% 48px 8%;
  flex: 1;
  min-height: 577px;
  isolation: isolate
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 75% 49%,#1d6d6220,transparent 42%),linear-gradient(90deg,transparent 49.9%,#21303e10 50%,transparent 50.1%);
  pointer-events: none
}

.hero::after {
  content: "+";
  position: absolute;
  right: 4%;
  top: 29px;
  color: #334b58;
  font: 18px var(--mono)
}

.line-numbers {
  position: absolute;
  left: 23px;
  top: 36px;
  bottom: 26px;
  overflow: hidden;
  color: #304452;
  font: 11px/29px var(--mono);
  user-select: none
}

.code-greeting {
  font: 12px/1.8 var(--mono);
  color: #a9bdc7;
  white-space: nowrap;
  margin-bottom: 22px;
  letter-spacing: -.2px
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(48px,5.35vw,83px);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -5px;
  white-space: nowrap
}

.hero h1 [data-profile="name"] {
  color: var(--mint)
}

.name-period {
  color: var(--mint)
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font: 18px/1.6 var(--mono);
  margin-top: 16px;
  letter-spacing: 1px
}

.hero-role>[aria-hidden] {
  color: #4c9c8a
}

.typing-cursor {
  width: 8px;
  height: 20px;
  background: var(--mint);
  margin-left: 1px;
  animation: blink 1.4s steps(2,start) infinite;
  opacity: .7
}

.hero-intro {
  margin-top: 35px;
  color: #b0beca;
  line-height: 1.95;
  font-size: 17px;
  letter-spacing: .5px
}

.hero-intro [data-profile="intro"] {
  white-space: pre-line
}

.hero-intro .intro-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 29px
}

.button {
  padding: 13px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.4;
  transition: transform .2s,background .2s,border-color .2s
}

.button-primary {
  color: #0a2521;
  background: var(--mint);
  border-color: var(--mint);
  font-weight: 600
}

.button-primary:hover {
  background: #8deacc;
  transform: translateY(-2px)
}

.button-secondary {
  color: #b4c3ce;
  background: #ffffff02
}

.button-secondary:hover {
  border-color: #526c7b;
  background: #ffffff05;
  transform: translateY(-2px)
}

.button span[aria-hidden] {
  font-size: 17px;
  line-height: 1
}

.hero-code-footer {
  margin-top: 38px;
  font: 11px/2.1 var(--mono);
  color: #b9c8d1
}

.hero-code-footer p:first-child {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: -.1px;
  margin-bottom: 4px
}

.hero-playground {
  max-width: 390px;
  width: 100%;
  justify-self: center;
  position: relative
}

.playground-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 9px var(--mono);
  letter-spacing: 1.5px;
  color: #718d98;
  margin: 0 0 13px 7px
}

.tiny-line {
  width: 22px;
  height: 1px;
  background: #526e78
}

.game-window {
  border: 1px solid #36544f;
  border-radius: 9px;
  background: linear-gradient(135deg,#12332f,#11242d 65%);
  box-shadow: 0 18px 40px #0003,0 0 70px #4fe5b909;
  transform: rotate(2deg);
  transition: transform .3s;
  overflow: hidden
}

.game-window:focus-within,.game-window:hover {
  transform: rotate(0)
}

.game-titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #36544f66;
  padding: 0 15px;
  color: #88a69f;
  font: 10px var(--mono)
}

.window-dots {
  display: flex;
  gap: 5px
}

.window-dots i {
  height: 6px;
  width: 6px;
  background: #5f8d7b;
  border-radius: 50%
}

.window-dots i:first-child {
  background: #b89573
}

.window-dots i:nth-child(2) {
  background: #a8aa73
}

.game-title-icon {
  font-size: 14px;
  color: #4c7468
}

.game-body {
  padding: 14px 19px 0
}

.game-toolbar {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  margin-bottom: 11px;
  color: #75978b;
  letter-spacing: 1px
}

.game-toolbar .syntax-muted {
  color: #83a596
}

.game-toolbar strong {
  font-weight: 400;
  color: var(--mint);
  margin-left: 7px
}

.game-best {
  font-size: 9px
}

.game-best strong {
  color: #a6bcb4
}

.game-board {
  position: relative;
  aspect-ratio: 1.13;
  background: #071a23;
  border: 1px solid #29443f;
  border-radius: 5px;
  overflow: hidden
}

.game-board canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #071a2355;
  text-align: center;
  backdrop-filter: blur(1px)
}

.game-symbol {
  font: 46px var(--mono);
  color: var(--mint);
  line-height: 1;
  margin-bottom: 13px;
  opacity: .9
}

.game-overlay h2 {
  font: 500 18px var(--mono);
  letter-spacing: -.8px;
  color: #e0efe6;
  text-shadow: 0 2px 10px #071a23
}

.game-overlay p {
  font-size: 11px;
  color: #9ab7ad;
  margin: 11px 0 21px
}

.game-start {
  padding: 10px 17px;
  color: #10271f;
  background: var(--mint);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600
}

.game-start:hover {
  background: #a1efd6
}

.game-start span {
  margin-right: 8px;
  font-size: 15px
}

.game-space-hint {
  font: 9px var(--mono);
  margin-top: 14px;
  color: #6c9687
}

.game-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  font-size: 9px;
  color: #96aea5
}

.game-state {
  display: flex;
  align-items: center;
  gap: 6px
}

.game-state i {
  height: 4px;
  width: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint)
}

.game-reset {
  color: #8eaca1;
  font-size: 14px;
  white-space: nowrap
}

.game-reset span {
  font-size: 9px
}

.game-instructions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #36544f66;
  padding: 13px 19px;
  color: #7fa093;
  font-size: 9px;
  gap: 12px
}

.game-instructions kbd {
  font-size: 8px;
  padding: 1px 3px;
  color: #abc5ba;
  border-color: #446457;
  margin-right: 2px
}

.game-instructions em {
  font-family: var(--mono);
  font-style: normal;
  color: #acc2b7;
  font-size: 9px
}

.playground-caption {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  font: 10px var(--mono);
  color: #6f8b94;
  transform: rotate(-1deg)
}

.caption-star {
  color: var(--orange);
  font-size: 23px;
  position: absolute;
  right: -21px;
  bottom: 8px;
  transform: rotate(15deg)
}

.touch-controls {
  display: none
}

.hello-bottom {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 7.2% 0 8%;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid #1a2a3577
}

.hello-bottom>span:first-child {
  display: flex;
  align-items: center;
  gap: 9px
}

.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px #69dfbe0b
}

.hello-bottom-note {
  font: 10px var(--mono);
  color: var(--faint)
}

.hello-bottom a {
  color: #b2c3cd;
  display: flex;
  gap: 20px
}

.hello-bottom a:hover {
  color: var(--mint)
}

.hello-bottom a span {
  color: var(--mint)
}

.site-footer {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font: 10px var(--mono);
  color: var(--muted);
  background: #09151f;
  flex-shrink: 0
}

.footer-left {
  display: flex;
  align-items: center;
  height: 100%
}

.footer-branch {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 100%;
  padding: 0 19px;
  border-right: 1px solid var(--border);
  color: var(--mint)
}

.footer-branch svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1
}

.footer-check {
  padding-left: 17px;
  color: var(--mint)
}

.footer-check span {
  color: var(--muted);
  margin-left: 7px;
  font-size: 9px
}

.footer-center {
  color: #667c8c;
  font-size: 9px
}

.footer-divider {
  padding: 0 13px;
  color: #324958
}

.footer-contact {
  align-self: stretch;
  border-left: 1px solid var(--border);
  padding: 0 23px;
  font: 10px var(--sans);
  color: #a4b4c0
}

.footer-contact span {
  margin-left: 20px;
  color: var(--mint);
  font-size: 14px
}

.footer-contact:hover {
  background: #69dfbe09;
  color: var(--mint)
}

/* About: files on the left, a quiet reading surface on the right. */
.about-layout {
  display: grid;
  grid-template-columns: 230px minmax(0,1fr) 200px;
  flex: 1;
  min-height: 632px
}

.file-explorer {
  border-right: 1px solid var(--border-soft);
  background: #0a1620;
  padding: 28px 0;
  display: flex;
  flex-direction: column
}

.explorer-heading {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0 24px 27px
}

.explorer-folder {
  font: 11px var(--mono);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 17px;
  color: #a2b3bf
}

.folder-icon {
  font-size: 18px;
  color: var(--orange)
}

.about-files button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 16px 13px 42px;
  font: 11px var(--mono);
  border-left: 2px solid transparent;
  color: var(--muted)
}

.about-files button span {
  display: inline-block;
  width: 22px;
  color: #788eaa
}

.about-files button.active {
  background: #69dfbe09;
  border-left-color: var(--mint);
  color: #d0dedf
}

.about-files button.active span {
  color: var(--mint)
}

.about-files button:hover {
  background: #ffffff04
}

.explorer-note {
  padding: 0 27px;
  margin-top: auto;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.9
}

.explorer-note>span {
  font-size: 32px;
  display: inline-block;
  margin-bottom: 18px
}

.about-content {
  padding: 51px clamp(30px,4.4vw,76px);
  max-width: 820px;
  animation: arrive .35s ease-out
}

.section-kicker {
  color: var(--faint);
  font: 10px var(--mono);
  letter-spacing: 1px
}

.about-content h1 {
  font-size: 32px;
  letter-spacing: -.5px;
  margin: 20px 0 22px;
  font-weight: 500;
  line-height: 1.6
}

.markdown-hash {
  color: #486958;
  font-family: var(--mono);
  font-weight: 400;
  margin-right: 12px
}

.about-content h1 span:not(.markdown-hash) {
  color: var(--mint)
}

.about-lead {
  font-size: 15px;
  line-height: 2;
  color: #c0cdd6;
  margin: 0 0 24px
}

.about-content blockquote {
  border-left: 2px solid var(--mint);
  margin: 28px 0;
  padding: 14px 21px;
  background: #69dfbe04;
  line-height: 2;
  color: #99b2b8;
  font-size: 13px
}

.about-content h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 30px 0 13px
}

.about-content h2>span {
  color: var(--faint);
  font-family: var(--mono);
  margin-right: 10px
}

.about-paragraph {
  line-height: 2.1;
  font-size: 13px;
  color: var(--muted)
}

.about-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px
}

.about-tags span {
  padding: 7px 12px;
  background: #132633;
  border: 1px solid #263c49;
  border-radius: 4px;
  color: #9ebac5;
  font-size: 11px
}

.about-next {
  display: inline-flex;
  gap: 24px;
  font-size: 12px;
  color: var(--mint);
  margin-top: 34px;
  border-bottom: 1px solid #69dfbe44;
  padding-bottom: 8px
}

.about-outline {
  padding: 56px 20px 0 0;
  color: #778f9f;
  font-size: 11px;
  line-height: 2
}

.about-outline p {
  font: 9px var(--mono);
  letter-spacing: 1px;
  margin-bottom: 23px;
  color: #4d697a
}

.about-outline>span:first-of-type {
  border-left: 1px solid var(--mint);
  padding-left: 14px
}

.outline-stroke {
  height: 1px;
  background: var(--border-soft);
  margin: 30px 0;
  width: 120px
}

.interest-code {
  font: 13px/2.25 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #09151f;
  border: 1px solid var(--border-soft);
  padding: 21px 24px;
  border-radius: 6px;
  color: #a7bdc8;
  margin-top: 25px
}

.now-item {
  padding: 18px 0;
  display: flex;
  gap: 17px;
  border-bottom: 1px solid var(--border-soft)
}

.now-item>span {
  color: var(--mint);
  font-family: var(--mono)
}

.now-item strong {
  font-size: 13px;
  font-weight: 500
}

.now-item p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 8px
}

.now-footnote {
  font: 10px var(--mono);
  color: var(--faint);
  margin-top: 25px
}

/* The previews are intentionally handmade illustrations, not fictitious screenshots. */
.projects-content {
  padding: 47px 6% 43px;
  flex: 1
}

.projects-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 19px 0 29px
}

.projects-heading h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.5px
}

.projects-heading h1 span {
  color: var(--mint)
}

.projects-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 16px;
  line-height: 1.8
}

.projects-count {
  font: 12px var(--mono);
  color: #4b6975
}

.projects-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  margin-bottom: 25px
}

.project-filters {
  display: flex;
  gap: 24px
}

.project-filters button {
  position: relative;
  padding: 14px 2px 16px;
  font-size: 12px;
  color: var(--muted)
}

.project-filters button.active {
  color: var(--mint)
}

.project-filters button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint)
}

.project-filters button span {
  margin-left: 8px;
  font: 9px var(--mono);
  color: var(--faint)
}

.sample-notice {
  font-size: 10px;
  color: #89968f;
  display: flex;
  gap: 7px;
  align-items: center
}

.sample-notice>span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange)
}

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

.project-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: #0b1721;
  transition: transform .2s,border-color .2s;
  animation: arrive .3s ease-out
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #416051
}

.project-preview {
  height: 166px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden
}

.preview-browser {
  background: #142d2b;
  background-image: linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);
  background-size: 18px 18px
}

.mini-browser {
  width: 73%;
  height: 112px;
  background: #e7e9df;
  border-radius: 5px;
  transform: rotate(-5deg) translateY(14px);
  box-shadow: 10px 12px 0 #061d1d44;
  padding: 0 11px;
  color: #29483f;
  position: relative
}

.mini-browser-top {
  height: 17px;
  border-bottom: 1px solid #c5cfc2;
  display: flex;
  align-items: center;
  gap: 3px
}

.mini-browser-top i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9eafa0
}

.mini-browser-content {
  padding: 15px 4px
}

.mini-browser-content small {
  font: 5px var(--mono);
  letter-spacing: 1px
}

.mini-browser-content strong {
  font: 600 19px/1.2 Georgia,serif;
  display: block;
  margin-top: 6px;
  max-width: 75%
}

.mini-browser-content span {
  display: block;
  width: 31px;
  height: 7px;
  background: #38594c;
  margin-top: 9px
}

.mini-flower {
  position: absolute;
  right: 20px;
  top: 46px;
  font: 44px Georgia,serif;
  color: #c09b6c
}

.project-preview-label {
  position: absolute;
  right: 11px;
  top: 10px;
  color: #adc0b2;
  background: #0a1c1a99;
  border: 1px solid #9ab4a326;
  padding: 3px 6px;
  font-size: 8px;
  border-radius: 3px
}

.preview-orbit {
  background: #201d33;
  background-image: radial-gradient(circle at center,#6c518b30,transparent 60%)
}

.orbital {
  height: 106px;
  width: 106px;
  position: relative;
  border: 1px solid #a18acc66;
  border-radius: 50%;
  transform: rotate(-25deg) scaleX(1.5)
}

.orbital::before,.orbital::after {
  content: "";
  position: absolute;
  inset: 10px -12px;
  border: 1px solid #a18acc77;
  border-radius: 50%;
  transform: rotate(65deg)
}

.orbital::after {
  transform: rotate(-65deg)
}

.orbital-center {
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  background: #c7b6e9;
  border-radius: 50%;
  box-shadow: 0 0 30px #ba8be180
}

.orbital-star {
  position: absolute;
  right: 27%;
  top: 28%;
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 15px #e8ad8744
}

.preview-orbit .project-preview-label {
  color: #c2b5d1;
  background: #20182d99
}

.preview-terminal {
  background: #172633
}

.mini-terminal {
  width: 75%;
  font: 9px/2 var(--mono);
  border: 1px solid #47616c;
  border-radius: 4px;
  background: #0b1822;
  transform: rotate(4deg);
  box-shadow: 7px 8px 0 #07101955;
  overflow: hidden
}

.mini-terminal-title {
  padding: 4px 10px;
  background: #233642;
  color: #829ba8;
  font-size: 7px
}

.mini-terminal-code {
  padding: 12px 14px;
  color: #a1bac8
}

.terminal-cursor {
  display: inline-block;
  width: 5px;
  height: 10px;
  background: var(--mint);
  vertical-align: middle
}

.project-card-content {
  padding: 22px 21px 19px
}

.project-titleline {
  display: flex;
  align-items: center;
  gap: 11px
}

.project-number {
  font: 10px var(--mono);
  color: var(--faint)
}

.project-card h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .2px
}

.project-description {
  font-size: 11px;
  line-height: 1.95;
  color: var(--muted);
  margin-top: 16px;
  min-height: 65px
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0 21px
}

.project-tags span {
  font: 9px var(--mono);
  color: #9aafb9;
  background: #172733;
  padding: 4px 7px;
  border-radius: 3px
}

.project-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.project-bottom>span {
  font-size: 10px;
  color: var(--faint)
}

.project-bottom>span:last-child {
  font: 14px var(--mono);
  color: #4c6270
}

.project-link {
  font-size: 11px;
  color: var(--mint)
}

.project-postscript {
  font: 11px/1.8 var(--mono);
  color: #b5c6d1;
  margin-top: 31px
}

.project-postscript-arrow {
  float: right;
  font-size: 10px;
  color: var(--faint);
  transform: rotate(-3deg)
}

.projects-empty {
  padding: 40px 0;
  color: var(--muted)
}

/* Small native dialogs keep keyboard focus and Escape behavior predictable. */
dialog {
  padding: 0;
  background: #10212e;
  color: var(--text);
  border: 1px solid #3c555f;
  border-radius: 10px;
  box-shadow: 0 30px 100px #0008;
  max-width: calc(100vw - 36px)
}

dialog::backdrop {
  background: #020910bc;
  backdrop-filter: blur(7px)
}

.command-dialog {
  width: 500px;
  margin: 15vh auto auto
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 22px
}

.dialog-heading h2 {
  font-size: 14px;
  font-weight: 500
}

.dialog-heading button {
  width: 26px;
  height: 26px;
  font-size: 22px;
  color: var(--muted)
}

.command-input-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 23px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--mint)
}

.command-input-wrap input {
  min-width: 0;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  outline: none;
  padding: 3px 0;
  font-size: 13px
}

.command-input-wrap input::placeholder {
  color: var(--faint)
}

.command-input-wrap input:focus-visible {
  outline: 0
}

.command-results {
  padding: 9px
}

.command-results a {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 5px;
  font-size: 13px
}

.command-results a:hover,.command-results a:focus-visible {
  background: #1c3842;
  outline: 0
}

.command-results a>span {
  font-size: 22px;
  color: var(--mint);
  width: 24px
}

.command-results small {
  display: block;
  color: var(--faint);
  font: 10px var(--mono);
  margin-top: 5px
}

.command-results kbd {
  margin-left: auto
}

.command-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 20px
}

.dialog-hint {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  color: var(--muted);
  font-size: 10px
}

.dialog-hint kbd {
  margin-right: 8px
}

.dialog-hint span {
  float: right;
  color: var(--faint)
}

.contact-dialog {
  width: 440px;
  padding: 0 30px 32px
}

.contact-dialog .dialog-heading {
  padding: 16px 0;
  font: 11px var(--mono)
}

.contact-symbol {
  display: block;
  color: var(--mint);
  font-size: 45px;
  margin: 15px 0 22px
}

.contact-dialog h2 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.6
}

.contact-dialog>p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  margin: 18px 0 27px
}

.contact-dialog .button {
  font-size: 12px
}

#contact-links a {
  display: block;
  margin: 15px 0;
  color: var(--mint);
  overflow-wrap: anywhere
}

.noscript-note {
  color: var(--orange);
  text-align: center;
  padding: 16px
}

@keyframes blink {
  to {
    opacity: 0
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(7px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(min-width:1500px) {
  .hero {
    gap: 105px;
    padding-left: 9%;
    padding-right: 9%;
    min-height: 650px
  }

  .hero-playground {
    max-width: 420px
  }

  .hero h1 {
    font-size: 85px
  }

  .hero-code-footer {
    margin-top: 44px
  }

  .hero-intro {
    font-size: 19px
  }

  .hero-role {
    font-size: 21px
  }
}

@media(max-width:1180px) {
  body {
    padding: 22px
  }

  .site-shell {
    min-height: calc(100svh - 44px)
  }

  .brand {
    min-width: 192px;
    padding: 0 22px
  }

  .nav-link {
    padding: 0 20px
  }

  .command-label {
    display: none
  }

  .hero {
    gap: 35px;
    padding: 46px 5.3% 44px 7.5%;
    grid-template-columns: minmax(0,1.15fr) minmax(300px,.9fr)
  }

  .hero h1 {
    font-size: 62px;
    letter-spacing: -4px
  }

  .code-greeting {
    font-size: 10px
  }

  .hero-role {
    font-size: 15px;
    gap: 7px
  }

  .hero-intro {
    font-size: 16px
  }

  .hero-code-footer {
    font-size: 10px
  }

  .hero-code-footer p:first-child {
    font-size: 9px
  }

  .button {
    gap: 15px;
    padding: 12px 14px
  }

  .hero-playground {
    max-width: 352px
  }

  .playground-eyebrow {
    font-size: 8px;
    letter-spacing: 1px
  }

  .about-layout {
    grid-template-columns: 205px minmax(0,1fr)
  }

  .about-outline {
    display: none
  }

  .projects-content {
    padding: 40px 5%
  }

  .projects-grid {
    gap: 17px
  }

  .project-card-content {
    padding: 19px 17px
  }

  .project-card h2 {
    font-size: 14px
  }
}

@media(max-width:940px) {
  .nav-prefix {
    display: none
  }

  .nav-link {
    padding: 0 17px;
    font-size: 12px
  }

  .command-trigger {
    margin-right: 20px
  }

  .command-trigger kbd {
    display: none
  }

  .hero {
    grid-template-columns: minmax(0,1fr) minmax(260px,.88fr);
    gap: 30px;
    padding-left: 7%;
    padding-right: 4.5%
  }

  .hero h1 {
    font-size: 51px;
    letter-spacing: -3px
  }

  .code-greeting {
    font-size: 9px;
    letter-spacing: -.4px
  }

  .hero-role {
    font-size: 13px;
    gap: 6px;
    letter-spacing: .3px
  }

  .hero-intro {
    font-size: 15px
  }

  .hero-intro .intro-note {
    font-size: 10px
  }

  .hero-actions {
    gap: 10px
  }

  .button {
    padding: 11px 11px;
    font-size: 11px;
    gap: 10px
  }

  .hero-code-footer p:first-child {
    font-size: 8px;
    letter-spacing: -.4px
  }

  .hero-code-footer {
    font-size: 9px
  }

  .game-body {
    padding: 12px 14px 0
  }

  .game-overlay h2 {
    font-size: 16px
  }

  .game-instructions {
    padding: 12px 13px;
    gap: 5px;
    font-size: 8px
  }

  .game-instructions em {
    font-size: 8px
  }

  .playground-eyebrow {
    font-size: 7px
  }

  .playground-caption {
    font-size: 8px;
    gap: 6px
  }

  .line-numbers {
    left: 16px
  }

  .hello-bottom {
    padding-left: 7%;
    padding-right: 5%;
    font-size: 9px
  }

  .hello-bottom-note {
    font-size: 9px
  }

  .footer-check {
    display: none
  }

  .projects-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }

  .sample-notice {
    font-size: 9px
  }

  .projects-heading h1 {
    font-size: 28px
  }

  .project-description {
    min-height: 44px
  }

  .projects-count {
    font-size: 10px
  }
}

@media(max-width:720px) {
  body {
    padding: 12px
  }

  .site-shell {
    min-height: calc(100svh - 24px);
    border-radius: 9px
  }

  .site-header {
    height: 61px
  }

  .brand {
    font-size: 16px;
    min-width: 0;
    padding: 0 20px;
    border-right: 0
  }

  .brand-icon {
    font-size: 21px
  }

  .navigation {
    display: none
  }

  .command-trigger {
    margin-right: 24px
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    border-left: 1px solid var(--border);
    width: 57px
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: #b7c6cd;
    transition: transform .2s
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg)
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg)
  }

  .editor-bar {
    height: 39px;
    font-size: 10px
  }

  .file-tab {
    min-width: 148px;
    padding: 0 18px
  }

  .editor-path {
    font-size: 9px;
    margin-left: 15px
  }

  .editor-path>span {
    margin: 0 5px
  }

  .editor-language {
    display: none
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 28px 36px 43px;
    gap: 47px;
    min-height: 0
  }

  .hero-copy {
    max-width: 500px
  }

  .line-numbers {
    font-size: 9px;
    left: 12px;
    top: 43px;
    line-height: 29px;
    height: 469px
  }

  .hero h1 {
    font-size: clamp(45px,10vw,68px);
    letter-spacing: -3px
  }

  .code-greeting {
    font-size: 10px;
    letter-spacing: -.4px;
    margin-bottom: 22px;
    white-space: normal;
    max-width: 350px
  }

  .hero-role {
    font-size: 14px;
    gap: 7px;
    margin-top: 17px;
    letter-spacing: .3px
  }

  .hero-intro {
    margin-top: 29px;
    font-size: 16px
  }

  .hero-intro .intro-note {
    font-size: 11px;
    max-width: 285px;
    line-height: 1.9;
    margin-top: 13px
  }

  .hero-actions {
    margin-top: 25px;
    gap: 12px
  }

  .button {
    font-size: 11px;
    padding: 12px 14px;
    gap: 14px
  }

  .hero-code-footer {
    margin-top: 28px;
    font-size: 10px;
    line-height: 2
  }

  .hero-code-footer p:first-child {
    font-size: 8px;
    letter-spacing: -.2px
  }

  .hero-playground {
    max-width: 360px;
    justify-self: center;
    width: 100%;
    margin-right: 15px
  }

  .playground-eyebrow {
    font-size: 8px;
    margin-bottom: 13px
  }

  .game-window {
    transform: rotate(1deg)
  }

  .game-body {
    padding: 15px 17px 0
  }

  .game-board {
    aspect-ratio: 1.1
  }

  .game-symbol {
    font-size: 38px
  }

  .game-overlay h2 {
    font-size: 18px
  }

  .game-overlay p {
    font-size: 12px
  }

  .game-instructions {
    display: none
  }

  .touch-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #36544f66;
    padding: 11px
  }

  .touch-controls button {
    display: block;
    min-width: 44px;
    min-height: 32px;
    background: #16362e;
    border: 1px solid #34564a;
    border-radius: 4px;
    color: #a4d7c3;
    font: 17px var(--mono);
    touch-action: manipulation
  }

  .touch-controls>div {
    display: flex;
    gap: 8px
  }

  .touch-controls button:active {
    background: #345e4e
  }

  .game-bottom {
    min-height: 40px
  }

  .game-reset {
    padding: 8px 0
  }

  .game-reset span {
    font-size: 10px
  }

  .game-state {
    font-size: 10px
  }

  .playground-caption {
    font-size: 9px;
    margin-top: 22px
  }

  .caption-star {
    right: -12px;
    font-size: 21px
  }

  .hello-bottom {
    padding: 0 24px;
    min-height: 55px;
    height: auto;
    font-size: 9px
  }

  .hello-bottom-note {
    display: none
  }

  .hello-bottom a {
    gap: 10px
  }

  .site-footer {
    height: auto;
    min-height: 42px;
    flex-wrap: wrap;
    gap: 0
  }

  .footer-branch {
    border: 0;
    padding: 14px;
    font-size: 9px
  }

  .footer-center {
    margin-left: auto;
    margin-right: 14px;
    font-size: 8px
  }

  .footer-divider {
    padding: 0 7px
  }

  .footer-contact {
    width: 100%;
    border-top: 1px solid var(--border-soft);
    border-left: 0;
    padding: 11px;
    font-size: 10px;
    text-align: center
  }

  .footer-contact span {
    margin-left: 9px
  }

  .about-layout {
    display: block;
    min-height: 0
  }

  .file-explorer {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border)
  }

  .explorer-heading,.explorer-folder,.explorer-note {
    display: none
  }

  .about-files {
    display: flex;
    overflow-x: auto
  }

  .about-files button {
    white-space: nowrap;
    width: auto;
    padding: 15px 14px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    font-size: 10px;
    flex: 1
  }

  .about-files button.active {
    border-bottom-color: var(--mint)
  }

  .about-files button span {
    width: 15px
  }

  .about-content {
    padding: 35px 27px 45px
  }

  .about-content h1 {
    font-size: 27px;
    line-height: 1.6;
    margin-top: 20px
  }

  .about-lead {
    font-size: 14px
  }

  .about-content blockquote {
    font-size: 12px;
    padding: 14px 15px
  }

  .about-paragraph {
    font-size: 12px
  }

  .section-kicker {
    font-size: 8px;
    letter-spacing: .7px
  }

  .about-content h2 {
    font-size: 15px
  }

  .interest-code {
    font-size: 11px;
    padding: 17px 14px
  }

  .projects-content {
    padding: 35px 24px
  }

  .projects-heading {
    margin-top: 20px
  }

  .projects-heading h1 {
    font-size: 26px;
    line-height: 1.6
  }

  .projects-heading p {
    font-size: 11px;
    max-width: 280px;
    line-height: 2;
    margin-top: 10px
  }

  .projects-count {
    display: none
  }

  .projects-tools {
    display: block
  }

  .project-filters {
    gap: 26px
  }

  .project-filters button {
    font-size: 11px
  }

  .sample-notice {
    margin: 16px 0;
    font-size: 9px
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .project-preview {
    height: 185px
  }

  .project-card-content {
    padding: 22px
  }

  .project-card h2 {
    font-size: 16px
  }

  .project-description {
    font-size: 12px;
    min-height: 0
  }

  .project-tags {
    margin: 19px 0
  }

  .project-postscript {
    font-size: 10px;
    line-height: 2.1
  }

  .project-postscript-arrow {
    float: none;
    display: block;
    margin-top: 13px;
    font-size: 9px
  }

  .mini-browser {
    max-width: 250px;
    height: 124px
  }

  .mini-browser-content strong {
    font-size: 23px
  }

  .mini-flower {
    font-size: 50px
  }

  .mini-terminal {
    max-width: 250px;
    font-size: 10px
  }

  .command-dialog {
    margin-top: 12vh
  }

  .contact-dialog {
    padding: 0 24px 28px
  }

  .contact-dialog h2 {
    font-size: 21px
  }

  .dialog-hint span {
    font-size: 9px
  }
}

@media(max-width:380px) {
  body {
    padding: 8px
  }

  .hero {
    padding-left: 33px;
    padding-right: 21px
  }

  .hero h1 {
    font-size: 43px
  }

  .hero-role {
    font-size: 12px;
    gap: 5px
  }

  .hero-actions {
    gap: 8px
  }

  .button {
    font-size: 10px;
    padding: 11px 10px;
    gap: 8px
  }

  .code-greeting {
    font-size: 9px
  }

  .hero-code-footer p:first-child {
    max-width: 235px;
    font-size: 8px
  }

  .hero-playground {
    margin-right: 8px
  }

  .editor-path {
    font-size: 8px;
    margin-left: 9px
  }

  .about-files button {
    padding: 14px 9px
  }

  .projects-content {
    padding: 31px 19px
  }

  .projects-heading h1 {
    font-size: 24px
  }

  .footer-center {
    font-size: 7px;
    margin-right: 8px
  }

  .footer-divider {
    padding: 0 4px
  }
}

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

  *,*::before,*::after {
    animation: none!important;
    transition: none!important
  }

  .game-window {
    transform: none
  }
}

/* Keep custom names and compact tablet columns inside their reading area. */
.hero-copy {
  min-width: 0
}

.hero h1 {
  white-space: normal;
  overflow-wrap: anywhere
}

@media(max-width:380px) {
  .hero h1 {
    font-size: clamp(32px,10.5vw,40px)
  }
}

/* Language controls mirror the reference: far right, before the mobile menu. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  padding: 0 17px;
}
.header-actions .command-trigger { margin: 0; }
.language-toggle {
  min-width: 42px;
  min-height: 34px;
  padding: 8px 10px;
  flex-shrink: 0;
  border: 1px solid #29404a;
  border-radius: 5px;
  background: #122532;
  color: var(--mint);
  font: 600 11px var(--mono);
  transition: background .2s, border-color .2s;
}
.language-toggle:hover { background: #19352f; border-color: #4c8170; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.projects-heading h1 .heading-prefix { color: var(--text); }
.project-filters button [data-i18n] { font: inherit; color: inherit; margin-left: 0; }
.sample-notice > [data-sample-notice] { width: auto; height: auto; border-radius: 0; background: none; }
.footer-contact [data-i18n] { margin-left: 0; font: inherit; color: inherit; }
.hello-bottom a [data-i18n] { color: inherit; }
.dialog-hint .close-hint { float: none; color: inherit; }
.explorer-note p, .about-outline [data-i18n], #contact-description { white-space: pre-line; }
.hero-role [data-profile] { min-width: 0; }
.hero-role > [aria-hidden] { flex-shrink: 0; }
.game-overlay { padding: 15px; }
.game-overlay h2 { line-height: 1.4; }
.game-overlay p { line-height: 1.7; max-width: 260px; }
.game-state { min-width: 0; }
.game-state [data-snake-status] { overflow-wrap: anywhere; line-height: 1.5; }
.game-instructions { flex-wrap: wrap; }
.project-titleline { align-items: baseline; }
.project-card { display: flex; flex-direction: column; }
.project-card-content { flex: 1; display: flex; flex-direction: column; }
.project-bottom { margin-top: auto; }
html[lang="en"] .hero-role { font-size: clamp(12px, 1.25vw, 18px); letter-spacing: 0; }
html[lang="zh-CN"] .hero h1 { font-size: clamp(43px, 4.8vw, 75px); letter-spacing: -2px; }
@media (max-width: 940px) {
  .header-actions { gap: 18px; padding: 0 15px; }
  .sample-notice { max-width: 260px; line-height: 1.6; }
  .hero-actions { flex-wrap: wrap; }
  .hero-code-footer { overflow-wrap: anywhere; }
}
@media (max-width: 720px) {
  .header-actions { gap: 18px; padding: 0 16px; }
  .language-toggle { min-width: 40px; min-height: 34px; }
  .hero-role { flex-wrap: wrap; }
  .hero-role [data-profile] { flex: 0 1 auto; }
  html[lang="en"] .hero-role { font-size: 13px; }
  html[lang="zh-CN"] .hero h1 { font-size: clamp(36px, 8.5vw, 60px); }
  .projects-heading h1 { font-size: 25px; }
  .sample-notice { max-width: none; }
  .hello-bottom { gap: 15px; padding: 12px 20px; }
  .hello-bottom a { text-align: right; }
  .dialog-hint { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .dialog-hint span:last-child { float: none; width: 100%; line-height: 1.6; }
}
@media (max-width: 420px) {
  .brand { padding: 0 14px; gap: 9px; font-size: 14px; }
  .brand-dot { margin-left: -8px; }
  .header-actions { gap: 13px; padding: 0 12px 0 8px; }
  .menu-toggle { width: 44px; padding: 0 13px; flex-shrink: 0; }
  .language-toggle { min-width: 38px; padding: 8px; }
  html[lang="en"] .hero-role { font-size: 11px; gap: 5px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { font-size: 10px; gap: 9px; padding: 12px 10px; }
  .hero-code-footer { font-size: 9px; }
}
/* The vertical scrollbar must not force a horizontal scrollbar at 320px. */
html { min-width: 0; }
@media (max-width: 350px) {
  .header-actions .command-trigger { display: none; }
}
