:root {
  color-scheme: dark;
  --bg: #101212;
  --surface: #151818;
  --terminal: #101414;
  --panel: #191d1d;
  --fg: #ededdf;
  --muted: #929b96;
  --line: #303735;
  --accent: #efb574;
  --accent-ink: #171510;
  --green: #a6c9ad;
  --grid: #c3d5bf05;
  --glow: #d6ad7020;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", "PingFang SC", "Microsoft YaHei", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2eb;
  --surface: #f9f8f2;
  --terminal: #faf9f3;
  --panel: #eeeee5;
  --fg: #282e29;
  --muted: #667269;
  --line: #d1d5c9;
  --accent: #976023;
  --accent-ink: #fffaf0;
  --green: #41714f;
  --grid: #23352306;
  --glow: #d6ad702e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); }
.period { color: var(--accent); }
.page-shell { width: min(1120px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: fixed; left: 20px; top: -100px; background: var(--accent); color: var(--accent-ink); padding: 14px; z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; font: 15px var(--mono); letter-spacing: -.06em; white-space: nowrap; }
.wordmark>.muted { letter-spacing: -.06em; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 8px; margin-right: 13px; font-size: 20px; }
.brand-icon span { color: var(--accent); }
.profile-location { white-space: nowrap; }
.profile-location time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.separator { color: var(--line); padding: 0 5px; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px color-mix(in srgb, var(--green) 20%, transparent); }
.header-actions { display: flex; align-items: center; gap: 23px; }
.icon-button { background: none; color: var(--accent); font-size: 22px; width: 30px; height: 36px; }
.header-github { font-size: 12px; }
.header-github:hover, .site-footer a:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; padding: 36px 0 32px; align-items: center; }
.eyebrow { font: 9px var(--mono); letter-spacing: .14em; margin: 0 0 34px; display: flex; gap: 12px; align-items: center; }
.tiny-cross { color: var(--accent); font-size: 20px; line-height: 10px; }
.hello { font-size: 24px; margin: 0 0 3px; color: var(--muted); letter-spacing: -.025em; }
.greet { font-size: clamp(45px, 6.6vw, 82px); font-weight: 650; line-height: 1.13; letter-spacing: -.065em; margin: 0 0 23px; width: fit-content; cursor: default; }
.greet .name-primary, .greet .name-reveal { display: block; white-space: nowrap; }
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.lens { position: relative; display: block; --mx: 50%; --my: 50%; --r: 0px; transition: --r .2s ease; }
.greet:hover .lens, .greet.lens-touch .lens { --r: .77em; }
.greet .name-reveal { position: absolute; inset: 0; text-align: center; z-index: 2; font-size: 1em; align-content: center; letter-spacing: .03em; color: var(--accent-ink); clip-path: circle(var(--r) at var(--mx) var(--my)); }
.greet .name-reveal .period { color: inherit; }
.lens:before { content: ""; position: absolute; left: var(--mx); top: var(--my); width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); background: var(--accent); border-radius: 50%; z-index: 1; pointer-events: none; }
.greet:focus-visible .name-primary { opacity: 0; }
.greet:focus-visible .name-reveal { clip-path: none; color: var(--fg); }
.greet:focus-visible .lens:before { display: none; }

.profile { display: grid; gap: 10px; margin: 0; font-size: 13px; }
.profile>div { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: center; }
.profile dt { display: flex; align-items: center; color: var(--muted); }
.profile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.profile svg.mark { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.profile dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.profile a[href^="mailto:"], .profile a[href$="z1cheng"] { font-family: var(--mono); }
.profile a { color: var(--accent); }
.companion { position: relative; min-width: 0; }
.stage-heading { display: flex; justify-content: space-between; align-items: center; font: 8px var(--mono); letter-spacing: .08em; }
.stage-heading>span:first-child { display: flex; gap: 8px; align-items: center; }
.cat-stage { height: 239px; position: relative; isolation: isolate; }
.cat-stage:before { content: ""; position: absolute; inset: 10% 0 -20%; background: radial-gradient(ellipse, var(--glow), transparent 67%); z-index: -1; }
.cat-touch { position: absolute; width: 231px; height: 231px; top: 19px; left: 50%; transform: translateX(-50%); background: none; padding: 0; border-radius: 50%; cursor: grab; z-index: 2; user-select: none; }
.cat-touch:active { cursor: grabbing; }
.cat-touch svg { height: 100%; width: 100%; overflow: visible; filter: drop-shadow(0 12px 13px #0002); }
#head { transform-origin: 130px 150px; transition: transform .5s ease; }
#tail { transform-origin: 188px 224px; animation: tail 3.4s ease-in-out infinite; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 6.4s ease-in-out infinite; }
.eyes-happy, .eyes-sleep, .blush, .sleep-symbols, .pet-sparkles { opacity: 0; transition: opacity .2s; }
.eyes-open { transition: opacity .2s; }
.companion[data-state="happy"] .eyes-open, .companion[data-state="drowsy"] .eyes-open, .companion[data-state="sleeping"] .eyes-open { opacity: 0; }
.companion[data-state="happy"] .eyes-happy, .companion[data-state="happy"] .blush, .companion[data-state="happy"] .pet-sparkles { opacity: 1; }
.companion[data-state="happy"] #head { transform: rotate(-7deg) translateY(-3px); }
.companion[data-state="happy"] #tail { animation-duration: .7s; }
.companion[data-state="happy"][data-pet-zone="chin"] #head { transform: translateY(-7px) rotate(4deg); }
.companion[data-state="drowsy"] .eyes-sleep, .companion[data-state="sleeping"] .eyes-sleep, .companion[data-state="sleeping"] .sleep-symbols { opacity: 1; }
.companion[data-state="drowsy"] #head { transform: rotate(5deg) translateY(4px); }
.companion[data-state="sleeping"] #head { transform: translateY(9px) rotate(8deg); }
.companion[data-state="sleeping"] #tail { animation-play-state: paused; }
.companion[data-state="sleeping"] .cat { animation: breathe 5s ease-in-out infinite; }
.sleep-symbols { color: var(--accent); }
.sleep-symbols text { animation: dream 3s ease-in-out infinite; }
.sleep-symbols text:nth-child(2) { animation-delay: .4s; }
.sleep-symbols text:nth-child(3) { animation-delay: .8s; }
.pet-sparkles { animation: hearts 2s ease-in-out infinite; }
.orbit { position: absolute; left: 50%; top: 49%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); z-index: -1; opacity: .6; }
.orbit-one { width: 246px; height: 246px; }
.orbit-two { width: 296px; height: 296px; border-style: dashed; opacity: .35; }
.stage-cross { position: absolute; font: 16px var(--mono); color: var(--muted); }
.cross-one { left: 12%; top: 31%; }
.cross-two { right: 10%; bottom: 17%; }
.stage-floor { position: absolute; bottom: 0; left: 8%; right: 8%; height: 78px; background: repeating-linear-gradient(0deg, transparent 0 19px, var(--line) 20px 21px), repeating-linear-gradient(90deg, transparent 0 24px, var(--line) 25px 26px); transform: perspective(150px) rotateX(65deg); mask-image: radial-gradient(ellipse, #0008, transparent 65%); z-index: -1; }
.stage-label { position: absolute; left: 0; bottom: 25px; color: var(--muted); font: 7px/1.7 var(--mono); letter-spacing: .1em; }
.cat-message { position: absolute; right: 0; top: 24px; z-index: 3; background: var(--panel); border: 1px solid var(--line); border-radius: 8px 8px 8px 0; padding: 8px 11px; max-width: 197px; color: var(--accent); font: 10px/1.5 var(--mono); pointer-events: none; transform: rotate(3deg); transition: opacity .2s; }
.cat-message:empty { opacity: 0; }
.cat-telemetry { display: flex; justify-content: space-between; gap: 15px; padding-top: 13px; border-top: 1px solid var(--line); font: 8px var(--mono); letter-spacing: .04em; }
#state-label { color: var(--green); }
#affection-value { color: var(--muted); }
.cat-controls { display: flex; justify-content: center; gap: 10px; margin-top: 17px; }
.pill { border: 1px solid var(--line); border-radius: 6px; padding: 10px 17px; min-height: 40px; background: var(--panel); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.pill>span:first-child { font-size: 16px; }
.pill.primary { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.pill span[lang] { font-size: 10px; opacity: .7; }
.pill:hover { border-color: var(--accent); }
.pet-hint { text-align: center; margin: 12px 0 0; color: var(--muted); font: 8px/1.6 var(--mono); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 14px; font: 8px var(--mono); letter-spacing: .09em; color: var(--muted); }
.section-heading h2 { font: inherit; margin: 0; color: var(--fg); }
.section-heading h2 span { color: var(--accent); margin-right: 10px; }
.terminal { background: var(--terminal); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 15px 50px #0002; overflow: hidden; scroll-margin: 24px; }
.terminal-top { min-height: 48px; background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 19px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.terminal-title { display: flex; align-items: center; gap: 20px; font: 11px var(--mono); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; background: #bf7568; border-radius: 50%; }
.window-dots i:nth-child(2) { background: #c5a967; }
.window-dots i:nth-child(3) { background: #8aaa84; }
.terminal-tools { display: flex; align-items: center; gap: 17px; }
.session-label { font: 7px var(--mono); display: flex; gap: 7px; align-items: center; color: var(--muted); letter-spacing: .06em; }
.terminal-tool { background: none; padding: 6px; color: var(--muted); font: 10px var(--mono); }
#terminal-expand { font-size: 19px; }
.terminal-tool:hover { color: var(--accent); }
.terminal-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 240px; }
.terminal-main { min-width: 0; display: flex; flex-direction: column; }
.terminal-output { height: 248px; overflow: auto; padding: 23px 26px 17px; font: 13px/1.9 var(--mono); color: var(--muted); scrollbar-color: var(--line) transparent; scrollbar-width: thin; overscroll-behavior: contain; }
.terminal.expanded .terminal-output { height: 520px; height: min(65dvh, 600px); }
.terminal-line { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-line+.terminal-line { margin-top: 5px; }
.terminal-line.command { margin-top: 18px; color: var(--fg); }
.terminal-line.success, .terminal-line.heading { color: var(--accent); }
.terminal-line.banner { font-size: 21px; font-weight: 600; letter-spacing: .02em; color: var(--fg); margin-bottom: 3px; }
.terminal-line.system { color: var(--green); font-size: 10px; }
.terminal-line.error { color: #e79380; }
[data-theme="light"] .terminal-line.error { color: #ac402c; }
.terminal-line a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
#terminal-form { display: flex; align-items: center; gap: 10px; margin: auto 24px 0; padding: 16px 0; border-top: 1px solid var(--line); font: 12px var(--mono); }
#terminal-form label { white-space: nowrap; }
#terminal-form label>span:first-child { color: var(--green); }
.prompt-host { color: var(--muted); }
.prompt-path { color: var(--accent); padding: 0 5px; }
#terminal-form b { color: var(--accent); font-weight: 400; }
#terminal-input { flex: 1; min-width: 0; width: 100%; border: 0; border-radius: 2px; background: none; padding: 6px 0; color: var(--fg); caret-color: var(--accent); font: 12px var(--mono); }
#terminal-input::placeholder { color: var(--muted); opacity: .75; }
#terminal-input:focus-visible { outline-offset: 3px; }
#terminal-form>button { background: var(--panel); border: 1px solid var(--line); color: var(--accent); border-radius: 5px; width: 30px; height: 30px; flex-shrink: 0; }
.command-guide { padding: 23px 20px 17px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 38%, var(--terminal)); }
.guide-label { display: flex; justify-content: space-between; color: var(--muted); margin: 0 0 14px; font: 8px var(--mono); letter-spacing: .1em; }
.guide-label>span { color: var(--accent); }
.command-guide>button { display: grid; grid-template-columns: 1fr 18px; text-align: left; background: none; padding: 8px 0; width: 100%; }
.command-guide code { font: 11px var(--mono); color: var(--accent); }
.command-guide button>span { font-size: 10px; color: var(--muted); margin-top: 4px; grid-column: 1; }
.command-guide button>i { font-style: normal; grid-row: 1/3; grid-column: 2; color: var(--muted); align-self: center; opacity: 0; }
.command-guide button:hover>i, .command-guide button:focus-visible>i { opacity: 1; }
.command-guide button:hover code { text-decoration: underline; text-underline-offset: 4px; }
.guide-foot { color: var(--muted); font: 9px/1.7 var(--mono); margin: 17px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.terminal-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 19px; background: var(--panel); border-top: 1px solid var(--line); font: 8px var(--mono); color: var(--muted); }
.terminal-bottom>span:first-child { display: flex; align-items: center; gap: 7px; }
.terminal-cat-state { color: var(--green); }
kbd { font: inherit; color: var(--fg); }
.hint-divider { margin: 0 6px; color: var(--line); }
.below-terminal { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 9px/1.7 var(--mono); margin-top: 14px; }
.below-terminal button { background: none; color: var(--fg); font: inherit; padding: 0; }
.below-terminal code { font: inherit; color: var(--accent); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; border-top: 1px solid var(--line); padding: 26px 0 30px; font: 10px var(--mono); color: var(--muted); }
.site-footer>div { display: flex; flex-wrap: wrap; gap: 14px 27px; }
.footer-message { color: var(--fg); padding-left: 12px; }
.noscript { padding: 25px; color: var(--accent); text-align: center; }
@keyframes tail { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes blink { 0%,90%,100% { transform: scaleY(1); } 93%,95% { transform: scaleY(.08); } }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes dream { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-8px); opacity: 1; } }
@keyframes hearts { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
html[data-motion="off"] *, html[data-motion="off"] *:before, html[data-motion="off"] *:after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
html[data-motion="off"] { scroll-behavior: auto; }
.page-hidden * { animation-play-state: paused!important; }
@media (max-width: 1050px) {
  .page-shell { width: calc(100% - 64px); }.hero { gap: 42px; padding-top: 36px; }.greet { font-size: 7.3vw; }.header-actions { gap: 15px; }.stage-heading { font-size: 7px; }.terminal-workspace { grid-template-columns: minmax(0,1fr) 214px; }.profile { gap: 10px; }
}
@media (max-width: 760px) {
  .page-shell { width: calc(100% - 40px); }.site-header { height: 74px; }.hero { gap: 25px; grid-template-columns: 1fr 1fr; padding-top: 35px; }.greet { font-size: 7.2vw; }.hello { font-size: 21px; }.eyebrow { font-size: 7px; gap: 6px; margin-bottom: 24px; }.profile { gap: 10px; font-size: 12px; }.cat-touch { width: 200px; height: 200px; top: 33px; }.orbit-one { width: 208px; height: 208px; }.orbit-two { width: 242px; height: 242px; }.cat-stage { height: 240px; }.stage-label { display: none; }.stage-heading { font-size: 6px; }.cat-message { font-size: 8px; max-width: 155px; top: 25px; }.cat-telemetry { font-size: 6px; }.pill { font-size: 10px; padding: 9px 12px; gap: 6px; }.pill span[lang] { display: none; }.pet-hint { font-size: 7px; }.terminal-workspace { grid-template-columns: minmax(0,1fr); }.command-guide { display: none; }.terminal-output { height: 275px; }.section-heading { font-size: 7px; }.section-count { display: none; }.below-terminal { font-size: 8px; }.below-terminal>span:last-child { display: none; }
}
@media (max-width: 520px) {
  .page-shell { width: calc(100% - 36px); }.wordmark { font-size: 13px; }.brand-icon { width: 30px; height: 30px; margin-right: 9px; font-size: 18px; }.header-actions { gap: 12px; }.header-github { font-size: 10px; }.hero { display: flex; flex-direction: column; gap: 36px; padding: 35px 0 35px; }.intro { width: 100%; }.eyebrow { font-size: 8px; margin-bottom: 22px; }.hello { font-size: 22px; }.greet { font-size: clamp(50px, 14vw, 72px); margin-bottom: 17px; }.profile { font-size: 13px; gap: 10px; }.companion { width: 100%; max-width: 380px; }.stage-heading { font-size: 8px; }.cat-touch { width: 220px; height: 220px; top: 16px; }.cat-stage { height: 242px; }.orbit-one { width: 226px; height: 226px; }.orbit-two { width: 267px; height: 267px; }.cat-message { font-size: 9px; }.stage-label { display: block; font-size: 6px; }.cat-telemetry { font-size: 8px; }.pill { font-size: 11px; min-height: 44px; }.pill span[lang] { display: inline; }.pet-hint { font-size: 7px; }.terminal-top { padding: 0 12px; min-height: 43px; }.terminal-title { gap: 11px; font-size: 10px; }.terminal-tools { gap: 6px; }.session-label { display: none; }.terminal-output { font-size: 12px; padding: 19px 15px; height: 290px; }.terminal-line.banner { font-size: 19px; }#terminal-form { margin: 0 14px; padding: 13px 0; gap: 8px; font-size: 11px; }#terminal-input { font-size: 16px; }.prompt-host, .prompt-path { display: none; }#terminal-form>button { width: 35px; height: 35px; }.terminal-bottom { flex-wrap: wrap; padding: 10px 13px; gap: 9px; font-size: 7px; }.terminal-cat-state { display: none; }.hint-divider { margin: 0 3px; }.site-footer { margin-top: 30px; font-size: 9px; gap: 15px; flex-wrap: wrap; padding: 22px 0; }.site-footer>div { gap: 20px; }.footer-message { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *:before, html:not([data-motion="on"]) *:after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
  html:not([data-motion="on"]) { scroll-behavior: auto; }
}

/* Chinese labels need a little more room than Latin microcopy. */
.eyebrow, .stage-heading, .cat-telemetry, .section-heading, .guide-label { font-size: 10px; letter-spacing: .04em; }
.stage-label, .session-label, .terminal-bottom { font-size: 9px; }
.pet-hint, .below-terminal, .guide-foot, .cat-message, .command-guide button>span { font-size: 11px; }
@media (max-width: 520px) {
  .header-actions { gap: 8px; }
  .site-header { gap: 12px; }
  .terminal-bottom, .stage-label { font-size: 9px; }
  .pet-hint { font-size: 9px; }
  .terminal-bottom { flex-wrap: wrap; }
}

/* Single-page profile with a native modal terminal drawer. */
body { isolation: isolate; }
.page-shell { position: relative; z-index: 1; }
.hero { display: flex; align-items: center; min-height: calc(100svh - 190px); padding: 65px 0; }
.hero-content { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 80px; width: 100%; }
.site-footer { margin-top: 0; padding-bottom: 26px; align-items: center; flex-wrap: wrap; }
.site-footer>div { margin-left: auto; align-items: center; }
.terminal-launcher { position: relative; flex: none; display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0; font: 12px var(--mono); white-space: nowrap; border: 0; border-radius: 0; background: none; color: var(--muted); box-shadow: none; cursor: pointer; transition: color .2s; }
.terminal-launcher:hover { color: var(--accent); }
.launcher-glyph { color: var(--accent); font: 16px var(--mono); animation: cursor-glow 2s ease-in-out infinite; }
@keyframes cursor-glow { 50% { opacity: .4; } }
html.terminal-open { overflow: hidden; }
dialog.console-section { position: fixed; inset: auto 0 0; width: min(1120px, calc(100% - 40px)); max-width: none; max-height: 92dvh; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--fg); overflow: auto; overscroll-behavior: contain; box-shadow: 0 -20px 100px #0003; }
dialog.console-section:not([open]) { display: none; }
dialog.console-section[open] { animation: terminal-arrive .4s cubic-bezier(.16,1,.3,1); }
dialog::backdrop { background: #080b1470; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
@keyframes terminal-arrive { from { opacity: 0; transform: translateY(70px) scale(.98); } to { opacity: 1; transform: none; } }
.console-section .section-heading { margin-bottom: 20px; }
.console-section .terminal-output { height: clamp(200px, 40dvh, 420px); }
.console-section .terminal.expanded .terminal-output { height: 55dvh; }
#terminal-close { font-size: 22px; min-width: 36px; }
.scene-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient-orbit { position: absolute; width: 70vw; height: 70vw; right: -28vw; top: 5vh; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; }
.ambient-orbit:before { content: ""; position: absolute; inset: 30px; border: 1px dashed color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 50%; }
@media (max-width: 1050px) { .hero-content { gap: 42px; } }
@media (max-width: 760px) { .hero-content { gap: 25px; }.terminal-launcher { min-height: 44px; margin-left: auto; }.site-footer>div { margin-left: 0; } }
@media (max-width: 520px) {
  .hero { padding: 35px 0; }.hero-content { display: flex; flex-direction: column; gap: 32px; }.hero .intro { width: 100%; }
  dialog.console-section { width: 100%; max-height: 94dvh; height: 94dvh; padding: 20px 12px max(16px, env(safe-area-inset-bottom)); }
  .console-content { height: 100%; display: flex; flex-direction: column; }
  .console-section .terminal { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .console-section .terminal-workspace, .console-section .terminal-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .console-section .terminal-output, .console-section .terminal.expanded .terminal-output { height: auto; min-height: 0; flex: 1; }
  .console-section .command-guide, #terminal-expand { display: none; }
  .console-section .below-terminal { flex: none; margin-top: 12px; }
}
html[data-motion="off"] .launcher-glyph, html[data-motion="off"] dialog.console-section[open] { animation: none; }
@media (prefers-reduced-motion: reduce) { .launcher-glyph, dialog.console-section[open] { animation: none; } }

@media (max-width: 520px) { .header-actions { gap: 10px; }.terminal-launcher { font-size: 10px; gap: 4px; }.launcher-glyph { font-size: 13px; } }
