/* A monochrome exhibition system that continues the glass hero. */
:root {
  --font: 'Poppins', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --mono: 'Poppins', 'Microsoft YaHei', sans-serif;
  --bg: #000;
  --text: #fff;
  --muted: #a2a2a2;
  --line: rgba(255,255,255,.15);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { margin: 0; background: #000; color: #fff; font-family: var(--font); overflow-x: hidden; text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
::selection { background: #fff; color: #000; }
[hidden] { display: none !important; }
.shell { width: min(1600px, calc(100% - 2 * var(--pad-x))); margin-inline: auto; }
.eyebrow { color: #a0a0a0; font-size: 11px; font-weight: 400; line-height: 1.8; letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; background: #fff; color: #000; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.page-progress { position: fixed; inset: 0 0 auto; height: 2px; background: #fff; z-index: 20; pointer-events: none; transform: scaleX(0); transform-origin: left; }

/* Navigation keeps the same restrained geometry as the hero. */
.nav { gap: 24px; }
.logo { gap: 12px; flex: 0 0 auto; white-space: nowrap; overflow: visible; }
.logo b { font-size: 21px; font-weight: 600; letter-spacing: .07em; }
.logo span { color: #b5b5b5; font-size: 10px; letter-spacing: .13em; margin-left: 5px; }
.logo-mark { display: block; width: 34px; height: 38px; flex: 0 0 34px; background: none; border-radius: 0; overflow: visible; }
.nav-actions { display: flex; align-items: center; gap: clamp(24px,3.2vw,48px); }
.nav-links { align-items: center; padding: 0; margin: 0; }
.nav-links a { display: inline-flex; align-items: baseline; gap: 4px; min-height: 40px; padding-block: 10px; font-family: var(--font); font-size: 14px; letter-spacing: .035em; }
.nav-links a sup { color: #9b9b9b; font-size: 9px; }
.nav-links a::after { bottom: 6px; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: #a0a0a0; min-height: 40px; white-space: nowrap; }
.motion-toggle:hover { color: #fff; }
.motion-dot { display: inline-block; width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.motion-toggle[aria-pressed=true] .motion-dot { width: 0; height: 0; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
.motion-toggle[aria-disabled=true] { color: #777; cursor: default; }
.motion-label { font-size: 11px; letter-spacing: .04em; }
.hero-context { position: absolute; top: 22%; left: var(--pad-x); color: #9b9b9b; font-size: 11px; line-height: 1.9; letter-spacing: .12em; }
.hero-context span { display: block; margin-top: 7px; color: #d0d0d0; font-size: 12px; letter-spacing: .035em; }
.tagline { font-size: clamp(26px,2.4vw,38px); line-height: 1.35; letter-spacing: -.035em; }
.tagline strong { font-weight: 600; }
.cta { height: 48px; padding-inline: 20px; border-width: 1px; border-color: #ffffff80; border-radius: 5px; box-shadow: inset 0 1px 0 #ffffff12; font-size: 13px; letter-spacing: .04em; }
.cta-line { height: 1px; background: #ffffff65; }
.arrow { border-width: 1.5px; width: 40px; height: 40px; }
.hero-scroll { position: absolute; left: var(--pad-x); bottom: 22px; display: inline-flex; gap: 18px; align-items: center; font-size: 10px; letter-spacing: .1em; color: #999; }
.hero-scroll span { font-size: 15px; color: #fff; }
.ui > canvas { z-index: 0; pointer-events: auto; }
.ui > :not(canvas) { z-index: 1; }

/* A horizontal catalogue: complete covers, quiet frames, tactile controls. */
.works { --rail-bleed: max(var(--pad-x), calc((100vw - 1600px) / 2)); padding-top: clamp(64px,6.25vw,100px); padding-bottom: 90px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.section-heading h2 { font-size: clamp(48px,5.2vw,82px); font-weight: 400; line-height: 1.2; letter-spacing: -.055em; margin-top: 20px; }
.section-heading h2 > span:not(.works-heading-arrow) { color: #fff; }
.works-heading-arrow { display: inline-block; font-family: Arial,sans-serif; font-size: .9em; margin-left: 28px; font-weight: 300; }
.section-intro { flex-shrink: 0; font-size: 14px; line-height: 1.9; color: #a0a0a0; margin-bottom: 8px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 32px 0 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #a2a2a2; font-size: 13px; line-height: 1.5; transition: color .25s, background .25s, border-color .25s, box-shadow .25s; }
.filter span { font-size: 10px; opacity: .65; font-variant-numeric: tabular-nums; }
.filter:hover { color: #fff; border-color: #ffffff30; background: #ffffff06; }
.filter.is-active { background: #eeeee9; color: #111; border-color: #eeeee9; box-shadow: inset 0 1px 0 #fff, 0 2px 8px #0003; }
.gallery-controls { display: flex; align-items: center; }
.gallery-count { font-size: 12px; color: #979797; white-space: nowrap; font-variant-numeric: tabular-nums; }
#project-grid[data-view=cards] { position: relative; display: flex; align-items: stretch; gap: 24px; width: calc(100% + var(--rail-bleed) + 2px); margin-left: -2px; padding: 4px var(--rail-bleed) 12px 2px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: none; scroll-padding-inline: 2px var(--rail-bleed); scroll-behavior: smooth; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
#project-grid::-webkit-scrollbar { display: none; }
#project-grid:focus-visible { outline: 1px solid #9a9a9a; outline-offset: 6px; border-radius: 12px; }
#project-grid.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
#project-grid.is-dragging * { cursor: grabbing; }
#project-grid.is-auto-scrolling { scroll-behavior: auto; }
#project-grid.is-autoplay-resetting { pointer-events: auto; }
.project-card { position: relative; display: flex; flex: 0 0 clamp(300px,42vw,600px); min-width: 0; min-height: 0; scroll-snap-align: start; scroll-margin-block: 90px; }
.project-button { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; height: 100%; overflow: hidden; background: #0c0c0c; border: 1px solid #ffffff29; border-radius: 12px; box-shadow: inset 0 1px 0 #ffffff0c, 0 8px 22px #0003; text-align: left; transition: border-color .35s, background .35s, box-shadow .35s; }
.project-button:focus-visible { outline-offset: -4px; }
.project-visual { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #171717; border-bottom: 1px solid #ffffff12; isolation: isolate; box-shadow: inset 0 1px 0 #ffffff08; }
.project-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; padding: 22px; transform: scale(1); user-select: none; -webkit-user-drag: none; transition: transform .85s cubic-bezier(.2,.65,.2,1); }
.project-visual.portrait { background: #181818; }
.project-visual.portrait .project-image { padding: 21px; }
.project-info { display: flex; flex: 1; flex-direction: column; padding: 20px 25px 0; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.project-number { font-size: 11px; color: #aaa; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.project-kind { color: #929292; font-size: 10px; line-height: 1.4; letter-spacing: .1em; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-heading h3 { min-width: 0; color: #f1f1ef; font-size: clamp(24px,1.95vw,28px); font-weight: 400; line-height: 1.4; letter-spacing: -.025em; }
.project-open { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; color: #dededb; border: 1px solid #ffffff35; border-radius: 50%; font-family: Arial,sans-serif; font-size: 22px; line-height: 1; box-shadow: inset 0 1px 0 #ffffff09; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.project-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 46px; margin-top: 10px; margin-bottom: 17px; color: #a5a5a5; font-size: 13px; line-height: 23px; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; margin-top: auto; border-top: 1px solid #ffffff12; }
.image-count { display: inline-flex; align-items: center; gap: 7px; color: #9b9b9b; font-size: 11px; }
.image-count svg { width: 14px; height: 14px; }
.project-view-label { color: #c6c6c6; font-size: 11px; letter-spacing: .03em; }
@media (hover:hover) and (pointer:fine) {
  .project-button:hover { border-color: #ffffff57; background: #121212; box-shadow: inset 0 1px 0 #ffffff1a, 0 8px 22px #0003; }
  .project-button:hover .project-image { transform: scale(1.025); }
  .project-button:hover .project-open { border-color: #eee; background: #eee; color: #080808; transform: rotate(5deg); }
}
.gallery-navigation { display: grid; grid-template-columns: auto auto minmax(48px,1fr) auto; grid-template-areas: 'hint autoplay progress pagination'; align-items: center; gap: 26px; padding-top: 20px; }
.gallery-hint { grid-area: hint; color: #969696; font-size: 11px; line-height: 1.7; letter-spacing: .025em; }
.gallery-autoplay { grid-area: autoplay; display: inline-flex; justify-content: center; align-items: center; gap: 9px; justify-self: end; min-height: 44px; padding: 0 13px; border: 1px solid #ffffff2b; border-radius: 5px; color: #b9b9b9; background: #ffffff04; font-size: 11px; line-height: 1; letter-spacing: .025em; white-space: nowrap; box-shadow: inset 0 1px 0 #ffffff07; transition: color .25s, border-color .25s, background .25s; }
.gallery-autoplay:hover:not(:disabled) { color: #fff; border-color: #ffffff65; background: #ffffff0b; }
.gallery-autoplay[aria-pressed=true] { color: #dededb; border-color: #ffffff40; }
.autoplay-icon { display: block; width: 8px; height: 10px; flex: 0 0 8px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.gallery-autoplay[aria-pressed=false] .autoplay-icon { width: 0; height: 0; flex-basis: 0; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; margin-right: 1px; }
.gallery-autoplay:disabled { color: #767676; border-color: #ffffff16; background: transparent; box-shadow: none; }
.gallery-autoplay:disabled .autoplay-icon { opacity: .55; }
.gallery-progress { grid-area: progress; min-width: 0; height: 2px; overflow: hidden; background: #ffffff20; }
.gallery-progress-fill { display: block; width: 0; height: 100%; background: #dededb; transform-origin: left; transition: width .25s; }
.gallery-pagination { grid-area: pagination; display: flex; align-items: center; gap: 20px; justify-self: end; }
#gallery-position { color: #aaa; font-size: 11px; letter-spacing: .035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gallery-buttons { display: flex; gap: 9px; }
.rail-arrow { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #ffffff45; border-radius: 50%; color: #e8e8e8; background: #ffffff03; box-shadow: inset 0 1px 0 #ffffff08; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.rail-arrow svg { width: 17px; height: 17px; }
.rail-arrow:hover:not(:disabled) { color: #000; background: #eee; border-color: #eee; }
.rail-arrow:disabled { color: #555; border-color: #ffffff18; }
.gallery-ending { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 55px 0 0; color: #777; }
.gallery-ending > span:first-child { width: 38px; height: 1px; background: #555; }
.gallery-ending p { font-size: 11px; letter-spacing: .12em; }
.gallery-ending > span:last-child { font-size: 18px; color: #bbb; }
.noscript-note { padding: 30px; border: 1px solid var(--line); color: var(--muted); }

/* The maker's note is set like the closing page of a catalogue. */
.about { padding-block: 90px 110px; border-top: 1px solid var(--line); }
.about-kicker { margin-bottom: 34px; }
.about-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10%; align-items: start; }
.about-layout h2 { font-size: clamp(32px,3.35vw,54px); font-weight: 400; line-height: 1.4; letter-spacing: -.055em; }
.about-layout h2 span { color: #777; }
.about-copy { padding-top: 5px; }
.about-copy p { font-size: 14px; line-height: 2; color: #a0a0a0; }
.about-copy p + p { margin-top: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 42px; min-height: 44px; padding-bottom: 12px; margin-top: 26px; font-size: 13px; border-bottom: 1px solid #ffffff65; }
.text-link span { font-size: 18px; transition: transform .25s; }
.text-link:hover span { transform: translate(3px,-3px); }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-top: 68px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-stats > div { display: flex; align-items: baseline; gap: 18px; }
.about-stats strong { font-size: clamp(42px,5.2vw,80px); line-height: 1.2; letter-spacing: -.06em; font-weight: 300; }
.about-stats span { color: #969696; font-size: 12px; line-height: 1.8; letter-spacing: .02em; }
.closing-wordmark { display: flex; align-items: center; gap: .15em; font-size: clamp(46px,11.5vw,184px); font-weight: 500; line-height: 1.12; letter-spacing: -.075em; white-space: nowrap; padding-block: 14px 55px; }
.closing-wordmark span { color: transparent; -webkit-text-stroke: 1px #fff; }
.closing-wordmark b { margin-left: auto; font: 300 .7em Arial,sans-serif; letter-spacing: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px 40px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 17px; letter-spacing: .08em; }
.footer-brand span { display: block; font-size: 10px; letter-spacing: .13em; color: #929292; margin-top: 7px; }
.site-footer p { color: #929292; font-size: 12px; }
.footer-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.icp-link { color: #aaa; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.icp-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.back-top { display: flex; align-items: center; gap: 20px; min-height: 44px; font-size: 12px; }
.back-top span { font-size: 17px; }

/* Fullscreen project reading room. */
.project-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #000; color: #fff; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.project-dialog::backdrop { background: #000d; }
.dialog-topbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; height: 80px; padding: 16px var(--pad-x); background: #000e; border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.dialog-brand { font-size: 17px; letter-spacing: .08em; }
.dialog-brand > span { margin-left: 12px; color: #929292; font-size: 10px; letter-spacing: .12em; }
.detail-index { margin-left: auto; margin-right: 40px; color: #9b9b9b; font-size: 11px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.icon-button { display: flex; align-items: center; gap: 20px; height: 44px; padding: 0 18px; border: 1px solid #ffffff60; border-radius: 4px; background: transparent; font-size: 17px; transition: color .25s,background .25s; }
.icon-button span { font-size: 12px; }
.icon-button:hover { background: #fff; color: #000; }
.detail-layout { display: block; width: min(1600px,calc(100% - 2 * var(--pad-x))); margin-inline: auto; }
.detail-cover-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 48px 0 30px; }
.detail-cover-heading h2 { margin-top: 17px; font-size: clamp(35px,4.8vw,76px); font-weight: 400; line-height: 1.25; letter-spacing: -.05em; }
.detail-cover-heading .eyebrow { font-size: 11px; letter-spacing: .14em; }
.detail-explore { color: #929292; font-size: 10px; letter-spacing: .14em; white-space: nowrap; margin-bottom: 7px; }
.detail-gallery { min-width: 0; }
.detail-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(360px,65dvh,850px); padding: 20px; overflow: hidden; border: 1px solid #ffffff26; border-radius: 10px; background: #111; box-shadow: inset 0 1px 0 #ffffff08; }
.detail-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: calc(50% - 24px); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; background: #000b; border: 1px solid #ffffff65; border-radius: 50%; font-size: 20px; backdrop-filter: blur(12px); transition: background .25s,color .25s; }
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
.gallery-arrow:hover { background: #fff; color: #000; }
.image-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; color: #a0a0a0; font-size: 12px; font-variant-numeric: tabular-nums; }
.image-meta a { display: inline-flex; align-items: center; min-height: 40px; color: #eee; font-size: 12px; }
.image-meta a:hover { text-decoration: underline; }
.detail-key-hint { color: #8d8d8d; font-size: 11px; }
.image-thumbnails { display: flex; justify-content: center; gap: 12px; overflow-x: auto; padding: 5px 8px 20px; }
.thumbnail { flex: 0 0 100px; width: 100px; height: 64px; padding: 3px; background: #111; border: 1px solid transparent; border-radius: 4px; opacity: .48; transition: opacity .25s,border-color .25s; }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; border-radius: 2px; }
.thumbnail.is-current { opacity: 1; border-color: #fff; }
.thumbnail:hover { opacity: 1; }
.detail-info { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12%; padding: 45px 0 50px; border-top: 1px solid var(--line); margin-top: 25px; }
.detail-section-label, .detail-caption > span { color: #969696; font-size: 11px; letter-spacing: .08em; }
#detail-description { margin-top: 20px; color: #ddd; font-size: clamp(17px,1.7vw,24px); line-height: 1.8; letter-spacing: -.02em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.detail-tags span { padding: 6px 9px; border: 1px solid #ffffff30; border-radius: 3px; color: #aaa; font-size: 12px; }
.detail-caption p { margin-top: 20px; color: #a0a0a0; font-size: 14px; line-height: 2; }
.next-project { display: flex; align-items: center; justify-content: space-between; gap: 25px; width: 100%; padding: 42px 0 65px; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.next-project small { display: block; margin-bottom: 15px; color: #969696; font-size: 11px; letter-spacing: .08em; }
.next-project strong { display: block; font-size: clamp(26px,4vw,58px); font-weight: 400; letter-spacing: -.04em; }
.next-project > b { color: #fff; font-size: 80px; font-weight: 300; line-height: 1; transition: transform .3s; }
.next-project:hover > b { transform: translate(8px,-8px); }

.js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s,transform .7s; }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused { scroll-behavior: auto; }
.motion-paused .reveal { opacity: 1; transform: none; }
.motion-paused .project-image { transform: none !important; }
.motion-paused #project-grid { scroll-behavior: auto; }

@media (max-width:1100px) {
  .logo span { display: none; }
  .nav-actions { gap: 28px; }
  .nav-links { gap: 30px; }
  .section-heading h2 { font-size: 60px; }
  .project-info { padding-inline: 21px; }
  .project-heading h3 { font-size: 24px; }
  .project-description { font-size: 13px; }
  .about-layout { gap: 8%; }
  .about-copy p { font-size: 14px; }
  .gallery-navigation { gap: 18px; }
}
@media (max-width:1000px) {
  .gallery-navigation { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: 'hint autoplay' 'progress pagination'; gap: 14px 24px; }
  .gallery-toolbar { flex-wrap: wrap; gap: 12px; }
  .gallery-controls { margin-left: auto; }
}
@media (max-width:900px), (max-aspect-ratio:1/1) {
  .hero-context { top: 15%; max-width: 55%; font-size: 10px; }
  .hero-context span { font-size: 11px; }
  .hero-scroll { display: none; }
}
@media (max-width:700px) {
  .shell { width: calc(100% - 40px); }
  .nav { gap: 15px; }
  .logo { gap: 9px; }
  .logo b { font-size: 18px; }
  .logo-mark { width: 29px; height: 34px; flex-basis: 29px; }
  .nav-actions { gap: 17px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
  .motion-toggle { min-width: 40px; }
  .motion-label { display: none; }
  .tagline { font-size: clamp(24px,5.8vw,30px); line-height: 1.4; }
  .works { --rail-bleed: 20px; padding-top: 64px; padding-bottom: 65px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: clamp(39px,8.5vw,58px); margin-top: 19px; letter-spacing: -.055em; }
  .works-heading-arrow { margin-left: 20px; }
  .section-intro { margin-top: 18px; font-size: 13px; }
  .section-intro br { display: none; }
  .eyebrow { font-size: 10px; }
  .gallery-toolbar { gap: 15px; margin: 28px 0 23px; padding-top: 20px; flex-wrap: wrap; }
  .filters { gap: 4px; }
  .filter { gap: 5px; min-height: 40px; font-size: 12px; padding: 8px 10px; }
  .filter span { font-size: 9px; }
  .gallery-controls { margin-left: auto; }
  .gallery-count { font-size: 11px; }
  #project-grid[data-view=cards] { gap: 15px; }
  .project-card { flex-basis: calc(100vw - 68px); }
  .project-image { padding: 13px; }
  .project-visual.portrait .project-image { padding: 13px; }
  .project-info { padding: 19px 19px 0; }
  .project-meta { margin-bottom: 11px; }
  .project-number { font-size: 10px; }
  .project-kind { font-size: 9px; }
  .project-heading { gap: 12px; }
  .project-heading h3 { font-size: 22px; }
  .project-open { flex-basis: 40px; width: 40px; height: 40px; font-size: 21px; }
  .project-description { margin-top: 10px; margin-bottom: 16px; font-size: 13px; min-height: 44px; line-height: 22px; }
  .project-card-footer { min-height: 49px; }
  .image-count, .project-view-label { font-size: 11px; }
  .gallery-navigation { gap: 12px 18px; padding-top: 17px; }
  .gallery-hint { font-size: 11px; letter-spacing: 0; }
  .gallery-autoplay { padding-inline: 11px; }
  .gallery-progress { height: 1px; }
  .gallery-pagination { gap: 14px; }
  #gallery-position { font-size: 11px; }
  .gallery-buttons { gap: 7px; }
  .rail-arrow { width: 42px; height: 42px; }
  .gallery-ending { padding-top: 38px; gap: 12px; }
  .gallery-ending p { font-size: 11px; letter-spacing: .06em; }
  .about { padding-block: 55px 65px; }
  .about-kicker { margin-bottom: 24px; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-layout h2 { font-size: clamp(29px,6.8vw,43px); }
  .about-copy p { font-size: 13px; }
  .about-stats { gap: 15px; margin-top: 42px; padding-top: 23px; }
  .about-stats > div { display: block; }
  .about-stats strong { display: block; font-size: 48px; }
  .about-stats span { display: block; margin-top: 10px; font-size: 11px; }
  .closing-wordmark { padding-block: 0 35px; font-size: 11.5vw; }
  .site-footer { flex-wrap: wrap; gap: 18px; padding-block: 25px 30px; }
  .site-footer p { display: none; }
  .footer-meta { order: 3; flex-basis: 100%; align-items: flex-start; }
  .footer-brand { font-size: 15px; }
  .back-top { font-size: 12px; gap: 12px; }
  .dialog-topbar { height: 64px; padding: 10px 20px; }
  .dialog-brand { font-size: 14px; }
  .dialog-brand > span { display: none; }
  .detail-index { margin-right: 18px; font-size: 10px; }
  .icon-button { gap: 12px; padding-inline: 13px; }
  .detail-layout { width: calc(100% - 40px); }
  .detail-cover-heading { padding: 30px 0 24px; }
  .detail-cover-heading h2 { font-size: 34px; letter-spacing: -.045em; margin-top: 13px; }
  .detail-cover-heading .eyebrow { font-size: 10px; }
  .detail-explore { display: none; }
  .detail-image-wrap { height: clamp(260px,55dvh,620px); padding: 8px; border-radius: 6px; }
  .gallery-arrow { width: 44px; height: 44px; }
  .gallery-prev { left: 6px; }
  .gallery-next { right: 6px; }
  .image-meta { padding-block: 9px; }
  .detail-key-hint { display: none; }
  .image-thumbnails { justify-content: flex-start; gap: 9px; }
  .thumbnail { flex-basis: 73px; height: 49px; }
  .detail-info { grid-template-columns: 1fr; gap: 35px; margin-top: 15px; padding: 30px 0 40px; }
  .detail-caption p { font-size: 13px; }
  .next-project { padding: 30px 0 45px; }
  .next-project > b { font-size: 56px; }
  .next-project strong { font-size: 27px; }
}
@media (max-width:420px) {
  .filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 4px; }
  .filter { justify-content: center; padding-inline: 6px; white-space: nowrap; }
  .nav-links li:nth-child(2) { display: list-item; }
  .nav-links li:first-child { display: none; }
  .nav-links { gap: 15px; }
  .nav-actions { gap: 10px; }
  .logo { gap: 7px; }
  .logo b { font-size: 17px; }
  .logo-mark { width: 27px; height: 32px; flex-basis: 27px; }
  .project-heading h3 { font-size: 20px; }
  .project-heading { gap: 9px; }
  .project-info { padding-inline: 16px; }
  .gallery-count { display: none; }
  .gallery-navigation { column-gap: 12px; }
  .gallery-pagination { gap: 10px; }
  .about-stats strong { font-size: 40px; }
}
/* A true square viewing stage, followed by controls and copy in document flow.
   Short phones scroll naturally instead of squeezing the cube or overlaying text. */
@media (max-width:700px), (max-width:1000px) and (max-height:500px) {
  .hero { --compact-hero: 1; height: auto; min-height: 100svh; }
  .hero .ui {
    position: relative; inset: auto; min-height: 100svh;
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 44px auto auto 44px minmax(72px,1fr) 64px;
    grid-template-areas: 'nav nav' 'context context' 'stage stage' 'hint arrows' 'tagline tagline' 'cta cta';
    column-gap: 16px; row-gap: 12px;
    padding: max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  }
  .hero #scene {
    grid-area: stage; position: relative; inset: auto; justify-self: center; align-self: start;
    width: min(100%,380px,max(240px,calc(100svh - 360px))); height: auto; aspect-ratio: 1; min-width: 0; max-width: 100%;
    transform: none;
  }
  .hero .nav { grid-area: nav; position: relative; inset: auto; width: 100%; gap: 12px; }
  .hero .logo { gap: 8px; }
  .hero .logo b { font-size: 18px; letter-spacing: .04em; }
  .hero .logo-mark { width: 28px; height: 32px; flex-basis: 28px; }
  .hero .logo span, .hero .motion-label { display: none; }
  .hero .nav-actions { gap: 8px; }
  .hero .nav-links { gap: 14px; }
  .hero .nav-links li:first-child { display: none; }
  .hero .nav-links li:nth-child(2) { display: list-item; }
  .hero .nav-links a { min-height: 44px; align-items: center; padding-block: 10px; font-size: 12px; }
  .hero .motion-toggle { width: 44px; min-width: 44px; height: 44px; }
  .hero .hero-context { grid-area: context; position: relative; inset: auto; max-width: none; margin-top: 0; font-size: 9px; letter-spacing: .15em; line-height: 1.6; }
  .hero .hero-context span { margin-top: 3px; font-size: 11px; letter-spacing: .025em; }
  .hero .arrows { grid-area: arrows; position: relative; inset: auto; transform: none; gap: 10px; }
  .hero .arrow { width: 44px; height: 44px; border-width: 1px; border-color: #ffffff85; }
  .hero .hero-scroll { grid-area: hint; position: relative; inset: auto; display: flex; align-self: center; gap: 10px; font-size: 10px; letter-spacing: .015em; color: #a2a2a2; }
  .hero .hero-scroll span { font-size: 12px; color: #666; }
  .hero .dots { display: none; }
  .hero .tagline { grid-area: tagline; position: relative; inset: auto; align-self: end; margin: 8px 0 0; font-size: clamp(20px,5.5vw,24px); line-height: 1.5; letter-spacing: -.04em; }
  .hero .tagline br { display: none; }
  .hero .tagline strong { display: block; font-size: 1.12em; line-height: 1.45; margin-top: 3px; }
  .hero .cta-row { grid-area: cta; position: relative; inset: auto; width: 100%; transform: none; align-self: end; }
  .hero .cta { height: 48px; padding-inline: 16px; font-size: 12px; border-radius: 5px; }
  .hero .cta-line { min-width: 16px; background: #ffffff40; }
  .hero .count { font-size: 64px; line-height: 1; transform: none; letter-spacing: -.06em; -webkit-text-stroke: 1px #ffffff80; padding-left: 6px; }
  .hero .loader { grid-area: stage; position: relative; inset: auto; place-self: center; transform: none; font-size: 10px; }
}
@media (max-width:1000px) and (max-height:500px) and (orientation:landscape) {
  .hero .ui {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-rows: 44px auto 1fr 72px 44px;
    grid-template-areas: 'nav nav' 'stage context' 'stage tagline' 'stage cta' 'hint arrows';
    column-gap: 28px; row-gap: 10px;
  }
  .hero #scene { width: min(100%,280px,max(200px,calc(100svh - 148px))); align-self: center; }
  .hero .hero-context { margin-top: 0; }
  .hero .tagline { align-self: center; font-size: 20px; }
  .hero .arrows { justify-self: end; }
  .hero .count { font-size: 64px; }
}
@media (max-width:700px) {
  .works { padding-top: 48px; }
  .filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 5px; }
  .filter { justify-content: center; min-height: 44px; padding-inline: 6px; white-space: nowrap; }
  .gallery-controls { display: none; }
  .gallery-toolbar { margin-top: 24px; margin-bottom: 20px; }
  .dialog-topbar { height: auto; min-height: 64px; padding-top: max(10px,env(safe-area-inset-top)); }
  .project-dialog { padding-bottom: env(safe-area-inset-bottom); }
}
@media (hover:none) {
  .gallery-hint { font-size: 0; }
  .gallery-hint::after { content: '左右滑动，探索作品'; font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  html, #project-grid { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .project-image { transform: none !important; }
}
