.home-portfolio-page {
  --wjt-home-header: 116px;
  --wjt-paper: #e7e4dc;
  --wjt-ink: #242523;
  --wjt-muted: #777872;
  --wjt-line: rgba(36, 37, 35, 0.2);
  --wjt-night: #20211f;
  overflow-x: clip;
  background: var(--wjt-paper);
}

.home-portfolio-page .main-content,
.home-portfolio-page .fashion-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-portfolio-page .fashion-home {
  display: block;
}

.wjt-work-home {
  position: relative;
  color: var(--wjt-ink);
  background: var(--wjt-paper);
}

.wjt-work-home img {
  max-width: none;
}

.wjt-page-axis {
  position: fixed;
  z-index: 70;
  top: calc(var(--wjt-home-header) + 34px);
  left: 20px;
  bottom: 34px;
  width: 16px;
  display: grid;
  grid-template-rows: auto minmax(80px, 1fr) auto;
  justify-items: center;
  gap: 10px;
  color: rgba(36, 37, 35, 0.48);
  mix-blend-mode: difference;
  pointer-events: none;
}

.wjt-page-axis span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 8px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.wjt-page-axis i {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.26);
}

.wjt-page-axis b {
  position: absolute;
  inset: 0;
  display: block;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.wjt-work-hero {
  position: relative;
  min-height: 205svh;
  background: var(--wjt-paper);
}

.wjt-work-hero-sticky {
  position: sticky;
  top: var(--wjt-home-header);
  height: calc(100svh - var(--wjt-home-header));
  min-height: 560px;
  overflow: hidden;
}

.wjt-work-hero-label,
.wjt-work-hero-count,
.wjt-work-hero-scroll {
  position: absolute;
  z-index: 5;
  margin: 0;
  color: rgba(36, 37, 35, 0.68);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em !important;
}

.wjt-work-hero-label {
  top: 34px;
  left: 6%;
}

.wjt-work-hero-count {
  top: 34px;
  right: 6%;
}

.wjt-work-hero-count span {
  color: var(--wjt-ink);
}

.wjt-work-hero-scroll {
  right: 6%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wjt-work-hero-scroll span {
  font-size: 15px;
  animation: wjt-home-scroll-cue 1.7s ease-in-out infinite;
}

@keyframes wjt-home-scroll-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.wjt-work-hero-frame {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(420px, 30vw);
  height: min(520px, 48vh);
  margin: 0;
  overflow: hidden;
  border-radius: 28px 0 28px 0;
  background: #c9c7c0;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 60px rgba(39, 40, 37, 0.12);
  will-change: width, height, border-radius;
}

.wjt-work-hero-frame img,
.wjt-work-hero-frame > span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wjt-work-hero-frame img {
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  will-change: transform;
}

.wjt-work-hero-frame > span {
  background: linear-gradient(90deg, rgba(17, 18, 17, 0.58), rgba(17, 18, 17, 0.03) 68%);
  opacity: 0;
  will-change: opacity;
}

.wjt-work-hero-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 6%;
  width: min(610px, 58vw);
  color: #f8f5ed;
  opacity: 0;
  transform: translateY(calc(-50% + 34px));
  will-change: opacity, transform;
  pointer-events: none;
}

.wjt-work-hero-copy > p:first-child {
  margin: 0 0 20px;
  color: rgba(248, 245, 237, 0.68);
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-size: 12px;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

.wjt-work-hero-copy h1 {
  margin: 0;
  color: inherit;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(54px, 8vw, 116px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.1em !important;
}

.wjt-work-hero-copy > p:nth-of-type(2) {
  max-width: 47ch;
  margin: 28px 0 0;
  color: rgba(248, 245, 237, 0.8);
  font-size: 14px;
  line-height: 1.9;
}

.wjt-work-hero-copy a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-bottom: 7px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.14em !important;
  text-decoration: none;
  pointer-events: auto;
}

.wjt-work-opening {
  position: relative;
  min-height: 1400px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 260px 410px 230px;
  gap: 24px;
  padding: clamp(110px, 12vw, 190px) 6% clamp(120px, 12vw, 190px);
  overflow: hidden;
  background: #efede7;
}

.wjt-work-opening-copy {
  z-index: 3;
  grid-column: 5 / 11;
  display: grid;
  grid-template-columns: minmax(90px, 0.28fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 90px);
  align-self: start;
}

.wjt-work-opening-copy > p:first-child {
  margin: 10px 0 0;
  color: var(--wjt-muted);
  font-size: 9px;
  letter-spacing: 0.16em !important;
}

.wjt-work-opening-copy h2 {
  margin: 0;
  color: var(--wjt-ink);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(30px, 3.8vw, 59px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.06em !important;
}

.wjt-work-opening-copy h2 span {
  display: block;
  margin-bottom: 17px;
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-size: 0.48em;
  letter-spacing: 0.04em !important;
}

.wjt-work-opening-copy > p:last-child {
  grid-column: 2;
  max-width: 48ch;
  margin: 6px 0 0;
  color: #656660;
  font-size: 14px;
  line-height: 2;
}

.wjt-work-opening-image {
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #d1cec6;
}

.wjt-work-opening-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.wjt-work-opening-image--left {
  grid-column: 1 / 5;
  grid-row: 2 / 4;
  align-self: end;
  height: 610px;
  clip-path: polygon(0 0, 100% 0, 100% 89%, 86% 100%, 0 100%);
}

.wjt-work-opening-image--right {
  grid-column: 8 / 13;
  grid-row: 3 / 5;
  height: 520px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 0 13%);
}

.wjt-work-opening-word {
  position: absolute;
  z-index: 1;
  right: -2vw;
  bottom: 118px;
  margin: 0;
  color: #cec29d;
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-size: clamp(82px, 14vw, 220px);
  font-weight: 400;
  line-height: 0.75;
  letter-spacing: -0.04em !important;
  white-space: nowrap;
}

[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 900ms ease, transform 1.2s cubic-bezier(0.2, 0.72, 0.2, 1);
}

[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll-reveal].is-visible img {
  transform: scale(1);
}

.wjt-work-sequence {
  position: relative;
  min-height: 430svh;
  color: #f3f0e8;
  background: var(--wjt-night);
}

.wjt-work-sequence-sticky {
  position: sticky;
  top: var(--wjt-home-header);
  height: calc(100svh - var(--wjt-home-header));
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 44%, rgba(113, 119, 110, 0.18), transparent 31%),
    var(--wjt-night);
}

.wjt-work-sequence-main {
  position: absolute;
  inset: 0 49% 0 0;
  overflow: hidden;
  background: #d7d4cc;
}

.wjt-work-sequence-main figure,
.wjt-work-sequence-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wjt-work-sequence-main figure {
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 700ms ease, transform 1.4s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.wjt-work-sequence-main figure.is-active {
  opacity: 1;
  transform: scale(1);
}

.wjt-work-sequence-main img {
  display: block;
  object-fit: cover;
}

.wjt-work-sequence-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 5.4%;
  width: 38%;
  height: 300px;
  transform: translateY(-50%);
}

.wjt-work-sequence-copy article {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 560ms ease, transform 800ms cubic-bezier(0.2, 0.72, 0.2, 1), clip-path 900ms cubic-bezier(0.2, 0.72, 0.2, 1);
  pointer-events: none;
}

.wjt-work-sequence-copy article.is-active {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

.wjt-work-sequence-copy article > p:first-child {
  margin: 0 0 24px;
  color: rgba(243, 240, 232, 0.45);
  font-size: 9px;
  letter-spacing: 0.16em !important;
}

.wjt-work-sequence-copy h2 {
  margin: 0;
  color: inherit;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(43px, 5vw, 78px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.06em !important;
}

.wjt-work-sequence-copy article > p:last-child {
  max-width: 44ch;
  margin: 26px 0 0;
  color: rgba(243, 240, 232, 0.68);
  font-size: 14px;
  line-height: 1.9;
}

.wjt-work-sequence-slices {
  position: absolute;
  z-index: 3;
  inset: 0 0 0 51%;
  pointer-events: none;
}

.wjt-work-sequence-slices figure {
  position: absolute;
  right: 8%;
  width: clamp(110px, 13vw, 205px);
  aspect-ratio: 1.3 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.26;
  transform: scale(0.7);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.wjt-work-sequence-slices figure:nth-child(1) { top: 7%; }
.wjt-work-sequence-slices figure:nth-child(2) { top: 28%; }
.wjt-work-sequence-slices figure:nth-child(3) { top: 61%; }
.wjt-work-sequence-slices figure:nth-child(4) { top: 82%; }

.wjt-work-sequence-slices figure.is-active {
  z-index: 2;
  opacity: 0.9;
  transform: scale(1.12);
}

.wjt-work-sequence-slices img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wjt-work-sequence-progress {
  position: absolute;
  z-index: 5;
  right: 5.4%;
  bottom: 30px;
  margin: 0;
  color: rgba(243, 240, 232, 0.4);
  font-size: 10px;
  letter-spacing: 0.14em !important;
}

.wjt-work-sequence-progress span {
  color: #f3f0e8;
}

.wjt-work-sequence-steps {
  position: relative;
  z-index: 0;
}

.wjt-work-sequence-steps i {
  display: block;
  height: 100svh;
}

@media (max-width: 900px) {
  .wjt-page-axis {
    display: none;
  }

  .wjt-work-opening {
    min-height: 1260px;
  }

  .wjt-work-opening-copy {
    grid-column: 4 / 12;
  }

  .wjt-work-opening-image--left {
    grid-column: 1 / 7;
  }

  .wjt-work-opening-image--right {
    grid-column: 7 / 13;
  }

  .wjt-work-sequence-main {
    inset: 0 44% 0 0;
  }

  .wjt-work-sequence-copy {
    right: 4%;
    width: 36%;
  }

  .wjt-work-sequence-slices {
    inset-left: 56%;
  }

  .wjt-work-sequence-slices figure {
    right: 5%;
  }
}

@media (max-width: 680px) {
  .home-portfolio-page {
    --wjt-home-header: 82px;
  }

  .home-portfolio-page .site-header .nav-wrap {
    min-height: 82px;
  }

  .wjt-work-hero {
    min-height: 185svh;
  }

  .wjt-work-hero-sticky,
  .wjt-work-sequence-sticky {
    min-height: 520px;
  }

  .wjt-work-hero-label,
  .wjt-work-hero-count {
    top: 22px;
    font-size: 8px;
  }

  .wjt-work-hero-label {
    left: 22px;
  }

  .wjt-work-hero-count {
    right: 22px;
  }

  .wjt-work-hero-scroll {
    right: 22px;
    bottom: 18px;
    font-size: 7px;
  }

  .wjt-work-hero-frame {
    width: 54vw;
    height: 42vh;
    border-radius: 20px 0 20px 0;
  }

  .wjt-work-hero-frame img {
    object-position: 58% center;
  }

  .wjt-work-hero-copy {
    top: auto;
    right: 22px;
    bottom: 86px;
    left: 22px;
    width: auto;
    transform: translateY(28px);
  }

  .wjt-work-hero-copy h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .wjt-work-hero-copy > p:nth-of-type(2) {
    max-width: 34ch;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.75;
  }

  .wjt-work-hero-copy a {
    margin-top: 18px;
  }

  .wjt-work-opening {
    min-height: 1100px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto 210px 260px 260px;
    gap: 16px;
    padding: 82px 22px 100px;
  }

  .wjt-work-opening-copy {
    grid-column: 1 / 7;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .wjt-work-opening-copy > p:first-child {
    margin: 0;
  }

  .wjt-work-opening-copy h2 {
    font-size: 32px;
  }

  .wjt-work-opening-copy > p:last-child {
    grid-column: 1;
    font-size: 12px;
    line-height: 1.85;
  }

  .wjt-work-opening-image--left {
    grid-column: 1 / 5;
    grid-row: 2 / 4;
    height: 470px;
  }

  .wjt-work-opening-image--right {
    grid-column: 3 / 7;
    grid-row: 4;
    height: 250px;
  }

  .wjt-work-opening-word {
    right: -20px;
    bottom: 60px;
    font-size: 78px;
  }

  .wjt-work-sequence {
    min-height: 410svh;
  }

  .wjt-work-sequence-main {
    inset: 0 0 44% 0;
  }

  .wjt-work-sequence-main::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 45% 0 0;
    background: linear-gradient(transparent, var(--wjt-night));
  }

  .wjt-work-sequence-copy {
    top: auto;
    right: 22px;
    bottom: 58px;
    left: 22px;
    width: auto;
    height: 250px;
    transform: none;
  }

  .wjt-work-sequence-copy h2 {
    font-size: 37px;
  }

  .wjt-work-sequence-copy article > p:last-child {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.75;
  }

  .wjt-work-sequence-slices {
    z-index: 4;
    inset: 43% 0 auto 0;
    height: 82px;
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 0 20px;
  }

  .wjt-work-sequence-slices figure,
  .wjt-work-sequence-slices figure:nth-child(n) {
    position: relative;
    top: auto;
    right: auto;
    width: min(20vw, 76px);
    flex: 0 0 min(20vw, 76px);
    transform: scale(0.82);
  }

  .wjt-work-sequence-slices figure.is-active {
    transform: scale(1);
  }

  .wjt-work-sequence-progress {
    right: 22px;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wjt-work-hero-scroll span {
    animation: none;
  }

  [data-scroll-reveal],
  .wjt-work-opening-image img,
  .wjt-work-sequence-main figure,
  .wjt-work-sequence-copy article,
  .wjt-work-sequence-slices figure {
    transition: none;
  }

  [data-scroll-reveal] {
    opacity: 1;
    transform: none;
  }
}

.wjt-work-gallery {
  position: relative;
  padding: clamp(110px, 12vw, 190px) 6% clamp(120px, 13vw, 210px);
  overflow: hidden;
  background: #efede7;
}

.wjt-work-gallery-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(34px, 8vw, 130px);
  margin-bottom: clamp(90px, 11vw, 170px);
}

.wjt-work-gallery-head > p {
  margin: 9px 0 0;
  color: var(--wjt-muted);
  font-size: 9px;
  letter-spacing: 0.15em !important;
}

.wjt-work-gallery-head > div {
  max-width: 860px;
}

.wjt-work-gallery-head h2 {
  margin: 0;
  color: var(--wjt-ink);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(38px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em !important;
}

.wjt-work-gallery-head > div > p {
  max-width: 53ch;
  margin: 30px 0 0;
  color: #666761;
  font-size: 14px;
  line-height: 1.95;
}

.wjt-work-gallery-head button,
.wjt-work-gallery-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin: 30px 0 0;
  padding: 0 0 7px;
  color: var(--wjt-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.13em !important;
  text-decoration: none;
  cursor: pointer;
}

.wjt-work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 7vw, 110px) 24px;
  align-items: start;
}

.wjt-work-gallery-item {
  margin: 0;
}

.wjt-work-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.wjt-work-gallery-item.is-visible img {
  transform: scale(1);
}

.wjt-work-gallery-item--wide {
  grid-column: 1 / 9;
}

.wjt-work-gallery-item--wide img {
  aspect-ratio: 1.68 / 1;
}

.wjt-work-gallery-item--portrait {
  grid-column: 9 / 13;
  margin-top: 22vw;
}

.wjt-work-gallery-item--portrait img {
  aspect-ratio: 0.76 / 1;
}

.wjt-work-gallery-item--small {
  grid-column: 2 / 7;
}

.wjt-work-gallery-item--small img {
  aspect-ratio: 1.18 / 1;
}

.wjt-work-gallery-item--offset {
  grid-column: 8 / 13;
  margin-top: 12vw;
}

.wjt-work-gallery-item--offset img {
  aspect-ratio: 1 / 1.1;
}

.wjt-work-gallery-item--closing {
  grid-column: 4 / 11;
  margin-top: 5vw;
}

.wjt-work-gallery-item--closing img {
  aspect-ratio: 1.45 / 1;
}

.wjt-work-gallery-item figcaption {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--wjt-line);
}

.wjt-work-gallery-item figcaption span,
.wjt-work-gallery-item figcaption small {
  color: var(--wjt-muted);
  font-size: 8px;
  letter-spacing: 0.12em !important;
}

.wjt-work-gallery-item figcaption strong {
  color: var(--wjt-ink);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 19px;
  font-weight: 400;
}

.wjt-work-gallery-item figcaption small {
  text-transform: uppercase;
}

.wjt-work-gallery-link {
  margin: clamp(90px, 10vw, 150px) 0 0 auto;
}

.wjt-experience-controls {
  position: fixed;
  z-index: 88;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.wjt-experience-controls button {
  width: auto;
  min-width: 108px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(30, 31, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(22, 23, 21, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.wjt-experience-controls button:hover,
.wjt-experience-controls button:focus-visible {
  color: #fff;
  background: rgba(30, 31, 29, 0.94);
}

.wjt-experience-controls span,
.wjt-experience-controls strong {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em !important;
}

.wjt-experience-controls strong {
  color: #d1c08a;
}

.wjt-experience-controls [aria-pressed="true"] strong {
  color: #fff;
}

.wjt-designer-backdrop {
  position: fixed;
  z-index: 118;
  inset: 0;
  background: rgba(18, 19, 18, 0.5);
  opacity: 0;
  transition: opacity 280ms ease;
}

.wjt-designer-backdrop.is-open {
  opacity: 1;
}

.wjt-designer-desk {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  width: min(640px, 100vw);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(22px, 4vw, 46px) 0;
  color: var(--wjt-ink);
  background: #f3f1eb;
  box-shadow: -24px 0 60px rgba(17, 18, 17, 0.2);
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.wjt-designer-desk.is-open {
  transform: translateX(0);
}

.wjt-designer-desk-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 calc(clamp(22px, 4vw, 46px) * -1);
  padding: 30px clamp(22px, 4vw, 46px) 22px;
  background: rgba(243, 241, 235, 0.94);
  border-bottom: 1px solid var(--wjt-line);
  backdrop-filter: blur(16px);
}

.wjt-designer-desk-head p,
.wjt-designer-desk-head h2 {
  margin: 0;
}

.wjt-designer-desk-head p {
  color: var(--wjt-muted);
  font-size: 8px;
  letter-spacing: 0.14em !important;
}

.wjt-designer-desk-head h2 {
  margin-top: 8px;
  color: var(--wjt-ink);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 30px;
  font-weight: 400;
}

.wjt-designer-desk-head button,
.wjt-storyboard-preview-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wjt-designer-desk-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  color: #6b6b65;
  background: #e8e4d9;
  border-left: 2px solid #9f916b;
  font-size: 11px;
  line-height: 1.8;
}

.wjt-scene-library,
.wjt-storyboard {
  padding: 40px 0;
  border-bottom: 1px solid var(--wjt-line);
}

.wjt-desk-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 22px;
}

.wjt-desk-section-head h3,
.wjt-desk-section-head span {
  margin: 0;
}

.wjt-desk-section-head h3 {
  color: var(--wjt-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em !important;
}

.wjt-desk-section-head span {
  color: var(--wjt-muted);
  font-size: 9px;
  letter-spacing: 0.1em !important;
}

.wjt-scene-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wjt-scene-library-grid button {
  position: relative;
  width: 100%;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 0 10px;
  overflow: hidden;
  color: var(--wjt-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--wjt-line);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
}

.wjt-scene-library-grid button::after {
  content: "+";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(30, 31, 29, 0.76);
  border-radius: 50%;
  font-size: 15px;
}

.wjt-scene-library-grid button.is-selected::after {
  content: "✓";
  color: #252622;
  background: #d3c28d;
}

.wjt-scene-library-grid img {
  width: 100%;
  height: clamp(105px, 10vw, 142px);
  aspect-ratio: 1.25 / 1;
  display: block;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.wjt-scene-library-grid button:hover img,
.wjt-scene-library-grid button:focus-visible img,
.wjt-scene-library-grid button.is-selected img {
  opacity: 1;
}

.wjt-scene-library-grid button > span {
  display: grid;
  gap: 3px;
}

.wjt-scene-library-grid small {
  color: var(--wjt-muted);
  font-size: 8px;
}

.wjt-scene-library-grid strong {
  overflow: hidden;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wjt-storyboard-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wjt-storyboard-list li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  background: #e9e6de;
}

.wjt-storyboard-list img {
  width: 80px;
  height: 58px;
  display: block;
  object-fit: cover;
}

.wjt-storyboard-item-copy {
  min-width: 0;
}

.wjt-storyboard-item-copy span,
.wjt-storyboard-item-copy strong {
  display: block;
}

.wjt-storyboard-item-copy span {
  color: var(--wjt-muted);
  font-size: 8px;
  letter-spacing: 0.1em !important;
}

.wjt-storyboard-item-copy strong {
  margin-top: 4px;
  overflow: hidden;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wjt-storyboard-item-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--wjt-muted);
  font-size: 9px;
}

.wjt-storyboard-item-duration select {
  width: auto;
  min-width: 52px;
  margin: 0;
  padding: 4px 20px 4px 6px;
  color: var(--wjt-ink);
  background: #f7f5f0;
  border: 1px solid var(--wjt-line);
  border-radius: 0;
  font-size: 10px;
}

.wjt-storyboard-item-actions {
  display: grid;
  grid-template-columns: repeat(2, 28px);
  gap: 4px;
}

.wjt-storyboard-item-actions button {
  width: 28px;
  height: 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--wjt-ink);
  background: transparent;
  border: 1px solid var(--wjt-line);
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
}

.wjt-storyboard-item-actions button:last-child {
  grid-column: 1 / -1;
  width: 60px;
  border-radius: 999px;
  font-size: 9px;
}

.wjt-storyboard-item-actions button:disabled {
  opacity: 0.3;
  cursor: default;
}

.wjt-storyboard-empty {
  margin: 0;
  padding: 20px;
  color: var(--wjt-muted);
  border: 1px dashed var(--wjt-line);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.wjt-designer-desk-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 calc(clamp(22px, 4vw, 46px) * -1);
  padding: 18px clamp(22px, 4vw, 46px) max(18px, env(safe-area-inset-bottom));
  background: rgba(243, 241, 235, 0.96);
  border-top: 1px solid var(--wjt-line);
  backdrop-filter: blur(16px);
}

.wjt-designer-desk-actions button {
  width: 100%;
  margin: 0;
  padding: 12px 10px;
  color: #f6f3eb;
  background: var(--wjt-ink);
  border: 1px solid var(--wjt-ink);
  border-radius: 0;
  font-size: 10px;
  letter-spacing: 0.08em !important;
  cursor: pointer;
}

.wjt-designer-desk-actions button:nth-child(2),
.wjt-designer-desk-actions button:nth-child(3) {
  color: var(--wjt-ink);
  background: transparent;
}

.wjt-designer-desk-actions button:nth-child(3) {
  grid-column: 1 / -1;
}

.wjt-designer-desk-actions button:disabled {
  opacity: 0.34;
  cursor: default;
}

.wjt-storyboard-preview {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #111;
  border: 0;
}

.wjt-storyboard-preview::backdrop {
  background: #111;
}

.wjt-storyboard-preview-stage,
.wjt-storyboard-preview-stage > img,
.wjt-storyboard-preview-stage > span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wjt-storyboard-preview-stage > img {
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  animation: wjt-storyboard-drift 8s ease-out both;
}

@keyframes wjt-storyboard-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

.wjt-storyboard-preview-stage > span {
  background:
    linear-gradient(90deg, rgba(13, 14, 13, 0.74), rgba(13, 14, 13, 0.08) 64%),
    linear-gradient(180deg, transparent 55%, rgba(13, 14, 13, 0.5));
}

.wjt-storyboard-preview-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 7%;
  width: min(620px, 60vw);
  transform: translateY(-50%);
}

.wjt-storyboard-preview-copy p:first-child {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.14em !important;
}

.wjt-storyboard-preview-copy h2 {
  margin: 0;
  color: #fff;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: 0.08em !important;
}

.wjt-storyboard-preview-copy p:last-child {
  max-width: 46ch;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.9;
}

.wjt-storyboard-preview-count {
  position: absolute;
  z-index: 2;
  right: 30px;
  top: 30px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.12em !important;
}

.wjt-storyboard-preview-close {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
  color: #fff;
}

.wjt-storyboard-preview-controls {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  gap: 7px;
}

.wjt-storyboard-preview-controls button {
  width: auto;
  min-width: 78px;
  margin: 0;
  padding: 9px 13px;
  color: #fff;
  background: rgba(15, 16, 15, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-size: 9px;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.wjt-storyboard-preview-controls button:disabled {
  opacity: 0.34;
}

body.wjt-designer-open,
body.wjt-storyboard-preview-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .wjt-work-gallery {
    padding: 88px 22px 110px;
  }

  .wjt-work-gallery-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 82px;
  }

  .wjt-work-gallery-head h2 {
    font-size: 34px;
  }

  .wjt-work-gallery-head > div > p {
    margin-top: 22px;
    font-size: 12px;
  }

  .wjt-work-gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 70px 12px;
  }

  .wjt-work-gallery-item--wide,
  .wjt-work-gallery-item--closing {
    grid-column: 1 / 7;
  }

  .wjt-work-gallery-item--portrait {
    grid-column: 3 / 7;
    margin-top: 0;
  }

  .wjt-work-gallery-item--small {
    grid-column: 1 / 6;
  }

  .wjt-work-gallery-item--offset {
    grid-column: 2 / 7;
    margin-top: 0;
  }

  .wjt-work-gallery-item--closing {
    margin-top: 0;
  }

  .wjt-work-gallery-item figcaption {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .wjt-work-gallery-item figcaption small {
    grid-column: 2;
  }

  .wjt-work-gallery-link {
    margin-top: 76px;
  }

  .wjt-experience-controls {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    justify-content: flex-end;
  }

  .wjt-experience-controls button {
    min-width: 0;
    gap: 10px;
    padding: 9px 12px;
  }

  .wjt-designer-desk {
    width: 100vw;
  }

  .wjt-scene-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wjt-scene-library-grid img {
    height: clamp(112px, 32vw, 150px);
  }

  .wjt-storyboard-list li {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .wjt-storyboard-list img {
    width: 68px;
    height: 52px;
  }

  .wjt-storyboard-item-actions {
    grid-column: 2;
    display: flex;
  }

  .wjt-storyboard-item-actions button:last-child {
    width: 60px;
  }

  .wjt-storyboard-preview-copy {
    top: auto;
    right: 22px;
    bottom: 110px;
    left: 22px;
    width: auto;
    transform: none;
  }

  .wjt-storyboard-preview-copy h2 {
    font-size: 48px;
  }

  .wjt-storyboard-preview-copy p:last-child {
    font-size: 12px;
    line-height: 1.75;
  }

  .wjt-storyboard-preview-count {
    top: 34px;
    right: 22px;
  }

  .wjt-storyboard-preview-controls {
    right: 14px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 14px;
    justify-content: center;
  }

  .wjt-storyboard-preview-controls button {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wjt-designer-desk,
  .wjt-designer-backdrop,
  .wjt-work-gallery-item img,
  .wjt-scene-library-grid img {
    transition: none;
  }

  .wjt-storyboard-preview-stage > img {
    animation: none;
  }
}
