@font-face {
  font-family: "brandon-grot-w01-light";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/brandon-grot-w01-light.woff2") format("woff2");
  unicode-range: U+0002, U+0009-000A, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+0160-0161, U+0178, U+017D-017E, U+0192, U+02C6, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122;
  font-display: swap;
}

@font-face {
  font-family: "din-next-w01-light";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/din-next-w01-light.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00FF, U+0110, U+0131, U+0152-0153, U+0160-0161, U+0178, U+017D-017E, U+0192, U+02C6-02C7, U+02DA, U+02DC, U+03BC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
  font-display: swap;
}

:root {
  --font-title: "brandon-grot-w01-light", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-menu: "din-next-w01-light", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "brandon-grot-w01-light", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-page: #000000;
  --color-surface-light: #191919;
  --color-surface-hover: #5f5f5f;
  --color-text-primary: #8f8f8f;
  --color-text-secondary: #3f3f3f;
  --color-text-strong: #f1f1f1;
  --color-border-secondary: #333333;
  --color-focus: rgba(39, 93, 197, 1);
  --sidebar-width: 410px;
  --page-max: 800px;
  background: var(--color-page);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-page);
}

body.has-lightbox {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.previewable-image {
  cursor: zoom-in;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--color-page);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.site-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-self: start;
  width: var(--sidebar-width);
  min-height: 100vh;
  padding: 49px 34px 38px 66px;
  background: var(--color-page);
}

.site-header {
  display: grid;
  gap: 18px;
}

.brand {
  display: grid;
  gap: 0;
  max-width: 190px;
  color: var(--color-text-strong);
  font-family: "times new roman", times, serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.08;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 72px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 32px;
  max-width: 100%;
  color: var(--color-text-primary);
  font-family: var(--font-menu);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--color-text-strong);
}

.nav a.is-active {
  justify-content: center;
  border-radius: 30px;
  padding: 0 10px;
  margin-left: -10px;
  background: var(--color-surface-hover);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: fit-content;
  min-height: 40px;
  border: 1.5px solid var(--color-border-secondary);
  border-radius: 30px;
  padding: 0 18px;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.site-footer {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.page-frame {
  min-width: 0;
  padding: 188px 8vw 90px 260px;
  background: var(--color-page);
}

.page,
.home-page,
.bio-page {
  width: min(100%, var(--page-max));
}

.project-page {
  width: min(100%, 800px);
}

.home-page {
  display: grid;
  gap: 24px;
  padding-top: 2px;
}

.home-photo {
  width: min(100%, 800px);
  margin: 0;
  background: var(--color-surface-light);
}

.home-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.home-quote {
  max-width: 640px;
  margin: 0;
  font-family: "times new roman", times, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

.home-content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 800px);
  border-top: 1px solid #c9c9c9;
  padding-top: 18px;
  color: #9b9b9b;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}

.home-content-footer p {
  margin: 0;
}

.home-content-footer span {
  color: #000000;
  font-size: 14px;
  letter-spacing: -4px;
}

.chat-home {
  width: min(100%, 800px);
  gap: 22px;
}

.chat-hero {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.chat-kicker {
  margin: 0;
  color: #9c9c9c;
  font-family: var(--font-menu);
  font-size: 14px;
  line-height: 1.4;
}

.chat-hero h1 {
  margin: 0;
  color: #1d1d1f;
  font-family: "times new roman", times, serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
}

.chat-hero p {
  max-width: 640px;
  margin: 0;
  color: #777777;
  font-size: 16px;
  line-height: 1.7;
}

.chat-panel {
  display: grid;
  gap: 18px;
  width: min(100%, 760px);
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  padding: 20px;
  background: #fbfbfb;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
}

.chat-stream {
  display: grid;
  max-height: min(52vh, 540px);
  overflow: auto;
  gap: 14px;
  padding-right: 4px;
}

.chat-message {
  display: flex;
}

.chat-message.is-user {
  justify-content: flex-end;
}

.chat-bubble {
  width: fit-content;
  max-width: min(100%, 610px);
  border-radius: 18px;
  padding: 13px 15px;
  background: #ffffff;
  color: #4e4e4e;
  font-size: 15px;
  line-height: 1.65;
}

.chat-message.is-user .chat-bubble {
  max-width: min(100%, 520px);
  background: #222222;
  color: #ffffff;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble p + p {
  margin-top: 9px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip,
.chat-form button,
.chat-reference-links a {
  border: 0;
  border-radius: 999px;
  background: #eeeeee;
  color: #444444;
  cursor: pointer;
  font-family: var(--font-menu);
  font-size: 14px;
  line-height: 1;
}

.suggestion-chip {
  min-height: 34px;
  padding: 0 13px;
}

.suggestion-chip:hover,
.chat-reference-links a:hover {
  background: #dedede;
  color: #000000;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-form input {
  min-width: 0;
  height: 46px;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #222222;
  font: inherit;
  font-size: 15px;
}

.chat-form input::placeholder {
  color: #aaaaaa;
}

.chat-form button {
  min-width: 78px;
  height: 46px;
  padding: 0 18px;
  background: #171717;
  color: #ffffff;
}

.chat-reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(100%, 760px);
}

.chat-reference-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
}

.retro-home {
  width: min(100%, 860px);
  gap: 0;
}

.retro-computer {
  width: min(100%, 790px);
  filter: drop-shadow(0 34px 56px rgba(38, 33, 18, 0.24));
  perspective: 1200px;
}

.retro-monitor {
  position: relative;
  padding: 30px 34px 86px;
  border: 1px solid #a9a28b;
  border-radius: 24px 24px 18px 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.62), transparent 35%),
    linear-gradient(180deg, #e6e0c9, #c7bea5);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.28),
    inset 0 -20px 30px rgba(92, 82, 62, 0.2),
    0 2px 0 #8e866d;
  transform: rotateX(1deg);
}

.retro-monitor::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -22px;
  bottom: 24px;
  width: 44px;
  border-radius: 0 22px 18px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent),
    #b5ad92;
  box-shadow:
    inset 8px 0 16px rgba(255, 255, 255, 0.18),
    inset -8px 0 12px rgba(65, 57, 38, 0.18);
  transform: skewY(8deg);
  z-index: -1;
}

.retro-monitor::after {
  content: "";
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: -14px;
  height: 26px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(#b8ae94, #968b73);
  filter: blur(0.2px);
  z-index: -1;
}

.retro-screen {
  position: relative;
  overflow: hidden;
  border: 12px solid #161611;
  border-radius: 5px;
  background: #111111;
  aspect-ratio: 4 / 3;
  box-shadow:
    inset 0 0 0 1px #000000,
    0 0 0 3px rgba(255, 255, 255, 0.2),
    0 18px 24px rgba(70, 60, 40, 0.22);
}

.retro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 18%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

.retro-desktop {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.88), transparent 18%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #cfe3ec, #eef5f5 42%, #d7e8ef);
  font-family: "Tahoma", var(--font-menu);
}

.mac-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  background: linear-gradient(#ffffff, #e9eef0);
  color: #1c252a;
  font-size: 9px;
  line-height: 1;
}

.mac-menu-left {
  font-weight: 700;
  word-spacing: 5px;
}

.retro-hello {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 1;
  color: rgba(80, 58, 150, 0.16);
  font-family: Georgia, serif;
  font-size: clamp(60px, 12vw, 120px);
  font-style: italic;
  line-height: 1;
  transform: translateX(-50%) rotate(-4deg);
  pointer-events: none;
}

.dock-icon {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 64px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  font-family: "Lucida Grande", "Tahoma", var(--font-menu);
  font-size: 10px;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.dock-icon:hover .dock-icon-art,
.dock-icon:focus-visible .dock-icon-art {
  transform: translateY(-4px) scale(1.08);
}

.dock-icon-art {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fefefe, #83c5ff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 5px 10px rgba(0, 0, 0, 0.28);
  transition: transform 150ms ease;
}

.dock-icon-art::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.dock-icon-art.is-capcut {
  background: linear-gradient(135deg, #101010, #02dfd7);
}

.dock-icon-art.is-capcut::after {
  content: "CC";
}

.dock-icon-art.is-effects {
  background: linear-gradient(135deg, #6724dc, #ff3b91);
}

.dock-icon-art.is-effects::after {
  content: "FX";
}

.dock-icon-art.is-aigc {
  background: linear-gradient(135deg, #222222, #f3c54c);
}

.dock-icon-art.is-aigc::after {
  content: "AI";
}

.dock-icon-art.is-bio {
  border-radius: 50%;
  background: linear-gradient(135deg, #eaeaea, #5a89d8);
}

.dock-icon-art.is-bio::after {
  content: "HZ";
}

.dock-icon-art.is-mapping {
  background: linear-gradient(135deg, #1a1b2f, #f16b34);
}

.dock-icon-art.is-mapping::after {
  content: "3D";
}

.dock-icon-art.is-interactive {
  background: linear-gradient(135deg, #0d6efd, #8df4ce);
}

.dock-icon-art.is-interactive::after {
  content: "IV";
}

.qq-buddy-window {
  position: absolute;
  left: 18px;
  top: 34px;
  z-index: 4;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  width: 148px;
  height: calc(100% - 112px);
  overflow: hidden;
  border: 1px solid #1470b8;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(#bcecff, #63b5ec 72%, #35a8df);
  box-shadow: 0 10px 18px rgba(0, 47, 88, 0.28);
}

.qq-titlebar-small {
  min-height: 23px;
  padding: 3px 5px;
  font-size: 11px;
}

.qq-buddy-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  row-gap: 1px;
  align-items: center;
  padding: 7px;
  color: #063e79;
  font-size: 11px;
}

.qq-buddy-card small {
  grid-column: 2;
  color: #1c5c82;
  font-size: 9px;
}

.qq-avatar-large {
  grid-row: span 2;
  width: 30px;
  height: 30px;
}

.qq-search {
  margin: 0 7px 6px;
  border: 1px solid #7eb2d7;
  border-radius: 12px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #6a8aa4;
  font-size: 10px;
}

.qq-contact-list {
  display: grid;
  align-content: start;
  gap: 3px;
  margin: 0 6px;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.qq-contact-list li {
  display: grid;
  grid-template-columns: 23px 1fr;
  column-gap: 5px;
  align-items: center;
  min-height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.52);
  color: #123f66;
  font-size: 10px;
}

.qq-contact-list small {
  grid-column: 2;
  color: #55758c;
  font-size: 8px;
}

.qq-contact-avatar {
  grid-row: span 2;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #6bb9ff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.qq-contact-avatar.is-pink {
  background: linear-gradient(135deg, #ffffff, #f56cc1);
}

.qq-contact-avatar.is-gold {
  background: linear-gradient(135deg, #fff1a6, #b6831f);
}

.qq-contact-avatar.is-gray {
  background: linear-gradient(135deg, #ffffff, #8794a1);
}

.qq-buddy-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  background: linear-gradient(#d9f4ff, #75c5ef);
  color: #0b5e8f;
  font-size: 10px;
}

.qq-window {
  position: absolute;
  right: 18px;
  top: 38px;
  z-index: 3;
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: min(70%, 520px);
  height: calc(100% - 102px);
  overflow: hidden;
  border: 1px solid #0f4ca8;
  border-radius: 7px 7px 3px 3px;
  background: #eef8ff;
  box-shadow: 0 12px 28px rgba(0, 34, 80, 0.38);
}

.qq-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  background: linear-gradient(#4fa4ff, #1160d8 52%, #0a45b9);
  color: #ffffff;
  font-family: "Tahoma", var(--font-menu);
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.qq-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4cc44;
  color: #1b4e9b;
  font-weight: 700;
  text-shadow: none;
}

.qq-window-controls {
  display: flex;
  gap: 4px;
}

.qq-window-controls i {
  width: 17px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  background: linear-gradient(#8fc6ff, #1c70da);
}

.qq-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 31px;
  padding: 0 9px;
  border-right: 3px solid #cbe4ff;
  border-left: 3px solid #cbe4ff;
  background: linear-gradient(#eaf8ff, #acd7f8);
  color: #174f86;
  font-size: 11px;
}

.qq-toolbar span::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  border-radius: 4px;
  vertical-align: -3px;
  background: linear-gradient(135deg, #ffffff, #3b98e7);
  box-shadow: inset 0 0 0 1px rgba(0, 66, 130, 0.16);
}

.qq-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 0;
  border: 3px solid #cbe4ff;
  border-top: 0;
}

.qq-profile {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 11px 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2)),
    #d8edff;
  color: #275075;
  font-size: 10px;
  line-height: 1.35;
  border-left: 1px solid #b7d4ef;
}

.qq-profile strong {
  color: #153c70;
  font-size: 13px;
}

.qq-profile em {
  color: #5f7f9a;
  font-size: 9px;
  font-style: normal;
}

.qq-chat {
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

.qq-window .chat-stream {
  align-content: start;
  max-height: none;
  min-height: 0;
  gap: 8px;
  padding: 12px;
}

.qq-window .chat-bubble {
  max-width: min(100%, 340px);
  border: 1px solid #cbddec;
  border-radius: 4px;
  padding: 8px 10px;
  background: #f7fbff;
  color: #26384a;
  font-family: "Tahoma", var(--font-menu);
  font-size: 12px;
  line-height: 1.55;
}

.qq-window .chat-message.is-user .chat-bubble {
  border-color: #7bb1eb;
  background: #d7edff;
  color: #14385f;
}

.qq-window .chat-bubble p + p {
  margin-top: 6px;
}

.qq-window .chat-suggestions {
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #d8e7f4;
  background: #f2f8ff;
}

.qq-window .suggestion-chip {
  min-height: 26px;
  border: 1px solid #a9c7e4;
  border-radius: 3px;
  padding: 0 8px;
  background: linear-gradient(#ffffff, #dbeeff);
  color: #174878;
  font-family: "Tahoma", var(--font-menu);
  font-size: 12px;
}

.qq-window .chat-form {
  grid-template-columns: 1fr 58px;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid #d8e7f4;
  background: #edf6ff;
}

.qq-window .chat-form input {
  height: 32px;
  border: 1px solid #9fbfe0;
  border-radius: 3px;
  padding: 0 9px;
  font-family: "Tahoma", var(--font-menu);
  font-size: 12px;
}

.qq-window .chat-form button {
  min-width: 0;
  height: 32px;
  border: 1px solid #1d65b4;
  border-radius: 3px;
  padding: 0;
  background: linear-gradient(#7fbdff, #2475d1);
  color: #ffffff;
  font-family: "Tahoma", var(--font-menu);
  font-size: 12px;
}

.mac-dock {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100% - 38px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  padding: 7px 12px 6px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(218, 229, 240, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(35, 54, 80, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}

.retro-front-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 46px;
}

.retro-badge {
  position: absolute;
  left: 34px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(0, 0, 0, 0.15) 42% 44%, transparent 44%),
    linear-gradient(135deg, #58a6ff 0 22%, #f4e34e 22% 44%, #ef5c53 44% 66%, #62b36d 66%);
  box-shadow:
    inset 0 0 0 2px #f4eed5,
    0 1px 2px rgba(0, 0, 0, 0.22);
}

.retro-floppy {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 164px;
  height: 13px;
  border-radius: 1px;
  background:
    linear-gradient(#5e5037, #251c11 52%, #8e7443 54%, #3b2f1e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(67, 55, 35, 0.32);
  transform: translateX(-50%);
}

.retro-power-light {
  position: absolute;
  right: 40px;
  bottom: 23px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2d3324;
  box-shadow: 0 0 0 1px rgba(40, 36, 26, 0.4);
}

.theme-light {
  --color-page: #ffffff;
  --color-surface-light: #f5f5f5;
  --color-surface-hover: #414141;
  --color-text-primary: #414141;
  --color-text-secondary: #636363;
  --color-text-strong: #000000;
  background: #ffffff;
}

.theme-effects {
  --color-page: #ffffff;
  --color-surface-light: #f5f5f5;
  --color-surface-hover: #414141;
  --color-text-primary: #414141;
  --color-text-secondary: #636363;
  --color-text-strong: #000000;
  --color-border-secondary: #d8d8d8;
  background: #ffffff;
}

.theme-effects .site-footer {
  color: var(--color-text-secondary);
}

.theme-light .page-frame {
  padding-top: 57px;
  padding-left: clamp(260px, calc(50vw - var(--sidebar-width) - 290px), 420px);
}

.theme-light .site-footer {
  display: none;
}

.theme-light .home-photo img {
  height: 666px;
  max-height: none;
}

.theme-light .home-quote {
  max-width: 800px;
  padding-left: 22px;
}

.theme-project .page-frame {
  padding-top: 188px;
  padding-right: 70px;
  padding-left: clamp(260px, calc(50vw - var(--sidebar-width) - 290px), 420px);
}

.page-title-block {
  display: grid;
  gap: 22px;
  max-width: 800px;
  margin-bottom: 62px;
}

.project-title,
.bio-title {
  margin: 0;
  font-family: var(--font-title);
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.project-title span {
  display: inline;
  margin-top: 0;
  color: var(--color-text-primary);
  font-size: inherit;
  font-weight: inherit;
}

.project-meta,
.section-kicker,
.bio-label {
  margin: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-menu);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.project-summary {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.plain-list {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0;
  padding-left: 20px;
}

.plain-list li {
  padding-left: 2px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.project-section {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.project-section h2 {
  display: none;
  margin: 0;
  font-family: var(--font-title);
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.project-section p,
.empty-note {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 6px;
}

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

.media-grid figure {
  margin: 0;
  background: var(--color-surface-light);
}

.media-grid img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.media-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: cover;
}

.media-grid.layout-capcut-showcase {
  grid-template-columns: 32.5% 15.25% 49.25%;
}

.media-grid.layout-capcut-showcase figure:nth-child(1) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.media-grid.layout-capcut-showcase figure:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 260 / 346;
}

.media-grid.layout-capcut-showcase figure:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
  aspect-ratio: 260 / 346;
}

.media-grid.layout-capcut-showcase figure:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  aspect-ratio: 528 / 704;
}

.media-grid.layout-capcut-showcase figure:nth-child(5) {
  grid-column: 1 / 3;
  grid-row: 4;
  aspect-ratio: 394 / 525;
}

.media-grid.layout-capcut-showcase figure:nth-child(6) {
  grid-column: 3;
  grid-row: 4;
  aspect-ratio: 394 / 525;
}

.media-grid.layout-capcut-showcase img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.layout-two-up figure {
  aspect-ratio: 394 / 221;
}

.media-grid.layout-two-up img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-stacked {
  grid-template-columns: 1fr;
}

.media-grid.layout-stacked figure {
  aspect-ratio: 16 / 9;
}

.media-grid.layout-stacked img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-portfolio-stack,
.media-grid.layout-wide-stack,
.media-grid.layout-portrait-stack {
  grid-template-columns: 1fr;
  gap: 14px;
}

.media-grid.layout-portfolio-stack figure,
.media-grid.layout-wide-stack figure,
.media-grid.layout-portrait-stack figure {
  background: transparent;
}

.media-grid.layout-portfolio-stack img,
.media-grid.layout-wide-stack img,
.media-grid.layout-portrait-stack img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-grid.layout-portrait-stack {
  max-width: 560px;
}

.media-grid.layout-photo-grid {
  display: block;
  columns: 2;
  column-gap: 12px;
}

.media-grid.layout-photo-grid figure {
  display: block;
  break-inside: avoid;
  margin: 0 0 12px;
  background: transparent;
}

.media-grid.layout-photo-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-grid.layout-motion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.media-grid.layout-motion-grid figure {
  aspect-ratio: auto;
  background: transparent;
}

.media-grid.layout-motion-grid figure:nth-child(4) {
  grid-column: auto;
  aspect-ratio: auto;
}

.media-grid.layout-motion-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-grid.layout-mapping-cover,
.media-grid.layout-mapping-stack,
.media-grid.layout-video-stack {
  grid-template-columns: 1fr;
  gap: 14px;
}

.media-grid.layout-mapping-cover figure,
.media-grid.layout-mapping-stack figure {
  aspect-ratio: 800 / 380;
  background: transparent;
}

.media-grid.layout-mapping-cover img,
.media-grid.layout-mapping-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-video-stack figure {
  line-height: 0;
  background: transparent;
}

.media-grid.layout-video-stack .media-video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-grid.layout-poster-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.media-grid.layout-poster-strip figure:nth-child(-n + 5) {
  aspect-ratio: 160 / 213;
}

.media-grid.layout-poster-strip figure:nth-child(n + 6) {
  aspect-ratio: 160 / 240;
}

.media-grid.layout-poster-strip img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-aigc-mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  aspect-ratio: 800 / 1201;
}

.media-grid.layout-aigc-mosaic figure {
  min-height: 0;
}

.media-grid.layout-aigc-mosaic figure:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.media-grid.layout-aigc-mosaic figure:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.media-grid.layout-aigc-mosaic figure:nth-child(3) {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
}

.media-grid.layout-aigc-mosaic figure:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
}

.media-grid.layout-aigc-mosaic figure:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
}

.media-grid.layout-aigc-mosaic figure:nth-child(6) {
  grid-column: 3;
  grid-row: 4;
}

.media-grid.layout-aigc-mosaic img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-two-up-plus {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-grid.layout-two-up-plus figure {
  aspect-ratio: 394 / 221;
}

.media-grid.layout-two-up-plus figure:nth-child(7) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.media-grid.layout-two-up-plus img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-gif-matrix {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.media-grid.layout-gif-matrix figure {
  aspect-ratio: 16 / 9;
}

.media-grid.layout-gif-matrix img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-cert-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.media-grid.layout-cert-strip figure {
  aspect-ratio: 267 / 378;
}

.media-grid.layout-cert-strip img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-effects-video {
  grid-template-columns: 1fr;
}

.media-grid.layout-effects-video figure {
  aspect-ratio: 800 / 476;
  background: #000000;
}

.media-grid.layout-effects-video .media-video,
.media-grid.layout-effects-video img {
  height: 100%;
  object-fit: cover;
}

.effects-showcase-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 78%, #f2a8c6 0 0.7%, transparent 0.8%),
    radial-gradient(circle at 8% 42%, #c8144e 0 7%, transparent 7.2%),
    radial-gradient(circle at 67% 12%, #6fc6d8 0 7%, transparent 7.1%),
    #030303;
  color: #ffffff;
  font-family: Impact, "Arial Black", var(--font-menu);
}

.effects-showcase-cover::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 18%;
  width: 72%;
  height: 62%;
  background:
    radial-gradient(circle at 22% 25%, #e6a1ca 0 2.5%, transparent 2.6%),
    radial-gradient(circle at 28% 25%, #e6a1ca 0 2.5%, transparent 2.6%),
    radial-gradient(circle at 34% 25%, #e6a1ca 0 2.5%, transparent 2.6%),
    linear-gradient(175deg, transparent 0 61%, #171717 61.5% 72%, transparent 72.5%),
    linear-gradient(90deg, transparent 0 15%, #214cc5 15% 88%, transparent 88%);
  transform: skewY(-4deg);
}

.effects-showcase-cover strong {
  position: relative;
  z-index: 2;
  padding-top: 16px;
  color: #d9dde2;
  font-size: clamp(44px, 7.8vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.effects-credit,
.effects-like,
.effects-badge,
.effects-play {
  position: absolute;
  z-index: 3;
}

.effects-credit {
  left: 18%;
  top: 12%;
  border-radius: 40px;
  padding: 16px 46px;
  background: #d8d8d8;
  color: #222222;
  font-family: var(--font-menu);
  font-size: 24px;
  font-weight: 700;
}

.effects-like {
  left: 17%;
  bottom: 25%;
  padding: 7px 26px;
  background: #79c9df;
  color: #121212;
  font-size: 34px;
  transform: rotate(-8deg);
}

.effects-badge {
  right: 10%;
  top: 24%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ca154d;
  color: #ffffff;
  font-size: 44px;
}

.effects-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.effects-play::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 15px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid rgba(255, 255, 255, 0.86);
}

.media-grid.layout-effects-vertical-mix {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(-n + 5) {
  aspect-ratio: 155 / 276;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(n + 6) {
  aspect-ratio: 1 / 1;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(1) {
  grid-column: 1;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(2) {
  grid-column: 2;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(3) {
  grid-column: 3;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(4) {
  grid-column: 4;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(5) {
  grid-column: 5;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(6) {
  grid-column: 1;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(7) {
  grid-column: 2;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(8) {
  grid-column: 3;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(9) {
  grid-column: 5;
}

.media-grid.layout-effects-vertical-mix figure:nth-child(10) {
  grid-column: 4;
  grid-row: 2;
}

.media-grid.layout-effects-vertical-mix img {
  height: 100%;
  object-fit: cover;
}

.media-grid.layout-effects-square-grid {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(18px, 2.4vw, 34px);
  gap: 23px;
  overflow: hidden;
  border-radius: 28px;
  background: #d8d8d5;
}

.media-grid.layout-effects-square-grid::after {
  content: none;
}

.media-grid.layout-effects-square-grid figure {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  background: transparent;
}

.media-grid.layout-effects-square-grid img {
  height: 100%;
  object-fit: contain;
}

.bio-page {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.bio-portrait {
  margin: 0;
  background: var(--color-surface-light);
}

.bio-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.bio-content {
  display: grid;
  gap: 36px;
}

.bio-section {
  display: grid;
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
}

.timeline-row time {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.timeline-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.theme-bio .page-frame {
  padding-top: 190px;
  padding-right: clamp(24px, 3vw, 36px);
  padding-left: clamp(70px, calc(50vw - var(--sidebar-width) - 290px), 190px);
}

.theme-bio .bio-page {
  position: relative;
  display: block;
  width: min(800px, 100%);
}

.theme-bio .bio-portrait {
  position: absolute;
  top: -64px;
  right: 0;
  width: 115px;
  background: transparent;
}

.theme-bio .bio-portrait img {
  width: 115px;
  height: 160px;
  object-fit: cover;
}

.theme-bio .bio-content {
  display: grid;
  gap: 84px;
  width: 100%;
}

.theme-bio .bio-content > header {
  border-bottom: 1px solid #c9c9c9;
  margin-bottom: -8px;
  padding-bottom: 64px;
}

.theme-bio .bio-title {
  font-size: 15px;
  line-height: 1.4;
}

.theme-bio .bio-title span {
  color: #8f8f8f;
}

.theme-bio .bio-label {
  font-size: 15px;
}

.theme-bio .bio-section {
  gap: 26px;
}

.theme-bio .timeline {
  gap: 12px;
}

.theme-bio .timeline-row {
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
}

.theme-bio .timeline-row time {
  color: #414141;
  font-family: "times new roman", times, serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.4;
}

.theme-bio .timeline-row p {
  color: #414141;
  font-size: 15px;
  line-height: 1.68;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1.5px solid var(--color-border-secondary);
  border-radius: 30px;
  padding: 0 20px;
  color: var(--color-black);
  font-size: 14px;
  font-weight: 600;
}

.pill-link.primary {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.pill-link:hover {
  background: var(--color-surface-hover);
}

.pill-link.primary:hover {
  background: var(--color-text-secondary);
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: sticky;
    z-index: 10;
    width: auto;
    min-height: 0;
    padding: 18px 20px;
    box-shadow: inset 0 -1px 0 var(--color-surface-hover);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .brand {
    max-width: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    margin-top: 18px;
  }

  .nav.is-open {
    display: flex;
  }

  .site-footer {
    display: none;
  }

  .page-frame,
  .theme-project .page-frame,
  .theme-light .page-frame,
  .theme-bio .page-frame {
    padding: 38px 20px 70px;
  }

  .bio-page,
  .theme-bio .bio-page {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .theme-bio .bio-portrait {
    position: static;
    width: 120px;
    justify-self: end;
    margin-bottom: 20px;
  }

  .theme-bio .bio-portrait img {
    width: 120px;
    height: 146px;
  }

  .theme-bio .bio-content {
    gap: 48px;
  }

  .theme-bio .bio-content > header {
    margin-bottom: 0;
    padding-bottom: 28px;
  }

  .retro-home {
    width: 100%;
  }

  .retro-computer {
    width: min(100%, 760px);
  }

  .retro-monitor {
    padding: 22px 24px 70px;
    border-radius: 20px 20px 15px 15px;
  }

  .retro-monitor::before {
    right: -14px;
    width: 28px;
  }

  .retro-screen {
    border-width: 9px;
  }

  .mac-dock {
    bottom: 8px;
    gap: 6px;
    padding: 6px 9px 5px;
  }

  .dock-icon {
    width: 56px;
    font-size: 10px;
  }

  .dock-icon-art {
    width: 32px;
    height: 32px;
  }

  .qq-buddy-window {
    display: none;
  }

  .qq-window {
    right: 12px;
    top: 34px;
    width: calc(100% - 24px);
    height: calc(100% - 112px);
  }

  .qq-body {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .qq-profile {
    padding: 10px 8px;
  }

  .qq-profile strong {
    font-size: 14px;
  }

  .retro-front-panel {
    bottom: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1680px) {
  :root {
    --sidebar-width: clamp(300px, 22vw, 360px);
  }

  .site-sidebar {
    padding-left: clamp(40px, 4vw, 56px);
  }

  .theme-project .page-frame {
    padding-right: clamp(24px, 3vw, 36px);
    padding-left: clamp(70px, calc(50vw - var(--sidebar-width) - 290px), 190px);
  }

  .theme-light:not(.theme-bio) .page-frame {
    padding-right: clamp(24px, 3vw, 36px);
    padding-left: clamp(70px, calc(50vw - var(--sidebar-width) - 290px), 190px);
  }

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

  .media-grid.layout-capcut-showcase {
    grid-template-columns: 32.5% 15.25% 49.25%;
  }

  .media-grid.layout-two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid.layout-stacked {
    grid-template-columns: 1fr;
  }

  .media-grid.layout-portfolio-stack,
  .media-grid.layout-wide-stack,
  .media-grid.layout-portrait-stack,
  .media-grid.layout-mapping-cover,
  .media-grid.layout-mapping-stack,
  .media-grid.layout-video-stack {
    grid-template-columns: 1fr;
  }

  .media-grid.layout-poster-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .media-grid.layout-aigc-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-grid.layout-two-up-plus,
  .media-grid.layout-gif-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid.layout-cert-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-grid.layout-effects-video {
    grid-template-columns: 1fr;
  }

  .media-grid.layout-effects-vertical-mix {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .media-grid.layout-effects-square-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .media-grid.layout-photo-grid {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .media-grid,
  .media-grid.compact {
    grid-template-columns: 1fr;
  }

  .media-grid.layout-capcut-showcase {
    grid-template-columns: 1fr;
  }

  .media-grid.layout-two-up {
    grid-template-columns: 1fr;
  }

  .media-grid.layout-poster-strip,
  .media-grid.layout-aigc-mosaic,
  .media-grid.layout-two-up-plus,
  .media-grid.layout-gif-matrix,
  .media-grid.layout-cert-strip,
  .media-grid.layout-effects-video,
  .media-grid.layout-effects-vertical-mix,
  .media-grid.layout-effects-square-grid,
  .media-grid.layout-mapping-cover,
  .media-grid.layout-mapping-stack,
  .media-grid.layout-video-stack {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .media-grid.layout-photo-grid {
    columns: 1;
  }

  .media-grid.layout-capcut-showcase figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: auto;
  }

  .media-grid.layout-aigc-mosaic figure:nth-child(n),
  .media-grid.layout-two-up-plus figure:nth-child(n),
  .media-grid.layout-effects-vertical-mix figure:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .project-title,
  .bio-title {
    font-size: 29px;
  }

  .retro-screen {
    aspect-ratio: 3 / 4;
    border-width: 7px;
  }

  .retro-monitor {
    padding: 14px 14px 58px;
  }

  .retro-monitor::before {
    display: none;
  }

  .retro-floppy {
    width: 118px;
  }

  .retro-badge {
    left: 20px;
  }

  .mac-dock {
    max-width: calc(100% - 20px);
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
  }

  .dock-icon {
    width: 50px;
    flex: 0 0 auto;
    font-size: 9px;
  }

  .dock-icon-art {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .dock-icon-art::after {
    font-size: 10px;
  }

  .qq-window {
    left: 10px;
    right: 10px;
    top: 28px;
    width: auto;
    height: calc(100% - 104px);
  }

  .qq-titlebar {
    min-height: 28px;
    font-size: 11px;
  }

  .qq-toolbar {
    display: none;
  }

  .qq-body {
    grid-template-columns: 1fr;
  }

  .qq-profile {
    display: none;
  }

  .qq-window .chat-bubble {
    max-width: min(100%, 270px);
    font-size: 11px;
  }

  .qq-window .chat-suggestions {
    max-height: 66px;
    overflow: auto;
  }

  .qq-window .suggestion-chip {
    font-size: 11px;
  }

  .chat-reference-links {
    display: none;
  }
}

/* Home: compact Macintosh desktop + QQ 2006 conversation */
.retro-home {
  width: min(100%, 820px);
}

.retro-computer {
  width: min(100%, 740px);
  filter:
    drop-shadow(0 28px 28px rgba(65, 42, 18, 0.26))
    drop-shadow(0 70px 68px rgba(0, 0, 0, 0.18));
}

.retro-monitor {
  padding: 70px 76px 152px;
  border: 0;
  border-radius: 26px 26px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(90deg, rgba(78, 45, 18, 0.16), transparent 18%, transparent 82%, rgba(255, 240, 205, 0.16)),
    #8a5c38;
  box-shadow:
    inset 0 0 0 2px rgba(255, 214, 156, 0.18),
    inset 0 22px 34px rgba(255, 210, 148, 0.13),
    inset 0 -44px 54px rgba(54, 31, 16, 0.28),
    0 2px 0 rgba(255, 220, 156, 0.34);
  transform: none;
}

.retro-monitor::before {
  top: 42px;
  right: 54px;
  bottom: 132px;
  left: 54px;
  width: auto;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 207, 145, 0.28), transparent 30%),
    #7a4d2d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 150, 0.16),
    inset 0 18px 30px rgba(96, 55, 29, 0.2);
  transform: none;
  z-index: 0;
}

.retro-monitor::after {
  left: 36px;
  right: 36px;
  bottom: -52px;
  height: 60px;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, #775235, #5f442e);
  box-shadow:
    inset 0 16px 20px rgba(255, 225, 176, 0.12),
    0 34px 44px rgba(0, 0, 0, 0.24);
}

.retro-screen {
  z-index: 1;
  border: 15px solid #111111;
  border-radius: 28px;
  aspect-ratio: 4 / 3;
  background: #111111;
  box-shadow:
    0 0 0 2px rgba(45, 23, 10, 0.62),
    0 16px 28px rgba(0, 0, 0, 0.42),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.retro-screen::after {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.16), transparent 54%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

.retro-desktop {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.17) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #c9d7e8, #aabed1);
  color: #1d3244;
}

.mac-menubar {
  height: 16px;
  padding: 0 7px;
  border-bottom: 1px solid #6e88a2;
  background: #dce8f4;
  color: #344b5e;
  font-family: Chicago, "Geneva", "Tahoma", var(--font-menu);
  font-size: 8px;
  font-weight: 400;
}

.mac-menu-left {
  font-weight: 400;
  word-spacing: 4px;
}

.mac-window {
  position: absolute;
  z-index: 1;
  border: 1px solid #526b84;
  background: #d8e4f0;
  box-shadow: 2px 2px 0 rgba(54, 75, 96, 0.28);
  font-family: Chicago, "Geneva", "Tahoma", var(--font-menu);
  font-size: 8px;
}

.mac-window-main {
  left: 34px;
  top: 42px;
  width: 58%;
  height: 42%;
}

.classic-titlebar {
  height: 14px;
  border-bottom: 1px solid #58738d;
  background:
    repeating-linear-gradient(0deg, #b5cce0 0 1px, #dbe8f3 1px 2px);
  color: #33475a;
  line-height: 14px;
  text-align: center;
}

.classic-window-body {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  border-bottom: 1px solid #7f97ad;
  color: #5d7182;
}

.desktop-icon-stack {
  position: absolute;
  top: 28px;
  right: 8px;
  z-index: 2;
  display: grid;
  gap: 7px;
  width: 58px;
}

.desktop-app-icon {
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #264058;
  cursor: pointer;
  font-family: Chicago, "Geneva", "Tahoma", var(--font-menu);
  font-size: 8px;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.desktop-app-icon:hover span:last-child,
.desktop-app-icon:focus-visible span:last-child {
  background: #234d93;
  color: #ffffff;
  outline: none;
}

.desktop-icon-art {
  position: relative;
  display: block;
  width: 24px;
  height: 22px;
  border: 1px solid #5a7187;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #edf6ff 0 22%, #a5bfd8 22% 100%);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.38);
}

.desktop-icon-art::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  background: #6c879f;
  box-shadow: 0 4px 0 #6c879f, 0 8px 0 #6c879f;
}

.desktop-icon-art.is-effects {
  background: linear-gradient(180deg, #f0f7ff 0 22%, #b6a6db 22% 100%);
}

.desktop-icon-art.is-aigc {
  background: linear-gradient(180deg, #fff8d6 0 22%, #c8a962 22% 100%);
}

.desktop-icon-art.is-bio {
  background: linear-gradient(180deg, #f8fbff 0 22%, #a7c7dd 22% 100%);
}

.desktop-icon-art.is-mapping {
  background: linear-gradient(180deg, #efe7db 0 22%, #ba8760 22% 100%);
}

.desktop-icon-art.is-interactive {
  background: linear-gradient(180deg, #eafcff 0 22%, #75aabf 22% 100%);
}

.desktop-icon-art.is-trash {
  width: 21px;
  height: 24px;
  border-radius: 3px 3px 5px 5px;
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(76, 93, 110, 0.45) 3px 4px),
    #d8e4ee;
}

.desktop-icon-art.is-trash::after {
  top: -4px;
  left: 1px;
  right: 1px;
  height: 3px;
  background: #51677c;
  box-shadow: none;
}

.qq-window {
  left: 64px;
  right: auto;
  top: 74px;
  z-index: 5;
  grid-template-rows: auto auto 1fr;
  width: min(70%, 430px);
  height: calc(100% - 110px);
  border: 1px solid #286a93;
  border-radius: 0;
  background: #b9e9fa;
  box-shadow:
    2px 2px 0 rgba(20, 68, 95, 0.35),
    0 12px 20px rgba(34, 62, 84, 0.22);
}

.qq-titlebar {
  min-height: 21px;
  padding: 2px 5px;
  background: linear-gradient(#33c8f3, #0ca9df 45%, #008cca);
  color: #ffffff;
  font-family: "Tahoma", var(--font-menu);
  font-size: 11px;
  font-weight: 700;
}

.qq-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 30% 30%, #fff55a 0 18%, transparent 20%),
    linear-gradient(135deg, #7abf28, #1c8fdd);
  box-shadow: inset 0 0 0 1px rgba(0, 68, 122, 0.25);
}

.qq-window-controls {
  gap: 2px;
}

.qq-window-controls i {
  width: 15px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  background: linear-gradient(#80dcff, #118acb);
}

.qq-toolbar {
  min-height: 43px;
  gap: 8px;
  padding: 0 7px;
  border: 0;
  border-bottom: 1px solid #74c9e8;
  background: linear-gradient(#8ce7ff, #35c4ef 58%, #baf3ff);
  color: #05618b;
  font-size: 10px;
  font-weight: 700;
}

.qq-toolbar span::before {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff7a8 0 18%, transparent 20%),
    linear-gradient(135deg, #ffe36e, #08a1de);
}

.qq-body {
  grid-template-columns: minmax(0, 1fr) 112px;
  border: 0;
  background: #d8f5ff;
}

.qq-chat {
  grid-template-rows: auto 1fr auto auto;
  background: #ffffff;
}

.qq-chat-header {
  min-height: 20px;
  border-bottom: 1px solid #9fd9ee;
  padding: 3px 7px;
  background: linear-gradient(#f7fdff, #d7f3ff);
  color: #12617e;
  font-size: 10px;
  font-weight: 700;
}

.qq-window .chat-stream {
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #9bd5e9;
}

.qq-window .chat-bubble {
  max-width: min(100%, 255px);
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  background: transparent;
  color: #111111;
  font-family: "Tahoma", var(--font-menu);
  font-size: 10px;
  line-height: 1.55;
}

.qq-window .chat-message.is-user .chat-bubble {
  background: transparent;
  color: #0e5c90;
}

.qq-window .chat-suggestions {
  gap: 4px;
  padding: 5px 7px;
  border-top: 0;
  border-bottom: 1px solid #9bd5e9;
  background: #dff6ff;
}

.qq-window .suggestion-chip {
  min-height: 20px;
  border: 1px solid #7bc1db;
  border-radius: 0;
  padding: 0 5px;
  background: linear-gradient(#ffffff, #c6f0ff);
  color: #09628d;
  font-size: 9px;
}

.qq-window .chat-form {
  grid-template-columns: 1fr 48px;
  gap: 5px;
  padding: 6px;
  border-top: 0;
  background: #bfefff;
}

.qq-window .chat-form input {
  height: 25px;
  border: 1px solid #6fb8d5;
  border-radius: 0;
  background: #ffffff;
  font-size: 10px;
}

.qq-window .chat-form button {
  height: 25px;
  border: 1px solid #1c91c6;
  border-radius: 2px;
  background: linear-gradient(#fff8a8, #36bbe8);
  color: #075b84;
  font-size: 10px;
  font-weight: 700;
}

.qq-profile {
  display: grid;
  grid-template-rows: auto 1fr auto 1fr;
  gap: 4px;
  padding: 5px;
  border-left: 1px solid #7cc8e2;
  background: #d7f6ff;
}

.qq-card-title {
  min-height: 17px;
  padding: 2px 5px;
  background: linear-gradient(#f8feff, #bcecff);
  color: #315f75;
  font-size: 9px;
  font-weight: 700;
}

.qq-portrait {
  min-height: 76px;
  border: 1px solid #78bad3;
  background:
    radial-gradient(circle at 50% 26%, #593a26 0 15%, transparent 16%),
    radial-gradient(circle at 50% 42%, #f0c8a2 0 18%, transparent 19%),
    linear-gradient(135deg, #ffe5f1, #b9e8ff);
}

.qq-portrait.is-visitor {
  background:
    radial-gradient(circle at 50% 28%, #6f3b28 0 17%, transparent 18%),
    radial-gradient(circle at 50% 44%, #ffd7b6 0 18%, transparent 19%),
    linear-gradient(135deg, #fff0fb, #d6f5ff);
}

.retro-front-panel {
  bottom: 42px;
  z-index: 1;
}

.retro-badge {
  left: 42px;
  bottom: 2px;
}

.retro-floppy {
  left: auto;
  right: 72px;
  bottom: 22px;
  width: 180px;
  height: 13px;
  transform: none;
  background: linear-gradient(#2d1d12, #090604 60%, #7a4c25 62%, #120b05);
}

.retro-floppy::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -7px;
  width: 62px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(#95694b, #6f452a);
  box-shadow: inset 0 0 0 1px rgba(44, 24, 13, 0.32);
}

.retro-power-light {
  right: 40px;
  bottom: 18px;
  background: #321d13;
}

@media (max-width: 900px) {
  .retro-computer {
    width: min(100%, 680px);
  }

  .retro-monitor {
    padding: 54px 52px 126px;
  }

  .qq-window {
    left: 34px;
    top: 58px;
    width: calc(100% - 112px);
    height: calc(100% - 98px);
  }

  .desktop-icon-stack {
    right: 5px;
    gap: 5px;
  }
}

@media (max-width: 640px) {
  .retro-monitor {
    padding: 34px 28px 92px;
  }

  .retro-screen {
    aspect-ratio: 4 / 3;
    border-width: 10px;
    border-radius: 18px;
  }

  .mac-window-main {
    display: none;
  }

  .desktop-icon-stack {
    top: 24px;
    right: 4px;
    transform: scale(0.78);
    transform-origin: top right;
  }

  .qq-window {
    left: 10px;
    top: 34px;
    width: calc(100% - 58px);
    height: calc(100% - 56px);
  }

  .qq-toolbar {
    display: flex;
    min-height: 28px;
    gap: 4px;
  }

  .qq-toolbar span {
    font-size: 0;
  }

  .qq-body {
    grid-template-columns: 1fr;
  }

  .qq-profile {
    display: none;
  }

  .retro-floppy {
    right: 38px;
    width: 112px;
  }
}

/* ryOS-inspired old-system window treatment */
.retro-desktop {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, #d8e2ef 0%, #b9cadc 100%);
}

.mac-menubar {
  height: 17px;
  border-bottom: 1px solid #4f6374;
  background: #eef4fb;
  box-shadow: inset 0 -1px 0 #b6c5d3;
  color: #1d2f3d;
  font-family: "Chicago", "Geneva", "Tahoma", var(--font-menu);
  font-size: 9px;
}

.mac-window,
.qq-window {
  border: 1px solid #1e3648;
  background: #eef5fb;
  box-shadow:
    1px 1px 0 #ffffff,
    3px 3px 0 rgba(28, 49, 66, 0.34);
}

.mac-window {
  border-radius: 0;
}

.classic-titlebar {
  position: relative;
  height: 15px;
  border-bottom: 1px solid #40586c;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.82) 18px calc(100% - 18px), transparent calc(100% - 18px)),
    repeating-linear-gradient(0deg, #788fa4 0 1px, #dce8f2 1px 2px);
  color: #1f3446;
  font-family: "Chicago", "Geneva", "Tahoma", var(--font-menu);
  font-size: 9px;
  line-height: 15px;
}

.classic-titlebar::before,
.classic-titlebar::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid #475e72;
  background: #dbe7f1;
  box-shadow: inset 1px 1px 0 #ffffff;
}

.classic-titlebar::before {
  left: 5px;
}

.classic-titlebar::after {
  right: 5px;
}

.classic-window-body {
  border: 1px solid #9aaebe;
  border-top: 0;
  background: #edf5fb;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #9badbc;
}

.qq-window {
  overflow: hidden;
  border-radius: 0;
  background: #d9eef8;
}

.qq-titlebar {
  min-height: 22px;
  border-bottom: 1px solid #175a81;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(#5bd8ff 0%, #16b2e7 47%, #008fc9 48%, #0077b7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -1px 0 rgba(0, 70, 112, 0.45);
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 65, 104, 0.7);
}

.qq-window-controls i {
  position: relative;
  width: 14px;
  height: 13px;
  border: 1px solid #e9fbff;
  background:
    linear-gradient(#9beaff, #0a89ca);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 0 rgba(0, 62, 96, 0.38);
}

.qq-window-controls i:nth-child(1)::after,
.qq-window-controls i:nth-child(2)::after,
.qq-window-controls i:nth-child(3)::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 9px;
  line-height: 1;
}

.qq-window-controls i:nth-child(1)::after {
  content: "-";
}

.qq-window-controls i:nth-child(2)::after {
  content: "□";
  font-size: 7px;
}

.qq-window-controls i:nth-child(3)::after {
  content: "×";
}

.qq-toolbar {
  border-bottom: 1px solid #78bdd8;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.56), transparent 32%),
    linear-gradient(#9aeaff, #40c8ef 56%, #d5f9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.qq-body {
  border: 1px solid #73b7d0;
  border-top: 0;
  background: #caeffb;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.72);
}

.qq-chat {
  border-right: 1px solid #7dc5df;
  background: #ffffff;
  box-shadow: inset 1px 1px 0 #ffffff;
}

.qq-chat-header {
  border-bottom: 1px solid #8fd3ea;
  background:
    linear-gradient(90deg, #ffffff, #d7f5ff);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

.qq-window .chat-stream {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(83, 144, 180, 0.05) 18px 19px);
}

.qq-window .chat-suggestions {
  background:
    linear-gradient(#effbff, #d7f4ff);
}

.qq-window .suggestion-chip,
.qq-window .chat-form input,
.qq-window .chat-form button {
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.76),
    inset -1px -1px 0 rgba(63, 132, 160, 0.22);
}

.qq-profile {
  background:
    linear-gradient(#edfbff, #caf0fb);
}

.qq-card-title {
  border: 1px solid #8ac9df;
  background:
    linear-gradient(#ffffff, #c8efff);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.78);
}

.qq-portrait {
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset -1px -1px 0 rgba(67, 128, 152, 0.25);
}

/* Simpler Mac chat pass */
.retro-computer {
  width: min(100%, 720px);
  filter:
    drop-shadow(0 24px 30px rgba(42, 34, 18, 0.22))
    drop-shadow(0 58px 58px rgba(0, 0, 0, 0.16));
}

.retro-monitor {
  padding: 62px 70px 118px;
  border-radius: 24px 24px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 16%),
    linear-gradient(90deg, rgba(92, 82, 58, 0.11), transparent 20%, transparent 82%, rgba(255, 255, 240, 0.18)),
    #c7bfa6;
  box-shadow:
    inset 0 0 0 2px rgba(255, 252, 235, 0.32),
    inset 0 20px 32px rgba(255, 255, 238, 0.22),
    inset 0 -34px 44px rgba(94, 82, 59, 0.22),
    0 2px 0 rgba(92, 82, 58, 0.32);
}

.retro-monitor::before {
  top: 36px;
  right: 48px;
  bottom: 104px;
  left: 48px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 248, 224, 0.38), transparent 32%),
    #b5aa8f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 231, 0.34),
    inset 0 18px 28px rgba(128, 111, 78, 0.18);
}

.retro-monitor::after {
  left: 40px;
  right: 40px;
  bottom: -38px;
  height: 46px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #bbb197, #a49980);
  box-shadow:
    inset 0 14px 18px rgba(255, 252, 230, 0.16),
    0 26px 34px rgba(0, 0, 0, 0.2);
}

.retro-screen {
  border-width: 14px;
  border-radius: 24px;
}

.retro-desktop {
  background:
    radial-gradient(circle at 82% 84%, rgba(249, 128, 176, 0.32), transparent 16%),
    radial-gradient(circle at 10% 90%, rgba(66, 209, 208, 0.38), transparent 18%),
    radial-gradient(circle at 70% 12%, rgba(234, 210, 96, 0.24), transparent 14%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #d9dfd5, #b9cfa3);
}

.mac-menubar {
  height: 19px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(50, 45, 30, 0.28);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.56) 0 1px, transparent 1px 4px),
    rgba(249, 249, 244, 0.9);
  box-shadow: 0 2px 7px rgba(44, 41, 28, 0.24);
  color: #070707;
  font-family: "Lucida Grande", "Geneva", "Tahoma", var(--font-menu);
  font-size: 12px;
}

.mac-menu-left {
  font-weight: 600;
  word-spacing: 10px;
}

.mac-window-main {
  left: 56px;
  top: auto;
  bottom: 26px;
  width: 62%;
  height: 22%;
  opacity: 0.52;
}

.desktop-icon-stack {
  top: 32px;
  right: 8px;
}

.qq-window {
  left: 22px;
  top: 58px;
  width: calc(100% - 98px);
  height: calc(100% - 78px);
  border: 1px solid rgba(77, 78, 70, 0.34);
  border-radius: 10px;
  background: rgba(252, 252, 249, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 32px rgba(35, 47, 36, 0.24);
}

.qq-titlebar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 34px;
  border-bottom: 1px solid rgba(118, 118, 108, 0.28);
  padding: 0 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.48) 0 1px, transparent 1px 4px),
    linear-gradient(#fbfbf6, #e3e5df);
  box-shadow: none;
  color: #0d0d0d;
  font-family: "Lucida Grande", "Geneva", "Tahoma", var(--font-menu);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-shadow: none;
}

.qq-status-dot {
  display: none;
}

.qq-traffic-lights {
  display: flex;
  gap: 8px;
}

.qq-traffic-lights i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(60, 57, 45, 0.38);
}

.qq-traffic-lights i:nth-child(1) {
  background: linear-gradient(#ff8b82, #cd322b);
}

.qq-traffic-lights i:nth-child(2) {
  background: linear-gradient(#ffd77a, #d89b20);
}

.qq-traffic-lights i:nth-child(3) {
  background: linear-gradient(#98de78, #42aa32);
}

.qq-window-controls {
  visibility: hidden;
}

.qq-toolbar {
  display: none;
}

.qq-body {
  grid-template-columns: 1fr;
  border: 0;
  background: transparent;
}

.qq-chat {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border: 0;
  background: #ffffff;
}

.qq-chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  border-bottom: 1px solid rgba(135, 135, 126, 0.25);
  padding: 0 18px;
  background: #eeeeed;
  color: #7f8386;
  font-family: "Lucida Grande", "Geneva", "Tahoma", var(--font-menu);
  font-size: 14px;
  font-weight: 400;
}

.qq-chat-header strong {
  color: #111111;
  font-size: 15px;
}

.qq-window .chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  background: #ffffff;
}

.qq-window .chat-bubble {
  max-width: min(84%, 330px);
  border-radius: 18px;
  padding: 8px 14px;
  background: linear-gradient(#f4f7ff, #e7ebfb);
  color: #050505;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 3px rgba(29, 31, 38, 0.22);
  font-size: 14px;
  line-height: 1.55;
}

.qq-window .chat-message.is-user .chat-bubble {
  background: linear-gradient(#fff6ba, #ffe681);
  color: #050505;
}

.qq-window .chat-suggestions {
  gap: 6px;
  padding: 6px 18px 0;
  border: 0;
  background: #ffffff;
}

.qq-window .suggestion-chip {
  min-height: 24px;
  border: 1px solid rgba(122, 122, 112, 0.18);
  border-radius: 999px;
  padding: 0 9px;
  background: #f4f4f1;
  color: #64686a;
  font-size: 11px;
}

.qq-window .chat-form {
  grid-template-columns: 1fr 38px;
  gap: 12px;
  padding: 10px 14px 14px;
  background: #ffffff;
}

.qq-window .chat-form input {
  height: 40px;
  border: 1px solid rgba(100, 100, 92, 0.25);
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
  color: #111111;
  font-size: 14px;
}

.qq-window .chat-form button {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(90, 122, 42, 0.24);
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(#dbff92, #b6e86e);
  color: #24321b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 5px rgba(48, 70, 30, 0.24);
  font-size: 24px;
  line-height: 1;
}

.qq-profile {
  display: none;
}

.retro-front-panel {
  bottom: 28px;
}

.retro-badge {
  left: 36px;
  bottom: 4px;
}

.retro-floppy {
  right: 58px;
  bottom: 20px;
  width: 158px;
  height: 12px;
  background: linear-gradient(#3b3327, #17130e 60%, #7f7462 62%, #282118);
}

.retro-floppy::after {
  right: -5px;
  bottom: -6px;
  width: 56px;
  height: 15px;
  background: linear-gradient(#c6bda5, #9f957e);
}

.retro-power-light {
  right: 34px;
  bottom: 15px;
  background: #7f7865;
}

@media (max-width: 900px) {
  .retro-monitor {
    padding: 48px 46px 98px;
  }

  .qq-window {
    left: 16px;
    top: 48px;
    width: calc(100% - 84px);
    height: calc(100% - 66px);
  }
}

@media (max-width: 640px) {
  .retro-monitor {
    padding: 30px 24px 76px;
  }

  .qq-window {
    left: 8px;
    top: 30px;
    width: calc(100% - 50px);
    height: calc(100% - 42px);
  }

  .qq-titlebar {
    min-height: 28px;
    font-size: 12px;
  }

  .qq-chat-header {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .qq-window .chat-bubble {
    font-size: 11px;
  }
}

/* Larger screen and cleaner chat interaction */
.retro-home {
  width: min(100%, 860px);
}

.retro-computer {
  width: min(100%, 780px);
}

.retro-monitor {
  padding: 52px 58px 104px;
}

.retro-monitor::before {
  top: 32px;
  right: 38px;
  bottom: 92px;
  left: 38px;
}

.retro-monitor::after {
  bottom: -36px;
  height: 42px;
}

.retro-screen {
  border-width: 12px;
  border-radius: 22px;
}

.desktop-icon-stack {
  top: 28px;
  right: 7px;
}

.qq-window {
  left: 20px;
  top: 54px;
  width: calc(100% - 92px);
  height: calc(100% - 74px);
}

.qq-chat {
  grid-template-rows: 1fr auto auto;
}

.qq-chat-header {
  display: none;
}

.qq-window .chat-stream {
  padding: 18px 22px 10px;
}

.qq-window .chat-suggestions {
  padding: 6px 22px 0;
}

.qq-window .chat-form {
  grid-template-columns: 1fr 74px;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 14px;
}

.qq-window .chat-form input {
  box-sizing: border-box;
  height: 36px;
  font-size: 14px;
}

.qq-window .chat-form button {
  box-sizing: border-box;
  width: auto;
  min-width: 70px;
  height: 36px;
  border: 1px solid rgba(63, 94, 122, 0.34);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2) 48%, rgba(80, 145, 213, 0.52) 49%, rgba(35, 112, 196, 0.86)),
    #5fa7ee;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 58, 118, 0.28),
    0 1px 3px rgba(44, 63, 80, 0.2);
  font-family: "Lucida Grande", "Geneva", "Tahoma", var(--font-menu);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 67, 132, 0.42);
}

.qq-window .chat-form button:hover,
.qq-window .chat-form button:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.22) 48%, rgba(92, 160, 226, 0.62) 49%, rgba(24, 103, 194, 0.92)),
    #4e9eea;
}

.retro-front-panel {
  bottom: 26px;
}

.retro-floppy {
  right: 58px;
  bottom: 18px;
}

.retro-badge {
  bottom: 0;
}

@media (max-width: 900px) {
  .retro-computer {
    width: min(100%, 740px);
  }

  .retro-monitor {
    padding: 44px 44px 88px;
  }

  .qq-window {
    left: 16px;
    top: 46px;
    width: calc(100% - 82px);
    height: calc(100% - 62px);
  }
}

@media (max-width: 640px) {
  .retro-monitor {
    padding: 24px 20px 62px;
  }

  .qq-window {
    left: 8px;
    top: 28px;
    width: calc(100% - 46px);
    height: calc(100% - 36px);
  }

  .qq-window .chat-form {
    grid-template-columns: 1fr 58px;
    padding: 8px 10px 10px;
  }

  .qq-window .chat-form button {
    min-width: 56px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }
}

/* Desktop icon/order and bottom-pinned chat fixes */
.qq-window {
  grid-template-rows: auto minmax(0, 1fr);
}

.qq-body,
.qq-chat {
  min-height: 0;
  height: 100%;
}

.qq-chat {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.qq-window .chat-stream {
  min-height: 0;
  overflow: auto;
}

.qq-window .chat-suggestions,
.qq-window .chat-form {
  align-self: end;
}

.desktop-icon-stack {
  top: 24px;
  right: 4px;
  gap: 9px;
  width: 76px;
}

.desktop-app-icon {
  gap: 4px;
  width: 76px;
  min-height: 48px;
  color: #1e3648;
  font-size: 9px;
  line-height: 1.08;
}

.desktop-app-icon span:last-child {
  max-width: 76px;
}

.desktop-icon-art {
  width: 32px;
  height: 32px;
}

.desktop-icon-art.is-capcut-white,
.desktop-icon-art.is-jianying-black {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  image-rendering: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 3px rgba(20, 30, 38, 0.24);
}

.desktop-icon-art.is-capcut-white {
  border: 1px solid rgba(24, 30, 34, 0.26);
  background-color: #ffffff;
  background-image: url("assets/ui/capcut-icon.png");
}

.desktop-icon-art.is-jianying-black {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background-color: #050505;
  background-image: url("assets/ui/jianying-icon.png");
}

.desktop-icon-art.is-capcut-white::before,
.desktop-icon-art.is-capcut-white::after,
.desktop-icon-art.is-jianying-black::before,
.desktop-icon-art.is-jianying-black::after {
  content: none;
}

.desktop-icon-art.is-folder-blue {
  background: linear-gradient(180deg, #edf6ff 0 22%, #9fc1dc 22% 100%);
}

.desktop-icon-art.is-folder-green {
  background: linear-gradient(180deg, #efffe8 0 22%, #98bf8e 22% 100%);
}

.desktop-icon-art.is-folder-yellow {
  background: linear-gradient(180deg, #fff8d6 0 22%, #d5b45d 22% 100%);
}

.desktop-icon-art.is-folder-cyan {
  background: linear-gradient(180deg, #eafcff 0 22%, #78b7ca 22% 100%);
}

.desktop-icon-art.is-folder-purple {
  background: linear-gradient(180deg, #f4efff 0 22%, #a89acb 22% 100%);
}

.desktop-icon-art.is-folder-orange {
  background: linear-gradient(180deg, #fff0dc 0 22%, #d69054 22% 100%);
}

.desktop-icon-art.is-folder-gray {
  background: linear-gradient(180deg, #f8fbff 0 22%, #a8bac8 22% 100%);
}

@media (max-width: 900px) {
  .desktop-icon-stack {
    width: 68px;
    gap: 7px;
  }

  .desktop-app-icon {
    width: 68px;
    min-height: 43px;
    font-size: 8px;
  }

  .desktop-icon-art {
    width: 28px;
    height: 26px;
  }
}

/* Home idle screen and chat motion */
.retro-desktop {
  position: relative;
}

.screen-idle-face {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 255, 248, 0.62), transparent 36%),
    linear-gradient(180deg, #c3f2e8 0%, #aee9df 56%, #8eddd6 100%);
  box-shadow:
    inset 0 0 28px rgba(24, 80, 72, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: scale(1);
  transition: opacity 260ms ease, transform 260ms ease;
}

.screen-idle-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 1px,
    rgba(25, 79, 82, 0.04) 2px,
    rgba(25, 79, 82, 0.04) 4px
  );
  mix-blend-mode: multiply;
}

.idle-eye,
.idle-nose,
.idle-mouth {
  position: absolute;
  z-index: 1;
  display: block;
  width: 7px;
  height: 7px;
  background: #075a66;
  border-radius: 2px;
  image-rendering: pixelated;
}

.idle-eye {
  top: calc(50% - 72px);
}

.idle-eye-left {
  left: calc(50% - 72px);
  box-shadow:
    0 9px 0 #075a66,
    0 18px 0 #075a66,
    0 27px 0 #075a66;
}

.idle-eye-right {
  left: calc(50% + 58px);
  box-shadow:
    0 9px 0 #075a66,
    0 18px 0 #075a66,
    0 27px 0 #075a66;
}

.idle-nose {
  left: calc(50% + 2px);
  top: calc(50% - 58px);
  box-shadow:
    0 9px 0 #075a66,
    0 18px 0 #075a66,
    0 27px 0 #075a66,
    -9px 27px 0 #075a66,
    -18px 27px 0 #075a66;
}

.idle-mouth {
  left: calc(50% - 40px);
  top: calc(50% + 22px);
  box-shadow:
    9px 9px 0 #075a66,
    18px 18px 0 #075a66,
    27px 18px 0 #075a66,
    36px 18px 0 #075a66,
    45px 18px 0 #075a66,
    54px 18px 0 #075a66,
    63px 9px 0 #075a66,
    72px 0 0 #075a66;
}

.retro-desktop > .mac-menubar,
.retro-desktop > .mac-window,
.retro-desktop > .desktop-icon-stack,
.retro-desktop > .qq-window {
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px) scale(0.992);
  transition:
    opacity 260ms ease 80ms,
    transform 260ms ease 80ms;
}

.retro-home.is-awake .screen-idle-face,
.retro-screen:focus-within .screen-idle-face {
  opacity: 0;
  transform: scale(0.985);
}

.retro-home.is-awake .retro-desktop > .mac-menubar,
.retro-home.is-awake .retro-desktop > .mac-window,
.retro-home.is-awake .retro-desktop > .desktop-icon-stack,
.retro-home.is-awake .retro-desktop > .qq-window,
.retro-screen:focus-within .retro-desktop > .mac-menubar,
.retro-screen:focus-within .retro-desktop > .mac-window,
.retro-screen:focus-within .retro-desktop > .desktop-icon-stack,
.retro-screen:focus-within .retro-desktop > .qq-window {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.retro-power-light {
  background: #8a826d;
  animation: powerLightPulse 2.8s ease-in-out infinite;
}

.qq-window .chat-message.is-latest .chat-bubble {
  animation: chatBubbleIn 240ms cubic-bezier(0.2, 0.8, 0.22, 1) both;
}

.qq-window .chat-message.is-user.is-latest .chat-bubble {
  animation-name: chatBubbleOut;
}

.qq-window .chat-bubble strong {
  font-weight: 700;
}

.qq-window .chat-bubble ol,
.qq-window .chat-bubble ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 22px;
}

.qq-window .chat-bubble ol:first-child,
.qq-window .chat-bubble ul:first-child {
  margin-top: 0;
}

.qq-window .chat-bubble li {
  padding-left: 2px;
}

.qq-window .chat-bubble p + ol,
.qq-window .chat-bubble p + ul,
.qq-window .chat-bubble ol + p,
.qq-window .chat-bubble ul + p {
  margin-top: 10px;
}

.qq-window .chat-bubble code {
  border-radius: 5px;
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.07);
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.9em;
}

.qq-window .chat-bubble a {
  color: #0b65b1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qq-window .chat-markdown-heading {
  font-weight: 700;
}

@keyframes powerLightPulse {
  0%,
  100% {
    opacity: 0.42;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 0 rgba(168, 204, 127, 0);
  }

  50% {
    opacity: 1;
    background: #a8bf7d;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      0 0 9px rgba(168, 204, 127, 0.74);
  }
}

@keyframes chatBubbleIn {
  from {
    opacity: 0;
    transform: translate(-8px, 10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes chatBubbleOut {
  from {
    opacity: 0;
    transform: translate(8px, 10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@media (min-width: 2200px) and (min-height: 900px) {
  body.theme-light:not(.theme-project):not(.theme-bio) .page-frame {
    padding-top: clamp(64px, 6.4vh, 92px);
    padding-left: clamp(300px, calc(50vw - var(--sidebar-width) - 560px), 920px);
  }

  body.theme-light:not(.theme-project):not(.theme-bio) .retro-home {
    width: min(100%, 1120px);
  }

  body.theme-light:not(.theme-project):not(.theme-bio) .retro-computer {
    width: min(100%, 1040px);
  }
}
