/* Standalone support; source.css retains the original Wix page design. */
:root {
  --wix-ads-height: 0px;
  --wix-ads-top-height: 0px;
  --sticky-offset: 0px;
}
html { scroll-behavior: smooth; }
body { background: #fff; }
.wixui-video-box video {
  display: block;
  opacity: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wixui-video-box [role="button"] { cursor: pointer; }
.wixui-video-box [role="button"]:focus-visible,
a:focus-visible {
  outline: 2px solid #0d5eba;
  outline-offset: 4px;
}
.wixui-video-box [data-testid="play-icon"] { display: none; }
.wixui-video-box[data-paused] [data-testid="play-icon"] { display: block; }
.wixui-video-box[data-paused] [data-testid="pause-icon"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Wix normally inserts header/footer wrappers at runtime. */
#masterPage.mesh-layout #SITE_HEADER { grid-area: 1 / 1 / 2 / 2; }
#masterPage.mesh-layout #PAGES_CONTAINER { grid-area: 2 / 1 / 3 / 2; }
#masterPage.mesh-layout #SITE_FOOTER { grid-area: 3 / 1 / 4 / 2; }

/* Keep the standalone page within its viewport. Wix normally clips these
   overflow layers at runtime; without this, scrolling exposes a blank canvas. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
#SITE_CONTAINER, #main_MF, body:not(.responsive) #site-root {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
#masterPage, #PAGES_CONTAINER, #SITE_PAGES {
  min-width: 0;
}
#Containerft44j [data-mesh-id="Containerft44jinlineContent-gridContainer"] > section {
  width: 100%;
  min-width: 0;
  margin-left: 0;
  left: 0;
}
/* The original 1713px footer rule extended beyond the window and created
   the blank horizontal scroll area. Center and constrain the actual rule. */
#SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > #comp-j8lcmr1n {
  width: min(1713px, 100%);
  margin-left: 0;
  left: 0;
  justify-self: center;
}

/* Preserve the wide-screen design while keeping its peripheral elements
   inside smaller windows. */
@media (max-width: 1439px) {
  #SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] {
    grid-template-columns: minmax(0, 1fr) 18px 18px;
    column-gap: 13px;
    padding: 0 24px;
    box-sizing: border-box;
  }
  #SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > [id] {
    left: 0;
    margin-left: 0;
    width: auto;
    max-width: 100%;
  }
  #SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > #comp-j8lcmr1n { grid-area: 1 / 1 / 2 / 4; width: 100%; }
  #SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > #comp-j8lb81gy { grid-area: 2 / 1 / 3 / 2; }
  #SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > #comp-lkim40zx { grid-area: 2 / 2 / 3 / 3; }
  #SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > #comp-lkim39q2 { grid-area: 2 / 3 / 3 / 4; }
}
/* Decorative layers also inherit Wix's 980px canvas minimum. */
#BACKGROUND_GROUP #pageBackground_ft44j {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
#SITE_HEADER .H2MmBb, #SITE_FOOTER ._c_gnD {
  width: min(980px, 100%);
  margin-left: max(0px, calc((100% - 980px) / 2));
}

/* Portfolio navigation and introduction follow dolce.html. */
.portfolio-header, .portfolio-header *, .portfolio-brief, .portfolio-brief * { box-sizing: border-box; }
.portfolio-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 30px 60px; background: #fff; line-height: 1.6; color: #1a1a1a; }
.portfolio-header a { text-decoration: none; color: inherit; }
.portfolio-header .logo { flex-shrink: 0; line-height: 0; }
.portfolio-header .logo img { height: 40px; width: 80px; }
.portfolio-header nav { display: flex; gap: 30px; align-items: center; }
.portfolio-header nav a { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400; color: #333; padding: 10px 20px; border-radius: 30px; transition: all 0.2s; white-space: nowrap; }
.portfolio-header nav a:hover, .portfolio-header nav a.active { background: #1a1a1a; color: #fff; }
.portfolio-header .lang-switch { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; line-height: normal; color: #333; padding: 8px 16px; border-radius: 20px; border: 1px solid #ddd; background: #fff; cursor: pointer; transition: all 0.2s; margin-left: 20px; white-space: nowrap; }
.portfolio-header .lang-switch:hover { border-color: #333; }
.portfolio-header .lang-switch:focus-visible { outline: 2px solid #0d5eba; outline-offset: 4px; }
#masterPage { padding-top: var(--portfolio-header-height, 104px); }
#comp-m5ozl8jc.portfolio-brief { min-width: 0; font-family: 'Space Mono', monospace; color: #1a1a1a; line-height: 1.6; }
.portfolio-brief .content { width: 100%; max-width: 1400px; margin: 0 auto; padding: 80px; }
.portfolio-brief .project-title { font-size: 56px; font-weight: 700; margin: 0 0 30px; line-height: 1.6; font-family: inherit; }
.portfolio-brief .brief-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 120px; margin-bottom: 40px; }
.portfolio-brief .brief-text { font-size: 18px; color: #666; line-height: 1.8; }
.portfolio-brief .brief-text p { margin: 0; }
.portfolio-brief .brief-text p + p { margin-top: 1em; }
.portfolio-brief .brief-meta { display: flex; flex-direction: column; gap: 20px; }
.portfolio-brief .meta-item { border-left: 3px solid #ff7f50; padding-left: 20px; }
.portfolio-brief .meta-label { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.portfolio-brief .meta-value { font-size: 14px; color: #333; }
body[data-lang="zh"] .portfolio-brief, body[data-lang="zh"] .wixui-rich-text .translation-zh { font-family: 'Noto Sans SC', sans-serif; }
@media (max-width: 1024px) {
  .portfolio-brief .brief-section { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 768px) {
  .portfolio-header { padding: 20px 25px; }
  .portfolio-header nav { gap: 15px; }
  .portfolio-header nav a { font-size: 13px; padding: 8px 14px; }
  .portfolio-brief .content { padding: 60px 25px; }
  .portfolio-brief .project-title { font-size: 36px; }
}
@media (max-width: 620px) {
  .portfolio-header { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .portfolio-header nav { width: 100%; justify-content: space-between; gap: 4px; }
  .portfolio-header nav a { padding: 8px 10px; }
  .portfolio-header .lang-switch { margin-left: 0; padding: 8px 12px; }
}

/* Keep both language versions in the DOM without changing the English spans. */
.translation-en[hidden], .translation-zh[hidden] { display: none !important; }

.portfolio-header { font-family: 'Space Mono', monospace; font-size: 16px; }
#comp-m5ozl8jc.portfolio-brief { font-size: 16px; }
#ft44j > .pTvOx2 { width: 100%; min-width: 0; max-width: 100%; margin-left: 0; }

/* The hero image keeps its original canvas after removing the overlay title. */
#comp-m5ozbl7m [data-mesh-id="comp-m5ozbl7minlineContent-gridContainer"] {
  min-height: 809px;
}
