@import url("/skeleton/public/assets/fonts/lxgw-wenkai/lxgwwenkai-regular.css");

:root {
  --paper: #fff;
  --paper-alt: #f7f6f2;
  --ink: #181818;
  --muted: #77766f;
  --line: #cfcec7;
  --yellow: #efcb45;
  --green: #18c979;
  --green-soft: #dff3e6;
  --pink: #efd8ee;
  --sidebar: 310px;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --hand: "LXGW WenKai", "KaiTi", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, svg, video { display: block; max-width: 100%; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 20px; padding: 9px 13px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }

.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); padding: 10vh 44px 36px 58px; display: flex; flex-direction: column; background: var(--paper); transition: background-color 500ms ease; }
.hand-logo { width: max-content; font-family: var(--hand); font-size: 38px; font-weight: 700; line-height: 1; }
.sidebar nav { margin-top: 58px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sidebar nav a { position: relative; font-family: var(--hand); font-size: 22px; line-height: 1.1; }
.sidebar nav a::after { content: ""; position: absolute; z-index: -1; left: -3px; right: -5px; bottom: -4px; height: 4px; background: transparent; transform: rotate(-2deg); }
.sidebar nav a:hover::after, .sidebar nav a:focus-visible::after, .sidebar nav a.is-active::after { background: var(--yellow); }
.sidebar nav a:focus-visible, .language:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.language { width: max-content; margin-top: 42px; padding-bottom: 2px; border-bottom: 1px solid #a7a69f; color: #77766f; font-size: 11px; }
.sidebar-note { margin: auto 0 0; color: #9b9a95; font-family: var(--hand); font-size: 11px; line-height: 1.7; }
.menu-button { display: none; }

main { min-width: 0; margin-left: var(--sidebar); }
.section-kicker { margin: 0; color: #77766f; font-size: 10px; line-height: 1.5; }

.home { position: relative; min-height: 100svh; overflow: hidden; background: var(--paper); }
.home-illustration { position: absolute; z-index: 1; right: -54px; bottom: -42px; width: min(54vw, 590px); transform: rotate(1deg); }
.home-illustration img { width: 100%; height: auto; }
.thought-bubble { position: absolute; z-index: 3; top: 35%; right: 13%; width: min(310px, 27vw); padding: 11px 3px; border: 0; background: transparent; font-family: var(--hand); font-size: 19px; line-height: 1.5; cursor: pointer; transform: rotate(-2deg); }
.thought-bubble::after { content: ""; position: absolute; left: 13%; right: 9%; bottom: 1px; height: 4px; background: var(--yellow); transform: rotate(-1deg); }
.thought-bubble:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }

.internship { min-height: 38svh; padding: 8vh 7vw; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(38px, 7vw, 110px); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.internship h2 { max-width: 680px; margin: 18px 0 0; font-family: var(--hand); font-size: 32px; font-weight: 400; line-height: 1.35; }
.internship-meta { margin: 0; font-size: 13px; line-height: 1.8; }
.internship-meta span { color: var(--muted); font-size: 10px; }

.works { min-height: 94svh; padding: 11vh 7vw; display: grid; align-content: center; background: var(--paper); }
.section-head { width: min(100%, 920px); margin: 0 auto 48px; }
.section-head h2 { margin: 18px 0 0; font-family: var(--hand); font-size: 38px; font-weight: 400; line-height: 1.3; }
.save-list { width: min(100%, 980px); margin: 0 auto; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.save-list li { border-bottom: 1px solid var(--line); }
.save-list a { min-height: 104px; padding: 20px 4px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 24px; gap: 18px; align-items: center; transition: padding 180ms ease, background-color 180ms ease; }
.save-list a:hover, .save-list a:focus-visible { padding-right: 12px; padding-left: 12px; outline: none; }
.save-list li:nth-child(1) a:hover, .save-list li:nth-child(1) a:focus-visible { background: #2ed573; }
.save-list li:nth-child(2) a:hover, .save-list li:nth-child(2) a:focus-visible { background: #ff6bcb; }
.save-list li:nth-child(3) a:hover, .save-list li:nth-child(3) a:focus-visible { background: #ffd000; }
.save-list li:nth-child(4) a:hover, .save-list li:nth-child(4) a:focus-visible { background: #00d4b4; }
.save-number { color: #85847e; font-size: 10px; }
.save-main strong, .save-main small { display: block; }
.save-main strong { font-family: var(--hand); font-size: 27px; font-weight: 400; line-height: 1.3; }
.save-main small { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.save-arrow { font-size: 18px; }

.contact { min-height: 68svh; padding: 12vh 7vw; display: grid; align-items: center; background: linear-gradient(to bottom, var(--paper-alt), #f3f3ef 120px); }
.contact-copy { max-width: 780px; }
.contact-heading { margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact h2 { max-width: 590px; margin: 0; font-family: var(--hand); font-size: 44px; font-weight: 400; line-height: 1.4; }
.contact-illustration { width: clamp(88px, 8vw, 112px); aspect-ratio: 1; flex: 0 0 auto; transform: rotate(-2deg); }
.contact-illustration img { width: 100%; height: auto; }
.contact-links { max-width: 520px; display: grid; grid-template-columns: 1fr; }
.contact-links > * { min-height: 50px; padding: 0; display: flex; align-items: center; border: 0; border-bottom: 1px solid #bdbcb5; background: transparent; cursor: pointer; font-size: 12px; text-align: left; }
.contact-links > *:hover, .contact-links > *:focus-visible { color: #5f8d2e; outline: none; }

.valley-egg { overflow: hidden; border-top: 1px solid #d6d5ce; background: #f3f3ef; }
.valley-lock { min-height: 96px; display: grid; place-items: center; }
.valley-lock[hidden], .npc-strip[hidden] { display: none; }
.valley-lock p { margin: 0; color: #aaa9a3; font-family: var(--hand); font-size: 9px; }
.npc-strip { min-height: 154px; padding: 26px 24px 14px; display: grid; align-content: end; justify-items: center; gap: 15px; background: #f3f3ef; }
.npc-lineup { width: min(640px, 92vw); margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: clamp(6px, 1.1vw, 14px); list-style: none; }
.npc-lineup li { min-width: 0; display: grid; place-items: end center; }
.npc-lineup li:nth-child(1) { --npc-order: 0; }
.npc-lineup li:nth-child(2) { --npc-order: 1; }
.npc-lineup li:nth-child(3) { --npc-order: 2; }
.npc-lineup li:nth-child(4) { --npc-order: 3; }
.npc-lineup li:nth-child(5) { --npc-order: 4; }
.npc-lineup li:nth-child(6) { --npc-order: 5; }
.npc-lineup li:nth-child(7) { --npc-order: 6; }
.npc-lineup li:nth-child(8) { --npc-order: 7; }
.npc-lineup li:nth-child(9) { --npc-order: 8; }
.npc-lineup li:nth-child(10) { --npc-order: 9; }
.npc-character { position: relative; width: 100%; max-width: 48px; aspect-ratio: 1; padding: 0; display: grid; place-items: end center; border: 0; background: transparent; cursor: pointer; transform-origin: center bottom; animation: npc-idle 5.2s steps(2, end) calc(var(--npc-order) * -410ms) infinite; }
.npc-character::before { content: ""; position: absolute; z-index: 3; top: -8px; left: 50%; width: 5px; height: 5px; opacity: 0; background: var(--green); box-shadow: -7px -7px 0 var(--yellow), 7px -7px 0 var(--green); transform: translateX(-50%); }
.npc-character::after { content: attr(data-npc); position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 7px); padding: 4px 6px 3px; opacity: 0; color: white; background: var(--ink); font-size: 8px; line-height: 1; white-space: nowrap; pointer-events: none; transform: translate(-50%, 4px); transition: opacity 140ms ease, transform 140ms ease; }
.npc-character:hover, .npc-character:focus-visible { z-index: 5; outline: none; animation-play-state: paused; transform: translateY(-6px) rotate(-2deg); }
.npc-character:hover::after, .npc-character:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.npc-character:focus-visible img { outline: 2px solid var(--green); outline-offset: 3px; }
.npc-character img { width: 100%; max-width: 48px; height: auto; image-rendering: pixelated; pointer-events: none; }
.npc-character.is-reacting::before { animation: npc-spark 560ms steps(4, end); }
.npc-character.is-reacting[data-motion="hop"] { animation: npc-hop 620ms steps(5, end); }
.npc-character.is-reacting[data-motion="sway"] { animation: npc-sway 620ms steps(5, end); }
.npc-character.is-reacting[data-motion="peek"] { animation: npc-peek 620ms steps(5, end); }
.npc-character.is-reacting[data-motion="float"] { animation: npc-float 700ms steps(6, end); }
.npc-character.is-neighbor { animation: npc-neighbor 420ms steps(3, end); }
.npc-lineup.is-wave .npc-character { animation: npc-wave 780ms steps(5, end) calc(var(--npc-order) * 45ms) both; }
.npc-credit { margin: 0; color: #aaa9a3; font-size: 8px; line-height: 1.4; }
.npc-credit a { border-bottom: 1px solid #c9c8c1; }
.valley-egg.is-unlocked .npc-strip { animation: valley-reveal 450ms steps(4, end); }

.project-shell { --project-color: var(--paper-alt); background: var(--project-color); }
.project-shell[data-project-theme="green"] { --project-color: #2ed573; }
.project-shell[data-project-theme="pink"] { --project-color: #ff6bcb; }
.project-shell[data-project-theme="paper"] { --project-color: #ffd000; }
.project-shell[data-project-theme="green-soft"] { --project-color: #00d4b4; }
.project-shell .sidebar { background: var(--project-color); }
.project-shell .language { color: rgba(24, 24, 24, .76); border-color: rgba(24, 24, 24, .52); }
.project-shell .sidebar-note { color: rgba(24, 24, 24, .58); }
.project-main { min-height: 100svh; background: linear-gradient(to bottom, var(--project-color) 0, var(--paper) 118px, var(--paper) 100%); }
.project-record { width: min(100%, 1160px); min-height: 100svh; padding: 9vh 7vw 12vh; }
.loading-note, .noscript-note { margin: 0; padding: 12vh 7vw; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 46px; color: rgba(24, 24, 24, .65); font-size: 12px; }
.back-link:hover, .back-link:focus-visible { color: var(--ink); outline: none; text-decoration: underline; text-underline-offset: 4px; }
.project-head { position: relative; max-width: 930px; }
.project-status { margin: 0 0 16px; color: rgba(24, 24, 24, .58); font-size: 11px; }
.project-index { position: absolute; top: 0; right: 0; margin: 0; color: rgba(24, 24, 24, .42); font-size: 9px; }
.project-head h1 { max-width: 900px; margin: 0; font-family: var(--hand); font-size: 54px; font-weight: 400; line-height: 1.2; }
.project-lead { max-width: 820px; margin: 24px 0 0; font-size: 18px; line-height: 1.75; }

.decision-record { max-width: 930px; margin-top: 78px; }
.decision-record > h2 { margin: 0 0 18px; color: #6f6e68; font-size: 10px; font-weight: 400; }
.decision-record dl { margin: 0; border-top: 1px solid rgba(24, 24, 24, .65); }
.decision-record dl div { padding: 22px 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 42px; border-bottom: 1px solid var(--line); }
.decision-record dt { font-family: var(--hand); font-size: 17px; line-height: 1.6; }
.decision-record dd { max-width: 680px; margin: 0; font-size: 14px; line-height: 1.9; }

.primary-evidence, .project-evidence { width: 100%; max-width: 1050px; margin-top: 78px; }
.evidence-gallery-head { margin-bottom: 18px; padding-top: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(24, 24, 24, .62); }
.evidence-gallery-head h2 { margin: 0; font-family: var(--hand); font-size: 20px; font-weight: 400; line-height: 1.4; }
.evidence-gallery-head p { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.evidence-gallery-head > span { color: rgba(24, 24, 24, .55); font-size: 9px; white-space: nowrap; }
.project-video { border: 1px solid rgba(24, 24, 24, .72); background: white; }
.project-video video { width: 100%; aspect-ratio: 1440 / 828; background: #111; object-fit: contain; }
.project-video figcaption { padding: 11px 13px; border-top: 1px solid var(--ink); color: #6f6e68; font-size: 9px; line-height: 1.5; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
.evidence-grid-portrait { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.evidence-item { min-width: 0; }
.evidence-item.is-lead { grid-column: 1 / -1; }
.evidence-grid-portrait .evidence-item.is-lead { grid-column: span 2; }
.evidence-button { width: 100%; padding: 0; display: block; overflow: hidden; border: 1px solid rgba(24, 24, 24, .72); border-radius: 0; background: white; cursor: zoom-in; transition: transform 170ms ease, border-color 170ms ease; }
.evidence-button:hover { border-color: var(--ink); transform: translateY(-3px); }
.evidence-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.evidence-button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: white; }
.evidence-grid-portrait .evidence-button img { aspect-ratio: 9 / 16; }
.evidence-item figcaption { margin-top: 10px; }
.evidence-item figcaption strong, .evidence-item figcaption span { display: block; }
.evidence-item figcaption strong { font-size: 10px; font-weight: 400; line-height: 1.5; }
.evidence-item figcaption span { max-width: 520px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.project-end { max-width: 1050px; margin-top: 110px; border-top: 1px solid var(--ink); }
.project-end a { min-height: 104px; padding: 22px 0; display: grid; grid-template-columns: 100px minmax(0, 1fr) 30px; gap: 26px; align-items: center; }
.project-end a:hover, .project-end a:focus-visible { padding-left: 10px; outline: none; }
.project-end span { color: var(--muted); font-size: 10px; }
.project-end strong { font-family: var(--hand); font-size: 22px; font-weight: 400; }

body.lightbox-open { overflow: hidden; }
.image-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px 76px 20px; overflow: hidden; border: 0; color: white; background: rgba(17, 17, 16, .97); }
.image-lightbox[open] { display: grid; place-items: center; }
.image-lightbox::backdrop { background: rgba(17, 17, 16, .88); }
.lightbox-figure { width: min(100%, 1240px); height: calc(100dvh - 44px); display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 12px; }
.lightbox-figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-meta { width: 100%; display: flex; justify-content: space-between; gap: 28px; color: rgba(255, 255, 255, .76); font-size: 10px; line-height: 1.5; }
.lightbox-meta span:first-child { max-width: 85%; }
.lightbox-close, .lightbox-nav { position: fixed; z-index: 2; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 0; color: white; background: rgba(17, 17, 16, .7); cursor: pointer; }
.lightbox-close:hover, .lightbox-nav:hover, .lightbox-close:focus-visible, .lightbox-nav:focus-visible { color: var(--yellow); border-color: var(--yellow); outline: none; }
.lightbox-close { top: 18px; right: 20px; font-size: 28px; line-height: 1; }
.lightbox-nav { top: 50%; font-size: 24px; transform: translateY(-50%); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-nav:disabled { opacity: .25; cursor: default; }

@keyframes valley-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes npc-idle { 0%, 72%, 100% { transform: translateY(0); } 78% { transform: translateY(-2px); } 84% { transform: translateY(0); } }
@keyframes npc-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-13px); } 58% { transform: translateY(-5px); } }
@keyframes npc-sway { 0%, 100% { transform: rotate(0); } 28% { transform: rotate(-8deg); } 62% { transform: rotate(7deg); } }
@keyframes npc-peek { 0%, 100% { transform: translateY(0) scaleY(1); } 35% { transform: translateY(8px) scaleY(.84); } 68% { transform: translateY(-3px) scaleY(1); } }
@keyframes npc-float { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px) rotate(-3deg); } 68% { transform: translateY(-9px) rotate(3deg); } }
@keyframes npc-neighbor { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(3px) rotate(3deg); } }
@keyframes npc-spark { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.5); } 28%, 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -9px) scale(1); } }
@keyframes npc-wave { 0%, 100% { transform: translateY(0); } 42% { transform: translateY(-9px); } }

@media (max-width: 980px) {
  :root { --sidebar: 250px; }
  .sidebar { padding-left: 38px; }
  .home-illustration { right: -48px; bottom: -34px; width: min(58vw, 510px); }
  .thought-bubble { top: 31%; right: 8%; width: 240px; }
  .save-list a { grid-template-columns: 46px minmax(0, 1fr) 20px; }
}

@media (max-width: 720px) {
  :root { --sidebar: 0px; }
  .sidebar { position: sticky; top: 0; z-index: 30; width: 100%; height: 64px; padding: 0 20px; flex-direction: row; align-items: center; border-bottom: 1px solid rgba(24, 24, 24, .14); }
  .hand-logo { font-size: 31px; }
  .menu-button { width: 40px; height: 40px; margin-left: auto; padding: 0; display: grid; place-items: center; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
  .sidebar nav { position: absolute; top: 64px; left: 0; right: 0; display: none; margin: 0; padding: 18px 20px 24px; background: inherit; border-bottom: 1px solid var(--ink); }
  .sidebar nav.is-open { display: flex; }
  .sidebar nav a { padding: 7px 0; }
  .language { margin: 0 14px 0 0; order: 2; }
  .menu-button { order: 3; margin-left: 0; }
  .sidebar-note { display: none; }
  main { margin-left: 0; }
  [data-section] { scroll-margin-top: 64px; }
  .home { min-height: calc(100svh - 64px); }
  .home-illustration { right: -15vw; bottom: -28px; width: min(94vw, 430px); }
  .thought-bubble { top: auto; right: 25%; bottom: 38%; width: 230px; font-size: 16px; }
  .internship { min-height: 0; padding: 68px 20px; grid-template-columns: 1fr; gap: 22px; }
  .internship h2 { font-size: 27px; }
  .works { min-height: 0; padding: 82px 20px 90px; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: 34px; }
  .save-list a { min-height: 112px; padding: 18px 0; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; }
  .save-main strong { font-size: 23px; }
  .contact { min-height: 64svh; padding: 82px 20px; }
  .contact-heading { display: block; margin-bottom: 24px; }
  .contact h2 { font-size: 35px; }
  .contact-illustration { width: 84px; aspect-ratio: 1; margin: 14px 0 0 auto; }
  .contact-illustration img { width: 100%; height: auto; }
  .npc-strip { min-height: 128px; padding: 22px 14px 12px; gap: 12px; }
  .npc-lineup { width: 100%; gap: 4px; }
  .npc-character, .npc-character img { max-width: 38px; }
  .project-main { background: linear-gradient(to bottom, var(--project-color) 0, var(--paper) 82px, var(--paper) 100%); }
  .project-record { padding: 72px 20px 90px; }
  .back-link { margin-bottom: 36px; }
  .project-head h1 { padding-right: 0; font-size: 39px; }
  .project-index { position: static; margin-bottom: 14px; }
  .project-lead { font-size: 16px; }
  .decision-record, .primary-evidence, .project-evidence { margin-top: 58px; }
  .decision-record dl div { padding: 18px 0; grid-template-columns: 1fr; gap: 8px; }
  .decision-record dt { font-size: 16px; }
  .decision-record dd { font-size: 13px; line-height: 1.8; }
  .evidence-grid { grid-template-columns: 1fr; gap: 28px; }
  .evidence-grid-portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .evidence-grid-portrait .evidence-item.is-lead { grid-column: span 2; }
  .evidence-item.is-lead { grid-column: auto; }
  .evidence-gallery-head { gap: 18px; }
  .project-end { margin-top: 78px; }
  .project-end a { grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 14px; }
  .project-end strong { font-size: 19px; }
  .image-lightbox { padding: 62px 14px 64px; }
  .lightbox-figure { height: calc(100dvh - 126px); gap: 10px; }
  .lightbox-meta { align-items: flex-end; gap: 16px; font-size: 9px; }
  .lightbox-meta span:first-child { max-width: 78%; }
  .lightbox-close, .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-close { top: 10px; right: 12px; }
  .lightbox-nav { top: auto; bottom: 10px; transform: none; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

@media (max-width: 430px) {
  .home-illustration { right: -18vw; }
  .thought-bubble { right: 18%; bottom: 35%; width: 220px; }
  .project-head h1 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
