@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --bg: #f5f2ee;
  --bg-2: #ebe7e1;
  --ink: #121212;
  --muted: #5c5f66;
  --accent: #dd811d;
  --accent-2: #f2a34a;
  --card: #ffffff;
  --border: rgba(18, 18, 18, 0.08);
  --shadow: 0 24px 60px rgba(18, 20, 24, 0.12);
  --glow: 0 0 0 1px rgba(221, 129, 29, 0.18), 0 18px 40px rgba(221, 129, 29, 0.18);
  --header-bg: rgba(245, 242, 238, 0.82);
  --grid-gap: 14px;
  --radius: 20px;
  --collapsed-height: 440px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Manrope", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-cjk: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --panel: rgba(255, 255, 255, 0.9);
  --pill-bg: rgba(255, 255, 255, 0.74);
  --hero-marquee-height: 36px;
  --hero-marquee-size: 32px;
  --hero-marquee-speed: 44s;
  --hero-marquee-squares-speed: 88s;
  --hero-chip-height: 30px;
  --hero-note-height: calc(var(--hero-chip-height) * 0.6667);
  --hero-note-square: calc(var(--hero-note-height) / 3);
  --hero-stripe-size: 120px;
  --hero-stripe-speed: 50s;
}

[data-theme="dark"] {
  --bg: #0f1213;
  --bg-2: #151a1b;
  --ink: #f4f2ed;
  --muted: #b3b0a7;
  --accent: #dd811d;
  --accent-2: #f2a34a;
  --card: #171c1d;
  --border: rgba(244, 242, 237, 0.08);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.62);
  --glow: 0 0 0 1px rgba(221, 129, 29, 0.26), 0 22px 50px rgba(221, 129, 29, 0.28);
  --header-bg: rgba(16, 20, 20, 0.86);
  --panel: rgba(23, 28, 29, 0.92);
  --pill-bg: rgba(23, 28, 29, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.no-scroll {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(221, 129, 29, 0.16), transparent 60%),
    radial-gradient(800px 520px at 105% 5%, rgba(242, 163, 74, 0.16), transparent 55%),
    radial-gradient(800px 620px at 50% 120%, rgba(221, 129, 29, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body::after {
  background-image:
    linear-gradient(transparent 0 0),
    repeating-linear-gradient(120deg, rgba(20, 20, 20, 0.035) 0 1px, transparent 1px 120px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.7;
}

[data-theme="dark"] body::after {
  mix-blend-mode: screen;
  opacity: 0.35;
}

.site {
  min-height: 100vh;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  z-index: 20;
  gap: 16px;
  margin: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(221, 129, 29, 0.2);
  border-radius: 0;
  pointer-events: none;
}

.brand {
  display: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(221, 129, 29, 0.2);
}

.brand-sub {
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.lang-toggle .lang-option.active {
  color: var(--ink);
  font-weight: 600;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(221, 129, 29, 0.08), rgba(242, 163, 74, 0.08));
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(221, 129, 29, 0.45);
}

.site-main {
  padding: 0 40px 90px;
}

.hero-shell {
  position: relative;
  padding: 12px 32px 24px;
  margin: 0;
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
}

.hero-shell .hero-bg {
  position: absolute;
  inset: 0;
  background: #f6f4ef;
  z-index: 0;
}

.hero-shell .hero-bg::after {
  display: none;
}

.hero-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-marquee-height);
  background-image: url("../../emoji%20run.svg");
  background-repeat: repeat-x;
  background-size: auto var(--hero-marquee-size);
  background-position: 0 50%;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
  animation: hero-marquee-scroll var(--hero-marquee-speed) linear infinite;
}


.hero-marquee::before {
  --block: calc(var(--hero-note-square) * 2);
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--hero-marquee-height);
  height: calc(var(--block) * 3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='3' viewBox='0 0 2 3'%3E%3Crect width='1' height='1' x='0' y='0' fill='%232b2b2b'/%3E%3Crect width='1' height='1' x='0' y='2' fill='%232b2b2b'/%3E%3Crect width='1' height='1' x='1' y='1' fill='%232b2b2b'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: calc(var(--block) * 2) calc(var(--block) * 3);
  background-position: 0 0;
  opacity: 0.9;
  animation: hero-marquee-scroll var(--hero-marquee-squares-speed) linear infinite;
}

.hero-shell .hero-frame {
  position: absolute;
  inset: 0;
  border: none;
  box-shadow: none;
  pointer-events: none;
  z-index: 1;
}

.hero-shell .hero {
  position: relative;
  z-index: 2;
}

.tv-wrap {
  animation: tv-float 6s ease-in-out infinite;
}

@keyframes tv-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes hero-marquee-scroll {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: -100%;
  }
}

@keyframes hero-stripe-scroll {
  from {
    background-position-x: 0;
  }

  to {
    background-position-x: 100%;
  }
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 65%) minmax(0, 25%);
  gap: clamp(12px, 2.2vw, 28px);
  align-items: start;
  width: 100%;
  grid-auto-rows: auto;
  justify-content: space-between;
}

.hero-top>* {
  grid-row: 1;
}

.hero-left {
  position: relative;
  top: auto;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}

.hero-left::after {
  display: none;
}

.hero-kicker {
  font-size: 15px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  margin: 0;
  letter-spacing: 1.6px;
  line-height: 1.28;
  font-weight: 800;
}

.hero-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--muted);
  margin: 0 0 10px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  margin: 4px 0 6px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.hero-note {
  --chip-height: var(--hero-chip-height);
  --note-height: var(--hero-note-height);
  --note-square: var(--hero-note-square);
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 1px 0 0;
}

.hero-note-label {
  display: inline-flex;
  align-items: center;
  min-height: var(--note-height);
  padding: 0 18px;
  background: #f29233;
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 1;
  white-space: nowrap;
}

.hero-note-label[data-cn] {
  font-size: 16px;
}

.hero-note-runner {
  width: calc(var(--note-square) * 7);
  height: var(--note-height);
  overflow: hidden;
  position: relative;
  display: flex;
}

.hero-note-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: hero-note-scroll 4.5s linear infinite;
}

.hero-note-seq {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-note-group {
  display: grid;
  grid-template-columns: repeat(2, var(--note-square));
  grid-template-rows: repeat(3, var(--note-square));
  width: calc(var(--note-square) * 2);
  height: calc(var(--note-square) * 3);
}

.hero-note-square {
  width: var(--note-square);
  height: var(--note-square);
  background: #f29233;
  display: block;
}

.hero-note-square.is-a {
  grid-column: 1;
  grid-row: 1;
}

.hero-note-square.is-b {
  grid-column: 1;
  grid-row: 3;
}

.hero-note-square.is-c {
  grid-column: 2;
  grid-row: 2;
}

@keyframes hero-note-scroll {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.chip-static {
  cursor: default;
  pointer-events: none;
}

.info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin: 6px 0 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(221, 129, 29, 0.14), rgba(242, 163, 74, 0.12));
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  width: max-content;
}

.info-toggle::after {
  content: "+";
  font-size: 14px;
  font-weight: 700;
}

.info-toggle[aria-expanded="true"]::after {
  content: "-";
}

.info-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  border-color: rgba(221, 129, 29, 0.45);
}

.info-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
  opacity: 1;
  transform: none;
  transition: none;
}

.info-toggle[hidden] {
  display: none;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1px 0 5px;
}

.chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(221, 129, 29, 0.45);
}

.contact {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 10px 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.contact .label {
  color: var(--muted);
}

.hero-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  grid-column: 2;
}

.tv-stage {
  margin: 0;
  width: 100%;
  margin-top: -8px;
}

.tv-wrap {
  --tv-clip: polygon(73.747% 84.859%, 4.662% 72.551%, 7.119% 21.033%, 78.842% 26.971%, 73.747% 84.859%);
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0;
}

.tv-shell-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2px;
  background: #f6f4ef;
}

.tv-shell {
  position: relative;
  z-index: 2;
  width: calc(100% + 4px);
  height: auto;
  display: block;
  margin: -2px;
  filter: drop-shadow(0 18px 36px rgba(18, 20, 24, 0.12));
  pointer-events: none;
}

.tv-screen {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f6f4ef;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  clip-path: var(--tv-clip);

  z-index: 1;
}


.tv-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: 0;
  color: #f3efe9;
  font-family: var(--font-display);
  background: transparent;
}



@keyframes tv-breathe {

  0%,
  100% {
    filter: hue-rotate(0deg) brightness(1);
  }

  50% {
    filter: hue-rotate(10deg) brightness(1.08);
  }
}

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto;
  justify-content: center;
  flex: 1;
}

.work-tab {
  border: 1px solid var(--border);
  background: var(--pill-bg);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.work-tab.active {
  color: var(--ink);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: var(--glow);
  background: linear-gradient(135deg, rgba(221, 129, 29, 0.12), rgba(242, 163, 74, 0.12));
}

.work-tab[data-category="code"] {
  padding-left: 12px;
  padding-right: 12px;
}

.work-section+.work-section {
  margin-top: 38px;
}

.work-section[hidden] {
  display: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.section-title {
  display: grid;
  gap: 4px;
}

.section-head .work-title {
  margin: 0;
}

.work-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.work-section[data-category="art"] .work-title {
  font-size: 16px;
  letter-spacing: 1.1px;
  color: var(--ink);
}

.work-subtitle {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.section-toggle {
  border: 1px solid var(--border);
  background: var(--pill-bg);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: none;
}

.section-toggle:hover {
  color: var(--ink);
  border-color: rgba(221, 129, 29, 0.45);
  box-shadow: var(--glow);
}

.section-toggle[hidden] {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding-left: 0;
  padding-right: 0;
}

.card--wide {
  width: 100%;
  grid-column: span 2;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.work-section.collapsible .grid {
  position: relative;
  overflow: hidden;
  max-height: var(--collapsed-height);
  transition: max-height 0.45s ease;
}

.work-section.collapsible.is-expanded .grid {
  max-height: none;
  overflow: visible;
}

.work-section.collapsible:not(.is-expanded) .grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--bg));
  pointer-events: none;
}

.work-section.collapsible.is-expanded .grid::after {
  display: none;
}

.work-section[data-category="notes"] .grid {
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.notes-list {
  max-width: none;
  margin: 0;
  padding: 0;
}

.notes-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
}

.notes-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.notes-body {
  display: grid;
  gap: 6px;
}

.notes-title {
  font-size: 20px;
  letter-spacing: 0.4px;
}

.notes-excerpt {
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}

.notes-date {
  font-size: 12px;
  letter-spacing: 0.6px;
}

.notes-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.notes-item--text {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(24px);
  animation: card-rise 0.6s ease forwards;
  margin: 0 0 var(--grid-gap);
  display: inline-block;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease;
  break-inside: avoid;
}

.card:nth-child(3n + 1) {
  animation-delay: 0.05s;
}

.card:nth-child(3n + 2) {
  animation-delay: 0.12s;
}

.card:nth-child(3n + 3) {
  animation-delay: 0.18s;
}

.card::after {
  content: none;
}

.card:hover {
  transform: translateY(-4px);
}

.card:hover::after {
  opacity: 0;
}

.card-media {
  background: linear-gradient(180deg, rgba(221, 129, 29, 0.08), rgba(242, 163, 74, 0.08));
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.card-media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.card:hover .card-media img {
  \n
}

.card-caption {
  padding: 10px 2px 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border-top: none;
}

.card-text {
  display: grid;
  gap: 4px;
}

.card-name {
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 13px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.card-tag {
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(221, 129, 29, 0.12);
  border-color: rgba(221, 129, 29, 0.35);
}

.note-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 48px;
  display: grid;
  gap: 16px;
  break-inside: avoid;
  width: 100%;
  align-content: start;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.note-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.note-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  padding-left: var(--grid-gap);
  padding-right: var(--grid-gap);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.work-detail {
  padding-top: 24px;
}

.work-detail-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.work-detail-back {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.work-detail-back:hover {
  color: var(--ink);
}

.work-detail-header {
  display: grid;
  gap: 8px;
}

.work-detail-title {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 1px;
  line-height: 1.2;
}

.work-detail-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.work-detail-desc {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}

.work-detail-gallery {
  display: grid;
  gap: 16px;
}

.work-detail-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.lightbox-panel {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: min(920px, 90vw);
  max-height: 90vh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  z-index: 1;
}

.lightbox-gallery {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--bg-2);
  overflow: auto;
}

.lightbox-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.lightbox-meta {
  padding: 16px 22px 20px;
  display: grid;
  gap: 6px;
}

.lightbox-title {
  font-size: 16px;
  font-weight: 600;
}

.lightbox-desc {
  font-size: 13px;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: var(--card);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0;
}

.post-title {
  font-size: 32px;
}

.post-content .kg-width-wide,
.post-content .kg-width-full {
  margin-left: auto;
  margin-right: auto;
}

.post-content .kg-width-wide {
  width: min(100%, 980px);
}

.post-content .kg-width-full {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.post-content .kg-width-wide img,
.post-content .kg-width-full img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes card-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card {
    opacity: 1;
    transform: none;
  }

  .hero-note-track {
    animation: none;
  }
}

@media (max-width: 1100px) {
  :root {
    --collapsed-height: 420px;
  }

  .hero-top {
    grid-template-columns: minmax(0, 60%) minmax(0, 35%);
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  :root {
    --collapsed-height: 360px;
    --grid-gap: 24px;
  }

  .hero-shell {
    position: relative;
    padding: 8px 10px 22px;
    margin: 0;
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
  }

  .site-header {
    padding: 10px 12px;
    margin: 0;
    top: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
  }

  .site-main {
    padding: 0 12px 46px;
  }

  .hero-top {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-top>* {
    grid-row: 1;
    grid-column: auto;
  }

  .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-count: auto;
    gap: var(--grid-gap);
  }

  .hero-left {
    position: static;
    gap: 6px;
    padding: 0;
    max-width: 100%;
    flex: 1 !important;
    order: 1;
    width: auto !important;
    min-width: 0 !important;
  }

  .hero-right {
    max-width: 100%;
    flex: 0 0 150px !important;
    order: 2;
    margin-top: 32px !important;
    align-items: flex-end;
    width: 150px !important;
  }

  .hero-title {
    font-size: 20px;
    line-height: 1.14;
  }

  .hero-desc {
    margin: 4px 0 10px;
    line-height: 1.7;
    font-size: 15px;
  }

  .info-toggle {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .info-panel {
    display: none;
  }

  .info-panel.is-open {
    display: grid;
  }

  .hero-links {
    margin: 6px 0 8px;
    gap: 8px;
  }

  .chip {
    padding: 7px 12px;
    font-size: 13px;
  }

  .contact {
    margin: 12px 0;
  }

  .hero-note {
    margin: 8px 0 0;
  }

  .hero-note-label {
    padding: 0 12px;
    font-size: 13px;
  }

  .work-section+.work-section {
    margin-top: 22px;
  }

  .section-head {
    margin: 0 0 10px;
  }

  .section-toggle {
    padding: 6px 10px;
    font-size: 10px;
  }

  .notes-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-marquee {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 8px;
  }

  .work-tabs {
    gap: 6px;
    justify-content: flex-start;
    margin: 4px 0 0;
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .work-tab {
    padding: 6px 10px;
    font-size: 11px;
    letter-spacing: 0.6px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .lang-toggle {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .theme-toggle {
    padding: 5px 10px;
    font-size: 10px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
  }

  .tv-stage {
    margin-bottom: 0;
  }

  .tv-wrap {
    width: 150px !important;
    max-width: 150px !important;
    margin: 0;
  }

  .tv-title {
    font-size: 24px;
  }

  .tv-shell {
    filter: drop-shadow(0 12px 24px rgba(18, 20, 24, 0.12));
  }

  .tv-grid {
    grid-template-columns: 1fr;
  }

  .post-content .kg-width-full {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

html[lang="zh-CN"] .hero-kicker,
html[lang="zh-CN"] .hero-title,
html[lang="zh-CN"] .hero-desc,
html[lang="zh-CN"] .info-toggle {
  font-family: var(--font-cjk);
}

[data-theme="dark"] .hero-shell .hero-bg {
  background: #1a1a1a;
}

[data-theme="dark"] .tv-screen {
  background: transparent;
}

[data-theme="dark"] .tv-shell-frame {
  background: transparent;
}

[data-theme="dark"] .tv-shell {
  filter: none;
}
