:root {
  --bg: #0b0b0d;
  --bg-elev: #111114;
  --bg-soft: #16161a;
  --text: #f2efe9;
  --text-soft: #c6c1b8;
  --muted: #8f8b84;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #e2a95c;
  --accent-deep: #c78b3d;
  --nav-h: 68px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", -apple-system, "Helvetica Neue",
    "Arial", sans-serif;
  --font-latin: "Avenir Next", "Helvetica Neue", "Segoe UI", -apple-system,
    "PingFang SC", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #161616;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* Navigation */

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: calc(var(--nav-h) + var(--safe-t));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  padding-top: var(--safe-t);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.wordmark-zh {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wordmark-en {
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav nav a {
  position: relative;
  font-size: 15px;
  color: var(--text-soft);
  transition: color 0.25s var(--ease-out);
}

.site-nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.site-nav nav a:hover {
  color: var(--text);
}

.site-nav nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.92);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.34) 0%, rgba(11, 11, 13, 0.08) 34%, rgba(11, 11, 13, 0.82) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 11, 13, 0.72) 0%, rgba(11, 11, 13, 0.2) 52%, rgba(11, 11, 13, 0.12) 100%);
  pointer-events: none;
}

.hero-copy {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px calc(var(--nav-h) + var(--safe-b) + 96px);
}

.hero-roles {
  margin: 0 0 22px;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 13vw, 168px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.hero-latin {
  margin: 22px 0 0;
  font-family: var(--font-latin);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.hero-line {
  margin: 18px 0 32px;
  max-width: 42ch;
  font-size: 17px;
  color: var(--text-soft);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.08em;
  transition:
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.btn:hover {
  background: var(--text);
  color: #151516;
}

.btn:active {
  transform: translateY(1px);
}

/* Sections */

.section {
  padding: 128px 28px;
}

/* Reel */

.reel-section {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-elev);
}

/* Frames swipe strip */

.frames-section {
  padding: 128px 0 104px;
}

.frames-head {
  max-width: 1440px;
  margin: 0 auto 52px;
  padding: 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.frames-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.frames-nav {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.frames-nav button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-latin);
  font-size: 26px;
  line-height: 1;
  transition:
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    background 0.25s var(--ease-out);
}

.frames-nav button:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(226, 169, 92, 0.06);
}

.frames-nav button:active {
  transform: translateY(1px);
}

.frames-scroller {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  padding: 4px 28px 22px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.frames-scroller::-webkit-scrollbar {
  height: 4px;
}

.frames-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
}

.frames-scroller::-webkit-scrollbar-track {
  background: transparent;
}

.frames-scroller:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.frame-slide {
  flex: 0 0 clamp(300px, 58vw, 760px);
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: min(68vh, 580px);
}

.frame-slide .work-frame {
  display: block;
  width: 100%;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-elev);
  cursor: zoom-in;
}

.frame-slide .work-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.8s var(--ease-out), opacity 0.5s ease;
}

.frame-slide:hover .work-frame img,
.frame-slide:focus-within .work-frame img {
  transform: scale(1.03);
  opacity: 1;
}

.frame-slide .work-frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.frame-slide figcaption {
  padding: 14px 2px 0;
  flex: 0 0 auto;
}

.frame-counter {
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 600;
}

.reel-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.reel-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.reel-tip {
  display: none;
}

.reel-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #060607;
}

.reel-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #060607;
}

.reel-quality {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.58);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reel-download {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.reel-download a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s var(--ease-out);
}

.reel-download a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Pixel mini game */

.game-section {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.game-inner {
  max-width: 1020px;
  margin: 0 auto;
}

.game-head {
  max-width: 780px;
}

.game-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.game-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.game-stage {
  position: relative;
  width: 100%;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0810;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.game-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #0a0810;
}

.game-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 12, 0.62);
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 4;
}

.game-status b {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(rgba(11, 9, 18, 0.88), rgba(11, 9, 18, 0.88)),
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(255, 255, 255, 0.03) 3px 4px
    );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.game-overlay.is-hidden {
  display: none;
}

.game-overlay-box {
  max-width: 620px;
}

.game-overlay-box h3 {
  margin: 0;
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.08;
}

.game-overlay-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.3em;
}

.game-help {
  margin: 22px auto 28px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 2;
}

.game-btn {
  appearance: none;
  border: 1px solid rgba(226, 169, 92, 0.5);
  background: rgba(226, 169, 92, 0.1);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 26px;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.15s var(--ease-out);
}

.game-btn:hover {
  background: rgba(226, 169, 92, 0.22);
  border-color: var(--accent);
}

.game-btn:active {
  transform: translateY(2px);
}

.game-pad {
  display: none;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.game-pad button {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 20px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.game-pad button:active {
  background: rgba(226, 169, 92, 0.18);
  color: var(--accent);
}

@media (pointer: coarse) {
  .game-pad {
    display: flex;
  }

  .game-help br {
    display: none;
  }
}

.section > .section-head,
.section > .works-head,
.section > .about-head {
  max-width: 1440px;
  margin: 0 auto;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.works-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.works-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Works masonry */

.works-grid {
  max-width: 1440px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 26px;
}

.work-tile {
  break-inside: avoid;
  margin: 0 0 48px;
  width: 100%;
}

.work-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--bg-elev);
}

.work-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--aspect);
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.5s ease;
  opacity: 0.94;
}

.work-tile:hover .work-frame img,
.work-tile:focus-within .work-frame img {
  transform: scale(1.035);
  opacity: 1;
}

.work-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.work-tile figcaption {
  padding: 14px 2px 0;
}

.work-title {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}

.work-role {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.work-meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.noscript-note {
  color: var(--muted);
}

/* About */

.about-section {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-elev);
}

.about-head {
  margin-bottom: 64px;
}

.about-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.about-bio {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  font-size: 18px;
  color: var(--text-soft);
}

.about-bio p {
  margin: 0 0 20px;
  max-width: 48ch;
}

.about-photo {
  margin: 0 0 28px;
}

.about-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.about-photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.credits h3 {
  margin: 0 0 16px;
  padding-top: 34px;
  font-size: 20px;
  font-weight: 650;
  border-top: 1px solid var(--line-soft);
}

.credits h3:first-child {
  padding-top: 0;
  border-top: 0;
}

.credits dl {
  margin: 0;
}

.credits dl + h3 {
  margin-top: 44px;
}

.credits dt {
  margin: 18px 0 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.credits dd {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  line-height: 2;
}

/* Contact */

.contact-section {
  border-top: 1px solid var(--line-soft);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-line {
  margin: 22px auto 0;
  max-width: 52ch;
  color: var(--text-soft);
  font-size: 17px;
}

.contact-channels {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line);
  color: var(--text);
  transition:
    border-color 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

.contact-channel:hover {
  border-color: var(--accent);
  background: rgba(226, 169, 92, 0.06);
}

.contact-update {
  margin: 30px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 28px calc(40px + var(--safe-b));
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

/* Lightbox */

.lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.lightbox[open] {
  animation: dialog-in 0.35s var(--ease-out);
}

.lightbox::backdrop {
  background: rgba(5, 5, 6, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.lightbox-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.lightbox-close {
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  transition:
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.lightbox-stage {
  position: relative;
  display: grid;
  align-items: center;
  padding: 22px 84px 10px;
  touch-action: pan-y;
}

.lightbox-stage figure {
  margin: 0;
}

.lightbox-stage img {
  width: 100%;
  max-height: calc(100dvh - 260px);
  object-fit: contain;
}

.lightbox-stage figcaption {
  padding-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-latin);
  font-size: 30px;
  line-height: 1;
  color: var(--text-soft);
  transition:
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.nav-prev {
  left: 22px;
}

.nav-next {
  right: 22px;
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px 22px 20px;
  overflow-x: auto;
}

.lightbox-thumbs button {
  flex: 0 0 auto;
  width: 86px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  opacity: 0.55;
  transition:
    opacity 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.lightbox-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumbs button.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.lightbox-thumbs button:hover {
  opacity: 1;
}

/* Reveal (JS-gated) */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.js .hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
}

.js .hero-copy.in-view > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.js .hero-copy.in-view > *:nth-child(1) {
  transition-delay: 0.08s;
}

.js .hero-copy.in-view > *:nth-child(2) {
  transition-delay: 0.18s;
}

.js .hero-copy.in-view > *:nth-child(3) {
  transition-delay: 0.28s;
}

.js .hero-copy.in-view > *:nth-child(4) {
  transition-delay: 0.38s;
}

.js .hero-copy.in-view > *:nth-child(5) {
  transition-delay: 0.48s;
}

/* Reduced motion */

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

  .js [data-reveal],
  .js .hero-copy > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lightbox[open] {
    animation: none;
  }

  .work-tile:hover .work-frame img,
  .work-tile:focus-within .work-frame img {
    transform: none;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .works-grid {
    column-count: 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-bio {
    position: static;
  }

  .about-head {
    margin-bottom: 44px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 88px 18px;
  }

  .frames-section {
    padding: 88px 0 76px;
  }

  .frames-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .frames-scroller {
    gap: 18px;
    padding: 4px 18px 20px;
  }

  .nav-inner {
    padding: 0 18px;
  }

  .site-nav nav {
    gap: 18px;
  }

  .hero-copy {
    padding: 0 18px calc(var(--nav-h) + 64px);
  }

  .works-grid {
    column-count: 1;
  }

  .work-tile {
    margin-bottom: 42px;
  }

  .lightbox-stage {
    padding: 14px 52px 8px;
  }

  .nav-prev {
    left: 8px;
  }

  .nav-next {
    right: 8px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

/* 手机竖屏配套模式：一张一屏、更大触控区、避开刘海/手势条 */

@media (orientation: portrait) and (max-width: 640px) {
  .site-nav {
    height: calc(var(--nav-h) + var(--safe-t));
  }

  .nav-inner {
    padding: var(--safe-t) 18px 0;
  }

  .site-nav nav {
    gap: 16px;
  }

  .site-nav nav a {
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .wordmark-en {
    display: none;
  }

  .hero-copy {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 74px);
  }

  .hero h1 {
    letter-spacing: 0.01em;
  }

  .frame-slide {
    flex: 0 0 calc(100vw - 36px);
    height: min(52vh, 480px);
    scroll-snap-align: center;
  }

  .frames-scroller {
    gap: 16px;
    padding: 4px 18px 22px;
  }

  .frames-scroller::-webkit-scrollbar {
    height: 3px;
  }

  .frames-note {
    line-height: 1.8;
  }

  .reel-inner {
    max-width: 640px;
  }

  .reel-video-wrap {
    margin-top: 32px;
  }

  .reel-meta,
  .reel-download {
    line-height: 1.8;
  }

  .reel-tip {
    display: block;
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
  }

  .game-stage {
    margin-top: 32px;
  }

  .game-overlay {
    padding: 14px;
  }

  .game-status {
    top: 8px;
    right: 8px;
    gap: 10px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .game-pad {
    margin: 18px 0 calc(12px + var(--safe-b));
  }

  .game-pad button {
    width: 62px;
    height: 62px;
  }

  .contact-channels {
    gap: 12px;
  }

  .contact-channel {
    width: 100%;
    justify-content: space-between;
  }

  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
    padding-bottom: calc(28px + var(--safe-b));
  }

  .lightbox {
    width: 100vw;
    max-height: calc(100dvh - var(--safe-t) - var(--safe-b));
    max-width: none;
  }

  .lightbox-stage {
    padding: 12px 44px 8px;
  }

  .lightbox-stage img {
    max-height: calc(100dvh - 240px);
  }

  .lightbox-thumbs button {
    width: 64px;
  }
}

/* 手机横屏配套模式：信息更紧凑、尽量少纵向滚动 */

@media (orientation: landscape) and (max-height: 560px) {
  .site-nav {
    height: calc(var(--nav-h) + var(--safe-t));
  }

  .nav-inner {
    padding: var(--safe-t) 22px 0;
  }

  .site-nav nav {
    gap: 20px;
  }

  .section {
    padding: 72px 24px;
  }

  .frames-section {
    padding: 72px 0 64px;
  }

  .frames-head {
    margin-bottom: 34px;
  }

  .frames-scroller {
    gap: 18px;
    padding-bottom: 18px;
  }

  .frame-slide {
    height: min(72vh, 440px);
  }

  .reel-inner {
    max-width: none;
  }

  .reel-video-wrap {
    margin-top: 28px;
  }

  .game-stage {
    margin-top: 28px;
  }

  .game-pad {
    position: sticky;
    bottom: calc(10px + var(--safe-b));
    z-index: 20;
    margin-top: 14px;
  }

  .game-pad button {
    width: 52px;
    height: 52px;
  }

  .works-head {
    margin-bottom: 40px;
  }

  .work-tile {
    margin-bottom: 34px;
  }

  .site-footer {
    padding: 24px 28px calc(24px + var(--safe-b));
  }

  .lightbox-stage img {
    max-height: calc(100dvh - 190px);
  }
}
