:root {
  color-scheme: dark;
  --bg:#141418; --panel:#24202a; --deep:#1e1925; --border:#4b4057;
  --ink:#f0edf4; --muted:#c1b7c9; --accent:#c3a3ee; --pale:#e1d4eb;
  --gutter:clamp(20px, 7vw, 108px);
  font-family: Geist, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:22px; }
body { margin:0; background:var(--bg); color:var(--ink); line-height:1.6; }
img, video { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
button, input, textarea { font:inherit; }
button { cursor:pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
h1,h2,h3,p,figure { margin:0; }
.wrap { width:min(100%, 1120px); padding-inline:var(--gutter); margin-inline:auto; }
.skip { position:fixed; top:8px; left:8px; z-index:5; padding:8px 12px; background:var(--panel); transform:translateY(-150%); }
.skip:focus { transform:none; }
.top { min-height:84px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
.brand { font-size:14px; font-weight:700; width:max-content; }
.top nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:min(410px, 48vw); gap:4px; border:1px solid var(--border); background:var(--panel); border-radius:13px; padding:4px; text-align:center; }
.top nav a { padding:5px 8px; min-height:42px; border-radius:8px; font-size:12px; line-height:1.25; display:grid; align-content:center; }
.top nav small, .category small, .video-list small { display:block; color:var(--muted); }
.top nav a:hover, .top nav a[aria-current] { background:#392f49; color:var(--accent); }
.panel { border:1px solid var(--border); background:var(--panel); border-radius:14px; }
.hero { width:min(calc(100% - 38px),1082px); min-height:610px; margin:auto; position:relative; display:grid; place-items:center; isolation:isolate; padding:72px 42px; border:1px solid #352c3e; border-radius:25px; background:linear-gradient(118deg,#12111575,#1e182580 60%,#151319),repeating-linear-gradient(90deg,transparent 0 109px,#4a3a542a 110px 111px),repeating-linear-gradient(0deg,#16131b 0 96px,#4a3a542a 97px 98px); }
.hero-card { width:min(100%, 672px); display:grid; grid-template-columns:minmax(0,252px) minmax(0,1fr); align-items:center; gap:24px; padding:42px 22px; border-radius:20px; box-shadow:0 18px 45px #08070a99; }
.portrait { background:#e2d6ed; color:#282033; border-radius:10px; padding:10px; overflow:hidden; }
.eye-board { position:relative; aspect-ratio:1.20; border-radius:6px; background:#303030; overflow:hidden; }
.eye-board img { position:absolute; object-fit:contain; height:auto; }
.eye { top:22%; width:27%; }
.eye.left { left:24%; transform:translate(var(--eye-x,0), var(--eye-y,0)); }
.eye.right { left:52%; top:27%; transform:translate(var(--eye-x,0), var(--eye-y,0)); }
.dot.lilac { width:5%; right:13%; top:25%; }
.dot.peach { width:3%; left:16%; bottom:34%; }
.portrait-bottom { font-size:11px; line-height:1.2; display:flex; align-items:center; justify-content:space-between; padding-top:7px; }
.portrait-bottom img { width:9px; }
.kicker { color:var(--accent); font-size:13px; font-weight:700; }
.intro h1 { font-family:"Segoe Script","Brush Script MT",cursive; font-weight:600; letter-spacing:-.09em; font-size:clamp(38px,5.3vw,68px); line-height:1.22; margin:6px 0; }
.intro-text { color:var(--muted); line-height:1.5; font-size:14px; }
.actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.button { display:inline-flex; align-items:center; justify-content:center; width:max-content; max-width:100%; min-height:42px; padding:8px 14px; border:1px solid var(--border); border-radius:7px; color:var(--ink); background:#352d40; font-size:13px; font-weight:650; }
.button.primary { color:#241c31; background:var(--pale); border-color:var(--pale); }
.button:hover { box-shadow:0 0 0 1px var(--accent); }
.floating { position:absolute; padding:11px 13px; box-shadow:0 12px 28px #09080bb0; }
.directory { left:2%; bottom:24%; width:190px; transform:rotate(-4deg); font-size:12px; }
.directory a { display:flex; justify-content:space-between; padding:4px 8px; margin-top:4px; background:#332b3c; border-radius:4px; }
.directory a:hover { background:#493955; }
.film { right:3%; bottom:15%; width:192px; transform:rotate(5deg); }
.film img { width:100%; }
.film span,.film strong { display:block; font-size:12px; margin-top:3px; }
.film span { color:var(--muted); }
.section { padding-block:58px; }
.section-head { padding:27px 0 42px; border-block:1px solid var(--border); margin-bottom:27px; }
.section-head h2,.section-head h1,.about h2,.contact h2,.project h1 { font-family:"Arial Black", Impact, system-ui, sans-serif; font-weight:1000; text-transform:uppercase; letter-spacing:-.063em; line-height:.98; }
.section-head h2,.section-head h1 { font-size:clamp(34px, 8.3vw, 112px); }
.categories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.category { display:grid; grid-template-columns:1fr auto; gap:29px 6px; padding:20px; }
.category span:first-child { font-family:"Noto Serif SC","SimSun",serif; font-size:23px; }
.category span+span { color:var(--accent); }
.category:hover, .art-link:hover { border-color:var(--accent); }
.category small { grid-column:1/-1; }
.showcase { position:relative; background:var(--deep); overflow:hidden; }
.showcase-title { padding:24px 28px 18px; position:relative; overflow:hidden; min-height:152px; }
.showcase-title::after { content:""; position:absolute; right:-164px; top:-218px; width:400px; height:400px; background:url("assets/47850.svg") no-repeat; pointer-events:none; }
.posters .showcase-title::after { background-image:url("assets/eadf5.svg"); }
.showcase-title h2,.gallery-header h1 { font-family:"Noto Serif SC","SimSun",serif; font-size:clamp(38px,7vw,88px); font-weight:500; line-height:1.15; }
.showcase-title span,.gallery-header .kicker { color:var(--accent); }
.posters .showcase-title h2 { color:#cfb6ef; }
.rail { display:flex; overflow-x:auto; scroll-snap-type:x proximity; gap:10px; padding:5px 13px 10px; scrollbar-color:#6c5586 var(--deep); }
.art-link { position:relative; display:block; border:1px solid var(--border); border-radius:10px; background:#251e2f; overflow:hidden; color:var(--ink); }
.rail .art-link { flex:0 0 clamp(148px,23vw,240px); scroll-snap-align:start; }
.art-link img { width:100%; aspect-ratio:1.69; object-fit:cover; }
.art-link span { display:block; padding:5px 10px 7px; font-size:13px; }
.gallery-link { display:inline-block; padding:11px 16px 16px; color:var(--accent); font-size:13px; font-weight:650; }
.video-list { width:min(100%, 610px); padding:14px 16px; }
.video-list>p,.video-list small { color:var(--muted); font-size:12px; }
.video-list a { border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 0; }
.video-list a:first-of-type { margin-top:8px; }
.video-list a:hover { color:var(--accent); }
.about { padding-block:108px 58px; }
.about-card { width:min(100%,780px); margin-inline:auto; padding:28px; display:grid; grid-template-columns:minmax(0, 260px) minmax(0,1fr); align-items:center; gap:36px; background:linear-gradient(125deg,#302639,var(--panel) 70%); box-shadow:0 18px 50px #0005; }
.postage .eye-board { background:#211b2c; aspect-ratio:1/1.16; }
.about h2 { font-size:clamp(36px,6.4vw,74px); margin:11px 0 17px; }
.about h3 { font-size:24px; }
.about p:not(.kicker) { color:var(--muted); }
.about-links { position:relative; display:flex; justify-content:space-between; gap:12px; margin-top:-25px; }
.about-links button { text-align:left; width:min(240px,50%); padding:12px 15px; color:var(--ink); background:#282131; }
.about-links small,.about-links strong { display:block; }
.about-links small { color:var(--accent); }
.archive strong span { float:right; }
.pixels { display:block; height:22px; margin-top:8px; background:repeating-conic-gradient(#8768a2 0% 25%,#2e253a 0% 50%) 50% / 12px 12px; }
.screening { display:flex; align-items:center; gap:9px; }
.record { display:grid; place-items:center; width:52px; height:52px; flex:0 0 auto; border-radius:50%; font-size:11px; background:radial-gradient(circle,#d1b7e7 0 23%,#1e1728 24% 42%,#655178 43% 46%,#1e1728 47% 62%,#655178 63% 66%,#1e1728 67%); color:#201629; }
.hobbies .section-head h2 { color:var(--accent); letter-spacing:-.04em; }
.hobby-list { display:grid; gap:24px; margin:28px 0; }
.hobby { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(18px,8vw,90px); }
.hobby:nth-child(even) .hobby-art { order:1; }
.hobby-art { display:grid; place-items:center; border-radius:16px; min-height:150px; background:#e9e1ff; }
.hobby-art img { width:72px; height:auto; }
.hobby-1 { background:#ffddd2; }
.hobby-2 { background:#e8eadc; }
.hobby h3,.essays h3,.guestbook h2 { font:normal clamp(27px,4vw,45px)/1.25 "Noto Serif SC","SimSun",serif; }
.hobby p { color:var(--muted); }
.essays { background:#eee8fc; color:#2e2344; border-radius:18px; padding:26px; }
.essays h3 { color:#5c3cb8; margin-bottom:12px; }
.essay-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.essay-grid details { border-radius:10px; background:#fbf9f5; padding:12px; }
summary { cursor:pointer; font-weight:700; }
.essay-grid p { margin-top:8px; }
.contact { display:grid; gap:20px; grid-template-columns:2.2fr 1fr; align-items:start; }
.letter, .reply, .guestbook { padding:22px; }
.contact h2 { font-size:clamp(29px,5vw,57px); margin:5px 0 16px; }
.contact a { color:var(--accent); }
.salutation { margin-top:13px; padding-top:13px; border-top:1px solid var(--border); }
.contact fieldset { border:none; margin:14px 0; padding:0; }
.letter label,.guestbook label { display:block; margin-bottom:11px; font-size:13px; }
.letter legend,.hint,.reply dt { color:var(--muted); font-size:12px; }
.subjects { display:flex; flex-wrap:wrap; gap:8px; }
.subjects label { background:#302b37; border-radius:5px; padding:4px 8px; margin:3px 0 0; }
.letter input:not([type=radio]), textarea, .guestbook input { display:block; width:100%; margin-top:4px; background:#1b1721; color:var(--ink); border:1px solid var(--border); border-radius:6px; padding:9px; }
textarea { resize:vertical; }
.letter .hint { margin-top:9px; }
.reply h3 { font-size:14px; }
.reply dd { margin:0 0 9px; overflow-wrap:anywhere; border-bottom:1px solid var(--border); padding-bottom:6px; }
.guestbook { margin-bottom:40px; }
.guestbook .hint { margin:7px 0 12px; }
#guestbook-entries { margin:0; padding-left:18px; overflow-wrap:anywhere; }
#guestbook-status:not(:empty) { margin:8px 0; }
.footer { display:flex; justify-content:space-between; gap:16px; padding-block:24px; color:var(--muted); font-size:13px; }
dialog { width:min(740px,calc(100% - 32px)); max-height:calc(100% - 32px); background:var(--panel); color:var(--ink); border:1px solid var(--border); border-radius:15px; padding:22px; }
dialog::backdrop { background:#0b0810cc; }
dialog form { display:flex; justify-content:flex-end; }
dialog button { border:0; border-radius:50%; width:40px; height:40px; color:var(--ink); background:#392e46; font-size:22px; }
dialog p,dialog video,dialog .button { margin-top:12px; }
#image-dialog img { margin:12px auto 0; max-height:70dvh; max-width:100%; object-fit:contain; }
.subpage { min-height:70vh; padding-block:22px 65px; }
.subpage .back { margin-bottom:18px; }
.gallery-header { padding:24px; margin-bottom:18px; }
.gallery-header h1 { margin-top:6px; }
.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.gallery-grid img { aspect-ratio:auto; }
.project-header { display:grid; grid-template-columns:1.6fr 1fr; gap:24px; align-items:center; padding:22px 0; }
.project h1 { font-size:clamp(34px,5vw,62px); margin:12px 0; }
.chinese-title { color:var(--muted); }
.project-media { min-height:170px; display:grid; place-items:center; padding:12px; }
.project-media img { max-width:100%; }
.project-copy { border-top:1px solid var(--border); padding:16px 0; }
.project-copy h2 { font-size:18px; margin-bottom:5px; }
.project-copy h2 span,.project-copy p,figcaption { color:var(--muted); font-size:14px; }
.project-results { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; margin:10px 0; }
.project-results a { color:var(--accent); }
.project-results video { width:100%; }
@media (max-width:760px) {
  .top { grid-template-columns:1fr; justify-items:center; padding-block:9px 14px; gap:6px; }
  .top nav { width:min(100%,332px); }
  .hero { width:min(calc(100% - 40px),560px); min-height:0; padding:0; display:block; border:0; background:none; }
  .hero-card { display:grid; grid-template-columns:1fr; width:100%; gap:14px; padding:14px; box-shadow:none; }
  .portrait { padding:6px; }
  .hero .eye-board { aspect-ratio:1.98; }
  .floating { display:none; }
  .intro h1 { font-size:clamp(40px,11vw,62px); }
  .section { padding-block:34px; }
  .section-head { padding:22px 0 25px; margin-bottom:17px; }
  .section-head h2,.section-head h1 { font-size:clamp(28px,9vw,65px); }
  .categories,.about-card,.contact,.project-header { grid-template-columns:1fr; }
  .category { gap:5px; padding:13px 16px; }
  .about-card { gap:18px; padding:15px; }
  .postage .eye-board { aspect-ratio:1.65; }
  .about-links { margin-top:7px; }
  .hobby,.essay-grid,.project-results { grid-template-columns:1fr; }
  .hobby { gap:10px; }
  .hobby:nth-child(even) .hobby-art { order:0; }
  .hobby-art { min-height:120px; }
  .gallery-grid { gap:8px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; } }

/* Figma entrance keyframes, played once as page content becomes available. */
@property --translateY-transform { syntax: '<length>'; initial-value: 0px; inherits: false; }
@property --rotate-transform { syntax: '<angle>'; initial-value: 0rad; inherits: false; }
.hero .portrait,.hero .intro { --translateY-transform: 10px; transform: var(--motion-layout-transform, translate(0px)) translateY(var(--translateY-transform, 10px)); transform-origin: 50% 50%; animation: kf_273_182_opacity_0 2.78s linear, kf_273_182_translateY_0 2.78s linear; animation-fill-mode: both; }
.letter { --translateY-transform: 18px; transform: var(--motion-layout-transform, translate(0px)) translateY(var(--translateY-transform, 18px)); transform-origin: 50% 50%; animation: kf_273_325_opacity_0 2.78s linear, kf_273_325_translateY_0 2.78s linear; animation-fill-mode: both; }
.reply { --rotate-transform: 0.05236rad; --translateY-transform: 14px; transform: var(--motion-layout-transform, translate(0px)) translateY(var(--translateY-transform, 14px)) rotate(var(--rotate-transform, 0.05236rad)); transform-origin: 50% 50%; animation: kf_273_370_opacity_0 2.78s linear, kf_273_370_rotate_0 2.78s linear, kf_273_370_translateY_0 2.78s linear; animation-fill-mode: both; }
@keyframes kf_273_182_opacity_0 { 0% { animation-timing-function: ease-out; opacity: 0; } 16.187% { opacity: 1; } 100% { opacity: 1; } }
@keyframes kf_273_182_translateY_0 { 0% { animation-timing-function: ease-out; --translateY-transform: 10px; } 16.187% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
@keyframes kf_273_325_opacity_0 { 0% { animation-timing-function: ease-out; opacity: 0; } 16.547% { opacity: 1; } 100% { opacity: 1; } }
@keyframes kf_273_325_translateY_0 { 0% { animation-timing-function: ease-out; --translateY-transform: 18px; } 16.547% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
@keyframes kf_273_370_opacity_0 { 0% { opacity: 0; } 4.676% { animation-timing-function: ease-out; opacity: 0; } 22.302% { opacity: 1; } 100% { opacity: 1; } }
@keyframes kf_273_370_rotate_0 { 0% { --rotate-transform: 0.05236rad; } 4.676% { animation-timing-function: ease-out; --rotate-transform: 0.05236rad; } 22.302% { --rotate-transform: 0rad; } 100% { --rotate-transform: 0rad; } }
@keyframes kf_273_370_translateY_0 { 0% { --translateY-transform: 14px; } 4.676% { animation-timing-function: ease-out; --translateY-transform: 14px; } 22.302% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }


/* Responsive layout and interaction refinements from the final Web canvas. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease-in both page-out; }
::view-transition-new(root) { animation: 240ms cubic-bezier(.2,.75,.28,1) both page-in; }
@keyframes page-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes page-in { from { opacity: .48; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.site-menu { justify-self: start; position: relative; z-index: 3; }
.site-menu summary { list-style: none; padding: 8px; font-size: 12px; min-width: 42px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); text-align: center; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu .panel { width: 152px; display: grid; position: absolute; top: calc(100% + 7px); right: 0; padding: 5px; box-shadow: 0 12px 26px #09080bbb; }
.site-menu .panel a { padding: 6px 9px; border-radius: 6px; font-size: 13px; }
.site-menu .panel a:hover { background: #392f49; }
.intro h1 { font-weight: 400; letter-spacing: -.045em; }
.intro h1, .section-head h1, .section-head h2, .project h1, .contact h2, .about h2 {
  text-shadow: 0 3px 10px #08050f62;
}
.button, .category, .top nav a, .art-link { transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, box-shadow 170ms ease; }
.button:active { filter: brightness(.9); }
.showcase { width: min(calc(100% + 40px), 1012px); margin-inline: auto; margin-left: max(-20px, calc((100% - 1012px) / 2)); }
.showcase-title { display: grid; align-content: start; gap: 8px; padding: 26px 37px 20px; min-height: 181px; isolation: isolate; }
.showcase-title::after { z-index: -1; }
.showcase-title > span { font-size: clamp(14px, 2.1vw, 23px); }
.showcase.posters .showcase-title { min-height: 225px; padding-top: 102px; }
.posters .showcase-title h2 { position: static; color: var(--ink); line-height: 1.05; }
.posters .showcase-title h2 span { display: block; position: absolute; top: 29px; left: 42%; color: var(--accent); }
.posters .showcase-title > span { position: absolute; right: 15%; bottom: 21px; }
.rail {
  --card-width: 204px; --photo-height: 148px; --rail-gap: 13px;
  gap: var(--rail-gap); padding: 0; margin: 0;
  scrollbar-width: thin; overscroll-behavior-inline: contain;
}
.rail + .rail { margin-top: var(--rail-gap); }
.rail[data-running] { scrollbar-width: none; scroll-behavior: auto; scroll-snap-type: none; }
.rail[data-running]::-webkit-scrollbar { display: none; }
.rail .art-link { flex: 0 0 var(--card-width); }
.rail .art-link img { width: 100%; height: var(--photo-height); aspect-ratio: auto; object-fit: cover; }
.rail .art-link span { line-height: 19px; min-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-controls { padding: 13px clamp(12px, 2.3vw, 24px); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.showcase-controls .gallery-link { margin-left: auto; border-radius: 7px; background: #392f49; color: var(--ink); padding: 7px 14px; }
.showcase-controls .gallery-link:hover { background: #493955; }
.motion-button { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.video-list strong { font-size: clamp(15px, 2vw, 17px); }
.chinese-title { color: var(--accent); font-weight: 650; margin-top: 12px; }
.project-header { grid-template-columns: minmax(0, 1fr) minmax(190px, 31%); margin-bottom: 20px; }
.project h1 { font-size: clamp(29px, 4.3vw, 51px); line-height: 1.02; overflow-wrap: anywhere; }
.project-media { padding: 17px; align-content: center; justify-items: center; gap: 6px; min-height: 0; }
.project-media a { display: block; width: min(100%,196px); }
.project-media img { width: 100%; aspect-ratio: 1.63; object-fit: cover; border-radius: 4px; }
.project-media figcaption { font-size: 12px; text-align: center; }
.project-copy h2 { font-size: clamp(17px,2.3vw,22px); }
.project-extra { padding: 14px; margin-block: 4px 16px; }
.subpage > .back:last-child { margin: 10px 0 0; }
.gallery-detail { background: var(--deep); overflow: hidden; position: relative; padding: clamp(14px, 2.7vw, 28px); margin-bottom: 24px; }
.gallery-detail .gallery-header { margin-bottom: 10px; padding: 0; }
.gallery-detail .gallery-header h1 { position: relative; z-index: 1; margin: 0; }
.gallery-header .kicker { font-weight: 600; }
.gallery-detail::after { content: ""; width: min(36vw, 360px); aspect-ratio: 1; border: 21px solid #70568b66; border-radius: 50%; position: absolute; top: -150px; right: -130px; pointer-events: none; }
.gallery-chapter { border-top: 1px solid var(--border); padding: clamp(13px, 2.7vw, 29px) 0; }
.gallery-chapter > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.gallery-chapter h2, .moonlit h2 { font-family: "Noto Serif SC","SimSun",serif; font-weight: 500; font-size: clamp(20px, 3.2vw, 35px); }
.gallery-chapter header span, .gallery-total { color: var(--accent); font-size: clamp(10px, 1.3vw, 13px); }
.gallery-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(13px, 5vw, 65px); }
.gallery-item { min-width: 0; }
.gallery-item a, .moonlit a { display: block; }
.gallery-item img { width: 100%; height: auto; }
.gallery-item figcaption { display: grid; line-height: 1.45; margin-top: 8px; font-size: 12px; }
.gallery-item figcaption strong { font-weight: 600; color: var(--ink); }
.gallery-item figcaption span { color: var(--accent); }
.gallery-detail.posters .offset { margin-top: 11%; }
.gallery-detail.posters .identity .offset { max-width: 83%; }
.gallery-detail.posters .web-visual .offset { max-width: 84%; }
.gallery-item.circle { width: min(90%, 376px); justify-self: center; text-align: center; }
.gallery-item.circle img { aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.gallery-item.wide { grid-column: 1/-1; }
.gallery-item.wide img { aspect-ratio: 2.28; object-fit: cover; }
.moonlit { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0,1fr); gap: clamp(10px, 4vw, 36px); align-items: start; padding-bottom: 24px; }
.moonlit img { width: 100%; }
.moonlit strong { color: var(--accent); line-height: 1.1; display: block; }
.moonlit p { color: var(--muted); font-size: 12px; }
.gallery-total { margin-top: 14px; }
.hobby-list { position: relative; min-height: min(57vw, 678px); gap: clamp(25px,5vw,55px); padding-block: 18px; }
.hobby { position: relative; z-index: 1; gap: clamp(30px, 12vw, 131px); }
.hobby-art { min-height: 0; overflow: hidden; }
.hobby-art img { width: 100%; aspect-ratio: 395 / 174; object-fit: cover; }
.hobby-path, .hobby-dot { position: absolute; pointer-events: none; }
.hobby-path { width: 9%; height: 100%; inset: 0 auto 0 45.5%; }
.hobby-path svg { width: 100%; height: 100%; overflow: visible; }
.hobby-dot { width: 12px; height: 12px; left: calc(50% - 6px); }
.hobby-dot.one { top: 17%; } .hobby-dot.two { top: 48%; } .hobby-dot.three { top: 79%; }
.essay-grid > article { border-radius: 10px; background: #fbf9f5; padding: 12px; }
.essays > p { margin-bottom: 12px; font-size: 13px; }
.essay-grid h4 { margin: 0 0 7px; }
.essay-grid article > div { padding: 12px; min-height: 135px; border-radius: 8px; border: 1px solid #dfd4f5; background: #fff; }
.essay-grid p { line-height: 1.5; }
.dialog-links { display: grid; gap: 6px; margin-top: 19px; }
.dialog-links a { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: #30283a; }
.dialog-links a:hover { border-color: var(--accent); }
.screening-feature { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.record-control { width: 84px; height: 84px; font-size: 14px; background: radial-gradient(circle,#d1b7e7 0 23%,#1e1728 24% 42%,#655178 43% 46%,#1e1728 47% 62%,#655178 63% 66%,#1e1728 67%); color: #251c30; }
.record-control[aria-pressed=true] { animation: spin-record 6.6s linear infinite; }
@keyframes spin-record { to { transform: rotate(1turn); } }
dialog[open] { animation: dialog-in 180ms ease-out both; }
dialog[open]::backdrop { animation: backdrop-in 180ms ease-out both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(7px) scale(.985); } }
@keyframes backdrop-in { from { opacity: 0; } }
dialog .record-control { font-size: 14px; width: 84px; height: 84px; color: #251c30; }
#image-dialog img { height: auto; }
.guestbook { scroll-margin-top: 16px; }
.guestbook form { margin-top: 14px; }

@media (max-width: 760px) {
  .top { position: relative; min-height: 106px; }
  .site-menu { position: absolute; top: 4px; right: var(--gutter); }
  .site-menu summary { min-width: 36px; font-size: 11px; }
  .hero { width: min(calc(100% - 48px), 560px); }
  .hero-card { padding: 15px; }
  .hero .eye-board { aspect-ratio: 310 / 132; }
  .intro h1 { font-size: clamp(37px, 13vw, 61px); }
  .showcase { width: 100%; margin-inline: auto; }
  .showcase-title { padding: 12px 16px 14px; min-height: 105px; }
  .showcase-title::after { right: -266px; top: -256px; }
  .showcase.posters .showcase-title { padding-top: 42px; min-height: 117px; }
  .posters .showcase-title h2 span { top: 12px; }
  .posters .showcase-title > span { right: 9%; bottom: 13px; }
  .rail { --card-width: 148px; --photo-height: 106px; --rail-gap: 9px; }
  .rail .art-link span { min-height: 23px; padding: 2px 8px 4px; font-size: 11px; line-height: 15px; }
  .showcase-controls { padding-block: 9px; }
  .showcase-controls .gallery-link, .motion-button { font-size: 11px; }
  .project-header { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .project h1 { font-size: clamp(28px, 9vw, 42px); }
  .gallery-detail.posters .gallery-pair { grid-template-columns: 1fr; }
  .gallery-detail.posters .offset { margin: 0 0 0 auto; width: min(87%, 420px); }
  .hobby-list { padding-left: 17px; }
  .hobby-path { left: 0; width: 10px; }
  .hobby-dot { left: -1px; }
  .hobby-art img { aspect-ratio: 317 / 118; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}


@font-face { font-family: Arizonia; src: url("assets/arizonia.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url("assets/luckiest-guy.ttf") format("truetype"); font-display: swap; }
.intro h1 { font-family: Arizonia, "Segoe Script", cursive; letter-spacing: -.045em; }
.section-head h1, .section-head h2, .project h1, .contact h2, .about h2 { font-family: "Luckiest Guy", "Arial Black", "Microsoft YaHei", sans-serif; font-weight: 400; letter-spacing: -.027em; }
.hobbies .section-head h2 { font-family: "Noto Serif SC","SimSun",serif; }
.project-top { display: flex; justify-content: space-between; min-height: 72px; }
.project-media a { width: min(100%, 176px); }
.project:not(:has(.project-extra)) { min-height: 0; }
@media (max-width: 760px) {
 .project-top { justify-items: initial; align-items: center; min-height: 66px; }
 .project-top .button { min-height: 36px; }
 .intro h1 { font-size: clamp(43px, 15.15vw, 62px); }
}
.play-hobby-motion .hobby-path path{stroke-dashoffset: 0;animation:kf_291_514_path-trim_0 2.78s linear both;}
@keyframes kf_291_514_path-trim_0 { 0% { stroke-dasharray: 0 1; visibility: hidden; } 6.475% { animation-timing-function: linear; stroke-dasharray: 0 1; visibility: hidden; } 78.417% { stroke-dasharray: 1 1; visibility: visible; } 100% { stroke-dasharray: 1 1; visibility: visible; } }
.play-hobby-motion .hobby-dot.one{animation:kf_291_515_opacity_0 2.78s linear both;}
@keyframes kf_291_515_opacity_0 { 0% { opacity: 0; } 17.626% { animation-timing-function: ease-out; opacity: 0; } 23.022% { opacity: 1; } 100% { opacity: 1; } }
.play-hobby-motion .hobby-dot.two{animation:kf_291_516_opacity_0 2.78s linear both;}
@keyframes kf_291_516_opacity_0 { 0% { opacity: 0; } 39.209% { animation-timing-function: ease-out; opacity: 0; } 44.604% { opacity: 1; } 100% { opacity: 1; } }
.play-hobby-motion .hobby-dot.three{animation:kf_291_517_opacity_0 2.78s linear both;}
@keyframes kf_291_517_opacity_0 { 0% { opacity: 0; } 61.151% { animation-timing-function: ease-out; opacity: 0; } 66.547% { opacity: 1; } 100% { opacity: 1; } }
.play-hobby-motion .hobby:nth-child(1) .hobby-art{transform: translateY(var(--translateY-transform, 0px));animation:kf_291_518_opacity_0 2.78s linear both,kf_291_518_translateY_0 2.78s linear both;}
@keyframes kf_291_518_opacity_0 { 0% { opacity: 0; } 15.108% { animation-timing-function: ease-out; opacity: 0; } 27.338% { opacity: 1; } 100% { opacity: 1; } } @keyframes kf_291_518_translateY_0 { 0% { --translateY-transform: 20px; } 15.108% { animation-timing-function: ease-out; --translateY-transform: 20px; } 27.338% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
.play-hobby-motion .hobby:nth-child(1) > div:last-child{transform: translateY(var(--translateY-transform, 0px));animation:kf_291_522_opacity_0 2.78s linear both,kf_291_522_translateY_0 2.78s linear both;}
@keyframes kf_291_522_opacity_0 { 0% { opacity: 0; } 20.504% { animation-timing-function: ease-out; opacity: 0; } 34.173% { opacity: 1; } 100% { opacity: 1; } } @keyframes kf_291_522_translateY_0 { 0% { --translateY-transform: 20px; } 20.504% { animation-timing-function: ease-out; --translateY-transform: 20px; } 34.173% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
.play-hobby-motion .hobby:nth-child(2) .hobby-art{transform: translateY(var(--translateY-transform, 0px));animation:kf_291_525_opacity_0 2.78s linear both,kf_291_525_translateY_0 2.78s linear both;}
@keyframes kf_291_525_opacity_0 { 0% { opacity: 0; } 36.331% { animation-timing-function: ease-out; opacity: 0; } 48.561% { opacity: 1; } 100% { opacity: 1; } } @keyframes kf_291_525_translateY_0 { 0% { --translateY-transform: 20px; } 36.331% { animation-timing-function: ease-out; --translateY-transform: 20px; } 48.561% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
.play-hobby-motion .hobby:nth-child(2) > div:last-child{transform: translateY(var(--translateY-transform, 0px));animation:kf_291_531_opacity_0 2.78s linear both,kf_291_531_translateY_0 2.78s linear both;}
@keyframes kf_291_531_opacity_0 { 0% { opacity: 0; } 41.727% { animation-timing-function: ease-out; opacity: 0; } 55.396% { opacity: 1; } 100% { opacity: 1; } } @keyframes kf_291_531_translateY_0 { 0% { --translateY-transform: 20px; } 41.727% { animation-timing-function: ease-out; --translateY-transform: 20px; } 55.396% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
.play-hobby-motion .hobby:nth-child(3) .hobby-art{transform: translateY(var(--translateY-transform, 0px));animation:kf_291_534_opacity_0 2.78s linear both,kf_291_534_translateY_0 2.78s linear both;}
@keyframes kf_291_534_opacity_0 { 0% { opacity: 0; } 58.273% { animation-timing-function: ease-out; opacity: 0; } 70.504% { opacity: 1; } 100% { opacity: 1; } } @keyframes kf_291_534_translateY_0 { 0% { --translateY-transform: 20px; } 58.273% { animation-timing-function: ease-out; --translateY-transform: 20px; } 70.504% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
.play-hobby-motion .hobby:nth-child(3) > div:last-child{transform: translateY(var(--translateY-transform, 0px));animation:kf_291_540_opacity_0 2.78s linear both,kf_291_540_translateY_0 2.78s linear both;}
@keyframes kf_291_540_opacity_0 { 0% { opacity: 0; } 63.669% { animation-timing-function: ease-out; opacity: 0; } 77.338% { opacity: 1; } 100% { opacity: 1; } } @keyframes kf_291_540_translateY_0 { 0% { --translateY-transform: 20px; } 63.669% { animation-timing-function: ease-out; --translateY-transform: 20px; } 77.338% { --translateY-transform: 0px; } 100% { --translateY-transform: 0px; } }
.rail-group { display: flex; flex: 0 0 auto; gap: var(--rail-gap); }
.eye { transition: transform 160ms cubic-bezier(.2,.75,.28,1); }
@media (min-width: 761px) {
  .showcase { width: min(calc(100% + var(--gutter)), 1012px); margin-left: calc((100% - min(calc(100% + var(--gutter)), 1012px)) / 2); }
}
@media (max-width: 760px) {
  :root { --gutter: clamp(16px, 6.15vw, 24px); }
}
