/* Curated work presentation. Original image files and detail sequences stay intact. */
.work-section .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 30px;
}
.work-section .project-grid[data-filter] .project-card {
  grid-column: auto;
  width: auto;
}
.work-section .project-grid[data-filter="all"] .project-card[data-project="guanxia"] {
  grid-column: 1 / -1;
}
.work-section .project-image,
.project-dialog .dialog-lead-frame {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--sage);
}
.work-section .project-visual,
.project-dialog .project-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.work-section .project-visual {
  transition: transform .5s cubic-bezier(.25, .6, .3, 1);
}
.work-section .project-visual img,
.project-dialog .project-visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  inset: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.work-section .project-card button:hover .project-visual img {
  transform: none;
}
@media (hover: hover) {
  .work-section .project-card button:hover .project-visual,
  .work-section .project-card button:focus-visible .project-visual {
    transform: scale(1.018);
  }
}
/* Preserve each complete artwork from its original presentation sheet. */
.work-section [data-project="jiabao"] .project-image,
.project-dialog[data-project="jiabao"] .dialog-lead-frame,
.work-section [data-project="headphones"] .project-image,
.project-dialog[data-project="headphones"] .dialog-lead-frame {
  aspect-ratio: 1600 / 904;
}
/* Jiabao: the full 1600 x 904 banner beginning at source y = 1311. */
.work-section [data-project="jiabao"] .project-visual img,
.project-dialog[data-project="jiabao"] .project-visual img {
  width: 100%;
  height: 283.18584%;
  left: 0;
  top: -145.02212%;
  right: auto;
  bottom: auto;
}
/* Headphones: include the original navigation and all four feature labels. */
.work-section [data-project="headphones"] .project-visual img,
.project-dialog[data-project="headphones"] .project-visual img {
  width: 100%;
  height: 283.18584%;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
}
/* One complete portrait poster, without the neighbouring artwork or sheet margin. */
.work-section [data-project="aigc-posters"] .project-image,
.project-dialog[data-project="aigc-posters"] .dialog-lead-frame {
  aspect-ratio: 698 / 1242;
}
.work-section [data-project="aigc-posters"] .project-visual img,
.project-dialog[data-project="aigc-posters"] .project-visual img {
  width: 229.22636%;
  height: 206.11916%;
  left: -11.89112%;
  top: -35.10467%;
  right: auto;
  bottom: auto;
}
.work-section .project-featured-label {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  border: 1px solid #53634535;
  background: #f7f6eff0;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.work-section .project-grid[data-filter="all"] .project-featured-label {
  display: inline-block;
}
.work-section .project-open {
  opacity: 1;
  transform: none;
  border: 1px solid #24331528;
}
.work-section .project-grid[data-filter="all"] [data-project="guanxia"] .project-info h3 {
  font-size: 26px;
}
.work-section .project-info {
  padding-top: 18px;
  align-items: center;
}
.work-section .project-info h3 { line-height: 1.5; }
.work-section .project-info p { font-size: 11px; }
.project-dialog .dialog-content {
  padding-top: 36px;
}
.project-dialog .dialog-content h2 {
  margin: 14px 0;
  line-height: 1.4;
}
.project-dialog #dialog-description {
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 760px;
}
.project-dialog .dialog-lead {
  margin: 0 0 34px;
}
.project-dialog .dialog-lead figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .5px;
}
.project-dialog .dialog-lead figcaption span:last-child {
  text-align: right;
}
.project-dialog .dialog-complete-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
}
.project-dialog .dialog-complete-label span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.4px;
}
@media (max-width: 700px) {
  .work-section .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-section .project-grid[data-filter="all"] .project-card[data-project="guanxia"] {
    grid-column: auto;
  }
  .work-section .project-featured-label {
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    font-size: 9px;
    letter-spacing: .8px;
  }
  .work-section .project-info { padding-top: 14px; }
  .work-section .project-info h3,
  .work-section .project-grid[data-filter="all"] [data-project="guanxia"] .project-info h3 {
    font-size: 18px;
    letter-spacing: .5px;
  }
  .project-dialog .dialog-content { padding-top: 26px; }
  .project-dialog .dialog-content h2 { font-size: 28px; }
  .project-dialog #dialog-description { margin-bottom: 22px; }
  .project-dialog .dialog-lead { margin-bottom: 25px; }
  .project-dialog .dialog-lead figcaption { font-size: 10px; }
}