*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  background:#fff;
  color:#050505;
  font-family:"Courier New","Noto Sans CJK SC","Microsoft YaHei","PingFang SC",Courier,monospace;
}
.work-page{
  position:relative;
  min-height:100vh;
  padding:0 2.85vw 2.6vh;
  display:flex;
  flex-direction:column;
}
.back{
  position:absolute;
  top:4.5vh;
  left:2.85vw;
  text-decoration:none;
  font-size:15px;
  font-weight:400;
  letter-spacing:.02em;
  color:transparent;
  background:repeating-linear-gradient(to right,#050505 0 6px,transparent 6px 7.5px);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Central installation display: one connected three-wall perspective drawing. */
.installation-space{
  width:100%;
  min-height:58vh;
  margin-top:12vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wall-system{
  position:relative;
  width:min(94vw,1450px);
  height:min(55vw,700px);
  min-height:430px;
  perspective:1450px;
  transform-style:preserve-3d;
}

/*
  Larger, wider-open connected three-wall system.
  Each panel is animated independently. The side walls begin in perspective,
  but can rotate toward a front-facing view when the pointer approaches them.
*/
.wall{
  position:absolute;
  top:8%;
  height:78%;
  border:1px solid #050505;
  background:#fff;
  transform-style:preserve-3d;
  overflow:hidden;
  transition:
    transform 650ms cubic-bezier(.2,.75,.2,1),
    left 650ms cubic-bezier(.2,.75,.2,1),
    right 650ms cubic-bezier(.2,.75,.2,1),
    width 650ms cubic-bezier(.2,.75,.2,1),
    height 650ms cubic-bezier(.2,.75,.2,1),
    top 650ms cubic-bezier(.2,.75,.2,1),
    z-index 0ms linear;
  will-change:transform,left,right,width;
}
.wall-middle{
  left:29%;
  width:42%;
  transform:translateZ(-150px);
  z-index:2;
}
.wall-left{
  right:71%;
  width:39%;
  transform-origin:right center;
  transform:translateZ(-150px) rotateY(64deg);
  z-index:1;
}
.wall-right{
  left:71%;
  width:39%;
  transform-origin:left center;
  transform:translateZ(-150px) rotateY(-64deg);
  z-index:1;
}

/* Hover/focus states are also controlled by JS so the panel nearest the
   pointer becomes the frontal viewing plane. */
/* Empty placeholders stand in for future documentation photographs.
   Replace each .image-slot with an <img> while keeping the same wall container. */
.image-slot{
  position:absolute;
  left:19%;
  top:25%;
  width:62%;
  height:48%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed #050505;
  font-size:10px;
  letter-spacing:.03em;
  text-align:center;
}
.wall-left .image-slot{left:17%;width:66%}
.wall-right .image-slot{left:17%;width:66%}

.metadata{
  margin-top:2.5vh;
  font-size:13px;
  line-height:1.45;
}
.metadata p{margin:0 0 5px}
.work-clock{
  align-self:center;
  margin-top:auto;
  display:flex;
  gap:34px;
  font-size:clamp(16px,1.25vw,22px);
  line-height:1;
  letter-spacing:.06em;
  white-space:nowrap;
}

@media(max-width:700px){
  .work-page{padding:0 18px 22px}
  .back{top:28px;left:18px}
  .installation-space{margin-top:95px;min-height:52vh}
  .wall-system{width:96vw;height:66vw;min-height:330px}
  .wall{top:16%;height:66%}
  .metadata{margin-top:24px}
}


/* Reliable hover hit-testing and a clearly visible middle-wall motion. */
.wall-middle{
  pointer-events:auto;
  z-index:4;
}
.wall-left,
.wall-right{
  z-index:2;
}

.wall-system.focus-middle .wall-middle{
  left:18% !important;
  width:64% !important;
  top:1% !important;
  height:92% !important;
  transform:translate3d(0,0,260px) scale(1.12) !important;
  z-index:20 !important;
}
.wall-system.focus-middle .wall-left{
  transform:translateZ(-360px) rotateY(76deg) scale(.90) !important;
  z-index:1 !important;
}
.wall-system.focus-middle .wall-right{
  transform:translateZ(-360px) rotateY(-76deg) scale(.90) !important;
  z-index:1 !important;
}




/* V11 — unified wall animation.
   LEFT, MIDDLE and RIGHT use the same duration, easing, final size,
   final position and forward travel. Only their resting poses differ. */
.wall{
  transition:
    transform 650ms cubic-bezier(.2,.75,.2,1),
    left 650ms cubic-bezier(.2,.75,.2,1),
    right 650ms cubic-bezier(.2,.75,.2,1),
    width 650ms cubic-bezier(.2,.75,.2,1),
    height 650ms cubic-bezier(.2,.75,.2,1),
    top 650ms cubic-bezier(.2,.75,.2,1) !important;
  will-change:transform,left,right,width,height,top;
}

.wall-system.focus-left .wall-left,
.wall-system.focus-middle .wall-middle,
.wall-system.focus-right .wall-right{
  left:18% !important;
  right:auto !important;
  top:1% !important;
  width:64% !important;
  height:92% !important;
  transform:translate3d(0,0,260px) rotateY(0deg) scale(1.12) !important;
  z-index:30 !important;
}

/* The two non-selected walls recede while the chosen wall comes forward. */
.wall-system.focus-left .wall-middle,
.wall-system.focus-left .wall-right,
.wall-system.focus-middle .wall-left,
.wall-system.focus-middle .wall-right,
.wall-system.focus-right .wall-left,
.wall-system.focus-right .wall-middle{
  z-index:1 !important;
}

.wall-system.focus-middle .wall-left{
  transform:translateZ(-300px) rotateY(72deg) scale(.92) !important;
}
.wall-system.focus-middle .wall-right{
  transform:translateZ(-300px) rotateY(-72deg) scale(.92) !important;
}

/* Only the actual image area is interactive. */
.wall-left .image-slot,
.wall-middle .image-slot,
.wall-right .image-slot{
  pointer-events:auto !important;
}


/* V12: screen-space hit layer.
   The visible walls remain 3D, but hover detection happens on a flat layer
   above them, so the middle image can never be occluded by side panels. */
.hit-layer{
  position:absolute;
  inset:0;
  z-index:100;
  pointer-events:none;
}
.image-hit{
  position:absolute;
  pointer-events:auto;
  cursor:default;
}
.image-hit-left{
  left:3%;
  top:27%;
  width:22%;
  height:38%;
}
.image-hit-middle{
  left:37%;
  top:25%;
  width:26%;
  height:40%;
}
.image-hit-right{
  right:3%;
  top:27%;
  width:22%;
  height:38%;
}

/* While a wall is focused, let the whole installation remain stable until
   the pointer leaves the installation field. */
.wall-system.is-focused .image-hit{
  pointer-events:none;
}


/* Refinement: hit areas are positioned from each image slot's actual
   screen-space bounds by JS, including the right perspective wall. */
.image-hit-left,
.image-hit-middle,
.image-hit-right{
  right:auto !important;
}

/* Scroll refinement */
html, body { overflow-x: hidden; }
body { min-height: 320vh; }
.work-clock {
  position: fixed !important;
  left: 50% !important;
  bottom: 2.8vh !important;
  transform: translateX(-50%) !important;
  z-index: 1000;
}

html, body { min-height: 700vh !important; }
body { min-height: 700vh !important; }

/* Version 2.28 — Installation multiple-image Preview design */
.installation-preview-space {
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.installation-preview {
  width: 100%;
  display: grid;
  grid-template-columns: clamp(62px, 8vw, 105px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
}
.installation-preview-index {
  height: 72vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 18px), transparent 100%);
}
.installation-preview-index::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.installation-preview-thumb {
  display: block;
  width: 100%;
  padding: 3px;
  margin: 0 0 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.installation-preview-thumb.is-active {
  border: 1px dashed currentColor;
}
.installation-preview-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}
.installation-preview-main {
  height: 72vh;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.installation-preview-main img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}
.installation-preview-placeholder {
  width: min(72vw, 900px);
  height: min(62vh, 650px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed currentColor;
  font-size: 10px;
  font-weight: bold;
}
@media (max-width:700px) {
  .installation-preview {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 12px;
  }
}

/* all these days, a routine — image + text Preview */
.installation-preview {
  grid-template-columns: clamp(62px, 8vw, 105px) minmax(0, 1fr) !important;
}
.installation-preview-content {
  height: 72vh;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 27vw, 390px);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}
.installation-preview-content .installation-preview-main {
  height: 72vh;
}
.installation-work-text {
  height: 66vh;
  overflow-y: auto;
  padding: 8px 12px 18px 0;
  font-size: 10px;
  line-height: 1.55;
  text-align: left;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to bottom, black 0, black calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0, black calc(100% - 22px), transparent 100%);
}
.installation-work-text::-webkit-scrollbar {
  display: none;
}
.installation-work-text p {
  margin: 0 0 1.15em;
}
@media (max-width: 800px) {
  .installation-preview-content {
    height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .installation-work-text {
    height: auto;
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}


/* VERSION 4 — final typography/navigation refinements */

/* English / Latin typography */
html, body, button, input, textarea, select,
a, p, div, span, h1, h2, h3, h4, h5, h6,
table, th, td, li {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

/* Chinese glyphs: use a Heiti-style sans-serif stack while retaining Courier New for Latin.
   Browsers select the Chinese fallback only for glyphs Courier New does not contain. */
html, body, button, input, textarea, select,
a, p, div, span, h1, h2, h3, h4, h5, h6,
table, th, td, li {
  font-family: "Courier New", "SimHei", "Heiti SC", "STHeiti", "Microsoft YaHei", sans-serif;
}

/* Smaller back navigation on all pages */
.back-home,
.back-link,
.back,
.back-nav,
a[href="index.html"],
a[href="./index.html"],
a[href="painting.html"],
a[href="./painting.html"],
a[href="installation.html"],
a[href="./installation.html"],
a[href="video.html"],
a[href="./video.html"] {
  font-size: 0.72rem !important;
}

/* VERSION 4.1 — specific-work information typography refinement */
.metadata,
.work-meta,
.artwork-info,
.work-info {
  font-size: 1.08em !important;
  line-height: 1.32 !important;
}
.metadata p,
.work-meta p,
.artwork-info p,
.work-info p {
  line-height: 1.32 !important;
}


/* VERSION 4.2 — back-navigation position refinement */
.back-home,
.back-link,
.back,
.back-nav {
  margin-left: clamp(18px, 2.2vw, 36px) !important;
}


/* VERSION 4.2 — back-navigation vertical refinement */
.back-home,
.back-link,
.back,
.back-nav {
  transform: translateY(18px) !important;
}


/* VERSION 4.2 — deliberately awkward back-navigation placement */
.back-home,
.back-link,
.back,
.back-nav {
  margin-left: clamp(48px, 5.6vw, 92px) !important;
  transform: translateY(34px) !important;
}


/* Version 4.4 — wider spacing between bottom time displays */
.work-clock,
.clock,
.time {
  column-gap: clamp(44px, 5vw, 90px) !important;
  gap: clamp(44px, 5vw, 90px) !important;
}


/* Version 4.4 — increase bottom time spacing further */
.work-clock,
.clock,
.time,
.about-clock {
  gap: clamp(100px, 13vw, 240px) !important;
  column-gap: clamp(100px, 13vw, 240px) !important;
}

/* VERSION 5 — mobile-only artwork scale + information typography */
@media (max-width:700px){
  .work-page{padding-left:10px;padding-right:10px}
  .installation-space{width:100%;margin-top:88px;min-height:62vh}
  .installation-preview-space{width:100%;padding-left:0;padding-right:0}
  .installation-preview{width:98vw;max-width:none;grid-template-columns:52px minmax(0,1fr) !important}
  .installation-preview-index{width:52px}
  .installation-preview-thumb{height:52px}
  .installation-preview-content{grid-template-columns:1fr !important}
  .installation-preview-main img{max-width:100%;max-height:80vh}
  .metadata,.artwork-info,.work-info,.installation-preview-content{font-size:10px !important;line-height:1.35 !important}
  .artwork-info p,.work-info p,.metadata p{font-size:10px !important;line-height:1.35 !important}
}
