#projects .stack {
  display: flex;
  flex-direction: column;
}

/* Keep interface copy substantial enough to remain clear on dark surfaces. */
.creator-home .about-summary,
.creator-home .service-list p,
.creator-home .project-card-copy p,
.creator-home .pdf-card-copy p,
.creator-home .brand-identity-copy,
.creator-home .credibility-proof-inner span {
  font-weight: 500;
}

.creator-home .creator-nav > div a,
.creator-home .stack-head,
.creator-home button,
.creator-home .case-evidence li {
  font-weight: 600;
}

/* V1.86 credibility layer: structural evidence rather than decorative UI. */
.credibility-proof-strip {
  color: #dce3e5;
  background: #08090d;
  border-block: 1px solid rgba(220, 227, 229, .14);
  padding: 0 3.2vw;
}

.credibility-proof-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credibility-proof-inner > div {
  min-width: 0;
  padding: 24px clamp(16px, 2vw, 34px);
  border-left: 1px solid rgba(220, 227, 229, .14);
}

.credibility-proof-inner > div:last-child {
  border-right: 1px solid rgba(220, 227, 229, .14);
}

.credibility-proof-inner strong,
.credibility-proof-inner span { display: block; }

.credibility-proof-inner strong {
  color: #d8f04e;
  font: 700 clamp(14px, 1.5vw, 21px)/1.1 "DM Mono", monospace;
  letter-spacing: -.03em;
}

.credibility-proof-inner span {
  margin-top: 8px;
  color: #9ba3aa;
  font: 500 clamp(10px, .9vw, 13px)/1.45 Manrope, Arial, sans-serif;
}

.case-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.case-evidence li {
  padding: 8px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .72;
  font: 600 9px/1.2 "DM Mono", monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .credibility-proof-strip { padding-inline: 1rem; }
  .credibility-proof-inner { grid-template-columns: 1fr 1fr; }
  .credibility-proof-inner > div { padding: 18px 12px; }
  .credibility-proof-inner > div:nth-child(odd) { border-left: 1px solid rgba(220, 227, 229, .14); }
  .credibility-proof-inner > div:nth-child(even) { border-right: 1px solid rgba(220, 227, 229, .14); }
  .credibility-proof-inner > div:nth-child(n+3) { border-top: 1px solid rgba(220, 227, 229, .14); }

  .creator-home .creator-nav > div a[href="#contact"] {
    display: inline-flex !important;
    padding: .75rem .25rem;
    font-size: 9px;
    white-space: nowrap;
  }

  .case-evidence { margin-top: 14px; }
  .case-evidence li { font-size: 8px; }
}

html[lang="zh-CN"] .creator-home .hero-stage h1,
html[lang="zh-CN"] .creator-home .creator-about h2,
html[lang="zh-CN"] .creator-home .creator-services > h2,
html[lang="zh-CN"] .creator-home .creator-projects > h2 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  padding-block: .08em;
  white-space: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html[lang="zh-CN"] .creator-home .hero-stage h1,
html[lang="zh-CN"] .creator-home .creator-about h2,
html[lang="zh-CN"] .creator-home .creator-projects > h2 {
  background: linear-gradient(180deg, #727985 0%, #c3d0da 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[lang="zh-CN"] .creator-home .hero-stage h1 {
  max-width: 94vw;
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 1.14;
  padding-block: .14em;
}

html[lang="zh-CN"] .creator-home .creator-about h2,
html[lang="zh-CN"] .creator-home .creator-services > h2,
html[lang="zh-CN"] .creator-home .creator-projects > h2 {
  font-size: clamp(52px, 10.2vw, 156px);
}

html[lang="zh-CN"] .creator-home .about-content {
  width: min(92vw, 980px);
  max-width: 980px;
}

html[lang="zh-CN"] .creator-home .about-statement {
  white-space: nowrap;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(20px, 2.25vw, 34px);
  line-height: 1.32;
  letter-spacing: -.04em;
  overflow: visible;
  padding-block: .03em;
}

html[lang="zh-CN"] .creator-home .about-statement br {
  display: none;
}

html[lang="zh-CN"] .creator-home .about-summary {
  max-width: min(88vw, 880px);
  margin-inline: auto;
}

html[lang="zh-CN"] .creator-home .service-list h3,
html[lang="zh-CN"] .creator-home .creator-nav,
html[lang="zh-CN"] .creator-home .creator-mark {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

html[lang="zh-CN"] .creator-home .service-list h3 {
  font-weight: 700;
  letter-spacing: -.015em;
}

/* Visual order only: the KOI card and its iframe remain in their original DOM position. */
#projects .koi-card {
  order: 1;
}

#projects .flaget-app-project-card {
  order: 2;
}

#projects .qlwalls-card {
  order: 3;
  box-sizing: border-box;
  padding-bottom: 28px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 48px;
  isolation: isolate;
}

#projects .pdf-portfolio-card {
  order: 4;
}

#projects .qlwalls-card .stack-images {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 35px;
}

#projects .qlwalls-card .stack-images img {
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 35px;
  object-position: center;
  background: #010b03;
  overflow: hidden;
}

#projects .qlwalls-card .stack-images img:first-child {
  object-fit: contain;
}

#projects .qlwalls-card .stack-images img:last-child {
  object-fit: cover;
}

#projects .koi-motion-frame--homepage-original-stage {
  position: relative;
  overflow: hidden;
  background: #000;
}

#projects .koi-motion-frame--homepage-original-stage > iframe {
  border: 0;
  background: #000;
}

#projects .koi-motion-preview .koi-motion-frame > video,
.creator-marquee .marquee-tile--koi-system-reveal-video > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
}

#projects .koi-motion-preview .koi-motion-frame > iframe {
  display: none !important;
}

/* Only the lightweight gradient KOI motion is retained in the homepage carousel. */
.creator-marquee .marquee-tile:has(iframe),
.creator-marquee .marquee-tile:has(video[src*="/original/koi/"]) { display: none; }
.creator-marquee .marquee-tile--koi-gradient-motion { display: block !important; background: #030305; }
.creator-marquee .marquee-tile--koi-gradient-motion .koi-motion-frame,
.creator-marquee .marquee-tile--koi-gradient-motion video { display: block; width: 100%; height: 100%; border: 0; background: #030305; }
/* Each KOI motion retains its own square stage: card height is the limiting size,
   while the stage stays centred and is never stretched to the card width. */
.creator-marquee .marquee-tile--koi-gradient-motion { display: grid !important; place-items: center; }
.creator-marquee .marquee-tile--koi-gradient-motion .koi-motion-frame--marquee-square {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.creator-marquee .marquee-tile--koi-gradient-motion .koi-motion-frame--marquee-square video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.creator-marquee .marquee-tile[data-marquee-motion-poster="true"] .marquee-motion-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #030305;
}
.creator-marquee .marquee-tile--flaget img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Flaget App mirrors the KOI card structure, rhythm and split-preview ratio. */
.creator-home #projects .stack-card.flaget-app-project-card {
  --card-accent: #daeb6a;
  color: #001b3b !important;
  background: linear-gradient(135deg, #ffea39 0%, #daeb6a 52%, #b8e84b 100%) !important;
}
.creator-home #projects .flaget-app-project-card .stack-head,
.creator-home #projects .flaget-app-project-card .project-card-copy,
.creator-home #projects .flaget-app-project-card .project-card-copy p,
.creator-home #projects .flaget-app-project-card .live {
  color: #001b3b !important;
  border-color: #001b3b;
}
.creator-home .flaget-app-logo-plate { width: min(82%, 440px); height: 96px; display: flex; align-items: center; justify-content: center; align-self: center; margin-inline: auto; overflow: visible; background: transparent; }
.creator-home .flaget-app-title-logo { display: block; width: 100%; max-height: 76px; object-fit: contain; object-position: left center; }
.creator-home .flaget-app-preview-panel { position: relative; place-items: center; display: grid; overflow: hidden; border-radius: 35px; background: #07131c; }
.creator-home .flaget-app-preview-panel > span { z-index: 1; position: absolute; top: 18px; left: 20px; padding: 7px 9px; border-radius: 999px; color: #ecf8ff; background: rgba(7,19,28,.78); backdrop-filter: blur(8px); font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.creator-home .flaget-app-preview-panel > img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.creator-home .flaget-app-preview-panel--strategy > img { object-position: center; }
.creator-home .flaget-app-preview-panel--interface > img { object-position: center; }
@media (max-width: 700px) {
  .creator-home .flaget-app-logo-plate { width: min(82vw, 400px); height: 88px; margin-inline: auto; margin-bottom: 20px; border-radius: 0; }
  .creator-home .flaget-app-preview-panel { border-radius: 22px; }
  .creator-home .flaget-app-preview-panel > span { top: 13px; left: 14px; font-size: 8px; }
}
.creator-marquee .marquee-tile--koi-construction img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.creator-marquee .marquee-tile--qlwalls-title img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.creator-marquee .marquee-tile--paige-applications img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.creator-marquee .marquee-tile--he-xiangjian-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.creator-marquee .marquee-tile--flaget-h5-map img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Homepage project covers always crop to the card rather than letterbox. */
.creator-marquee .marquee-tile { overflow: hidden; border-radius: 24px; }
.creator-marquee .marquee-tile > img { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center; }
/* One duplicate run is enough for an exact, natural loop. The distance is
   measured from the first original tile to its first repeat at runtime. */
.creator-marquee .row-one[data-seamless-loop="true"] { animation: marquee-loop-right 34s linear infinite; }
.creator-marquee .row-two[data-seamless-loop="true"] { animation: marquee-loop-left 38s linear infinite; }
@keyframes marquee-loop-right {
  from { transform: translate3d(var(--marquee-loop-distance), 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes marquee-loop-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-loop-distance), 0, 0); }
}
.brand-identity-board { overflow: hidden; background: #0b1537; }
.brand-identity-board img { object-fit: cover; object-position: center; }

@media (min-width: 769px) {
  /* Keep the desktop navigation deliberately contained instead of spanning
     ultra-wide displays. */
  .creator-home .creator-nav {
    left: 50%;
    right: auto;
    width: min(1600px, calc(100% - 48px));
    transform: translateX(-50%);
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  /* Keep the fixed mobile header inside the viewport. The full desktop nav
     was clipping under the language control and blocking the first screen. */
  .creator-home .creator-nav {
    width: calc(100% - 24px);
    gap: 10px;
    padding-inline: 12px;
  }

  /* Keep the language switch anchored to the header's upper-right corner,
     below the safe-area/status region. It no longer floats over the nav copy. */
  .portfolio-language-toggle {
    /* The control sits just below the fixed navigation instead of obscuring
       the PROJECTS link inside the bar. */
    top: 4.5rem;
    right: 18px;
  }

  .creator-home .creator-nav > div {
    display: flex;
    min-width: 0;
    gap: 10px;
  }

  .creator-home .creator-nav > div a:not([href="#projects"]) {
    display: none;
  }

  .creator-home .creator-nav > div a {
    font-size: 9px;
    white-space: nowrap;
  }

  #projects .qlwalls-card {
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-radius: 30px;
  }

  #projects .qlwalls-card .stack-images {
    gap: 8px;
    border-radius: 22px;
  }

  #projects .qlwalls-card .stack-images img {
    border-radius: 22px;
  }
}

/* Mobile-only layout contract: desktop remains unchanged.  This layer keeps
   all content in a single readable column and makes controls touch-safe. */
@media (max-width: 768px) {
  .creator-home .creator-nav {
    left: .75rem;
    right: .75rem;
    width: auto;
    min-height: 3.25rem;
  }

  .creator-home .creator-nav > div a:not([href="#projects"]) { display: none; }
  .creator-home .creator-nav > div a[href="#projects"] { padding: .75rem .25rem; }

  /* Keep the hero wordmark behind the portrait at neck level, while fitting
     the entire phrase inside a narrow phone viewport. */
  .creator-home .hero-stage h1,
  html[lang="zh-CN"] .creator-home .hero-stage h1,
  html:not([lang="zh-CN"]) .creator-home .hero-stage h1 {
    top: 26.25rem;
    font-size: min(14vw, 3.5rem);
    letter-spacing: -.07em;
    overflow: visible;
  }

  .creator-home .hero-bottom .contact-button,
  .creator-home button,
  .creator-home a.contact-button,
  .portfolio-language-toggle button {
    min-height: 2.75rem;
  }

  .creator-home img,
  .creator-home video,
  .creator-home iframe,
  .creator-home canvas {
    max-width: 100%;
  }

  .creator-home .creator-about,
  .creator-home .creator-services,
  .creator-home .creator-projects,
  .creator-home .creator-footer,
  .creator-home .about-content,
  .creator-home .service-list,
  .creator-home .project-stack,
  .creator-home .brand-identity-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* About: decoration remains atmospheric but yields clear space to copy,
     capability tags, and the primary action. */
  .creator-home .creator-about { padding-inline: 1.25rem; }
  .creator-home .about-content { position: relative; z-index: 2; gap: 1.75rem; }
  .creator-home .creator-about .float-art { z-index: 0; opacity: .34; }
  .creator-home .creator-about .art-1 { width: 7rem; top: 2rem; left: -2.5rem; }
  .creator-home .creator-about .art-2 { width: 7.5rem; top: 3rem; right: -3rem; bottom: auto; }
  .creator-home .creator-about .art-3,
  .creator-home .creator-about .art-4 { display: none; }
}

/* Compact services rhythm for phone and iPad portrait: content stays legible
   without inheriting desktop-scale empty bands. */
@media (max-width: 1024px) {
  .creator-home .creator-services { padding: 3.5rem 1.25rem 4.25rem; }
  .creator-home .creator-services > h2 { margin-bottom: 2.75rem; }
  .creator-home .service-list article {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: .9rem;
    padding-block: 1.35rem;
  }
  .creator-home .service-list b { font-size: clamp(3.25rem, 9vw, 4.5rem); }
  .creator-home .service-list h3 { margin-bottom: .45rem; font-size: clamp(1.05rem, 3.4vw, 1.5rem); line-height: 1.08; }
  .creator-home .service-list p { font-size: clamp(.9rem, 2.6vw, 1.05rem); line-height: 1.42; }
}

/* The hand-off from selected work to contact should feel deliberate, not like
   an empty screen. Tighten only this transition; the footer hierarchy stays. */
.creator-home .creator-projects { padding-bottom: 4.5rem; }
.creator-home .creator-footer { padding-top: 4.5rem; }

/* Responsive contract: three deliberate layouts only.
   Desktop: 1025px and up (base styles).
   iPad: 768px–1024px.
   Phone: 767px and below. */
@media (min-width: 768px) and (max-width: 1024px) {
  .creator-home .creator-hero {
    height: 100svh;
    min-height: 720px;
  }

  .creator-home .creator-nav {
    height: 78px;
    padding-inline: 4vw;
    font-size: 12px;
  }

  .creator-home .creator-nav > div { gap: clamp(18px, 3vw, 34px); }

  .creator-home .hero-stage {
    height: calc(100% - 78px);
    padding: 1.5vh 4vw 30px;
  }

  .creator-home .hero-stage h1 { font-size: clamp(88px, 14.5vw, 148px); }

  .creator-home .hero-stage > img {
    width: min(58vw, 560px);
    height: min(61svh, 620px);
    top: 42%;
  }
}

@media (max-width: 767px) {
  .creator-home .creator-hero {
    height: 100svh;
    min-height: 640px;
  }

  .creator-home .creator-nav {
    height: 70px;
    padding-block: 20px;
  }

  .creator-home .hero-stage {
    height: calc(100% - 70px);
    min-height: 0;
    padding: 5vh 6vw 30px;
  }

  .creator-home .hero-stage h1 {
    /* Restore the V1.75 mobile proportion. This small offset places the
       wordmark just below the portrait edge instead of cutting across it. */
    line-height: 1.14;
    padding-top: 0;
    max-width: 100%;
    letter-spacing: -.035em;
    position: relative;
    /* The oversized wordmark belongs behind the portrait, with its baseline
       emerging directly from the lower edge instead of being covered by it. */
    top: 12px;
  }

  html[lang="zh-CN"] .creator-home .hero-stage h1 {
    font-size: clamp(48px, 8.5vw, 132px);
  }

  html:not([lang="zh-CN"]) .creator-home .hero-stage h1 {
    /* Restore the edge-to-edge, oversized homepage wordmark on phones. */
    font-size: clamp(58px, 16vw, 64px);
    width: 100vw;
    max-width: none;
    margin-left: -6vw;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -.075em;
    transform: translateY(50px);
    transform-origin: left center;
  }

  .creator-home .hero-stage > img {
    width: 85vw;
    height: 55svh;
    top: 32%;
  }

  /* Keep the portrait's current top position. The role statement starts at
     the portrait edge, rather than floating in a separate band below it. */
  .creator-home .hero-value-line { bottom: 255px; }

  .creator-home .hero-bottom {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transform: translateY(-132px);
  }

  .creator-home .hero-bottom p {
    max-width: min(82vw, 320px);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .creator-home .hero-bottom .contact-button {
    align-self: center;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 11px;
    position: static !important;
    left: auto;
    transform: none;
  }

  /* Never hide copy to force a phone layout. Long Chinese and English labels
     wrap inside the available column instead of overflowing or clipping. */
  html[lang="zh-CN"] .creator-home .about-statement {
    width: min(92vw, 420px);
    white-space: normal;
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .creator-home .creator-about h2,
  .creator-home .creator-services > h2,
  .creator-home .creator-projects > h2 {
    max-width: 92vw;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .creator-home .stack-head h3,
  .creator-home .stack-head span,
  .creator-home .stack-head .live {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* Two deliberately sized cards are visible across a standard phone width.
     The media inside follows the card, rather than retaining desktop widths. */
  .creator-home .creator-marquee {
    padding: 44px 0 28px;
  }

  .creator-home .creator-marquee .marquee-row {
    gap: 12px;
  }

  .creator-home .creator-marquee .marquee-tile {
    flex: 0 0 min(64vw, 420px);
    width: min(64vw, 420px) !important;
    height: min(41vw, 270px);
    min-width: 0;
  }

  .creator-home .creator-marquee .marquee-tile > img,
  .creator-home .creator-marquee .marquee-tile > video,
  .creator-home .creator-marquee .marquee-tile .koi-motion-frame,
  .creator-home .creator-marquee .marquee-tile .marquee-motion-poster {
    width: 100% !important;
    height: 100% !important;
  }

  .creator-home .creator-marquee .marquee-tile > img,
  .creator-home .creator-marquee .marquee-tile > video {
    object-fit: cover;
  }

  /* Let project cards use the phone width as their canvas. The prior desktop
     side padding and stacked scale made the work look unnecessarily small. */
  .creator-home .creator-projects {
    padding-inline: 10px;
  }

  .creator-home .stack-card {
    width: 100%;
    min-height: 0;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 26px;
    transform: none !important;
  }

  .creator-home .stack-images {
    grid-template-columns: 1fr;
    height: min(64vw, 260px);
    gap: 0;
  }

  .creator-home .stack-images img {
    width: 100%;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 22px;
  }

  /* Phone = one legible primary visual. The second (right-side) visual
     remains available in the iPad and desktop two-image layout. */
  .creator-home .stack-images img:not(:first-child) { display: none; }

  #projects .qlwalls-card .stack-images {
    grid-template-columns: 1fr;
    height: min(64vw, 260px);
    gap: 0;
  }

  #projects .qlwalls-card .stack-images img {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .creator-home .stack-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .creator-home .stack-head .live {
    grid-area: 1 / 3 / span 2;
    align-self: start;
    justify-self: end;
    padding: 8px 11px;
    font-size: 9px;
    white-space: nowrap;
  }

  /* Compact vertical rhythm: mobile sections should read as complete screens,
     not as desktop sections with large empty bands between descriptions. */
  .creator-home .creator-about {
    min-height: auto;
    padding: 68px 20px;
  }

  .creator-home .about-content { gap: 22px; }

  .creator-home .creator-services,
  .creator-home .creator-projects {
    padding-top: 64px;
    padding-bottom: 76px;
  }

  .creator-home .creator-services > h2,
  .creator-home .creator-projects > h2 { margin-bottom: 38px; }

  .creator-home .service-list article { padding-block: 22px; }
}

/* Brand studies: one quiet gallery frame, two distinct identity worlds. */
#projects .brand-identity-card {
  color: #edf3ff !important;
  background: #111622 !important;
  overflow: hidden;
  isolation: isolate;
}

#projects .brand-identity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 88% 0%, rgba(65, 118, 255, .24), transparent 35%), linear-gradient(115deg, rgba(28, 56, 137, .18), transparent 48%);
}

.brand-identity-card > * { position: relative; }

.brand-identity-head { grid-template-columns: 60px 1fr auto; }
.brand-identity-head .brand-identity-label { grid-column: 2; grid-row: 1; }
.brand-identity-head .brand-identity-kicker { grid-column: 2; grid-row: 2; color: #a9c0ff; letter-spacing: .12em; font: 10px DM Mono, monospace; }
.brand-identity-view-all { grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end; border-color: #7e8dff; text-decoration: none; }
.brand-identity-view-all:focus-visible { outline: 2px solid #f6ec64; outline-offset: 3px; }

.brand-identity-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin: 42px 0 28px;
}

.brand-identity-title { margin: 0; font-size: clamp(34px, 5.1vw, 72px); line-height: .86; letter-spacing: -.07em; }
.brand-identity-type { color: #a9c0ff; margin: 14px 0 0; font: 10px DM Mono, monospace; letter-spacing: .1em; text-transform: uppercase; }
.brand-identity-copy { max-width: 510px; margin: 0; font-size: 15px; line-height: 1.65; color: #c8d2e3; }

.brand-identity-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.brand-identity-tabs button {
  appearance: none;
  color: #b9c7dc;
  border: 1px solid rgba(208, 223, 247, .24);
  border-radius: 999px;
  background: rgba(7, 11, 20, .5);
  padding: 10px 16px;
  font: 500 11px DM Mono, monospace;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}
.brand-identity-tabs button:hover { color: #fff; border-color: rgba(255,255,255,.72); transform: translateY(-2px); }
.brand-identity-tabs button.is-active { color: #07111f; border-color: #eef6ff; background: #eef6ff; }
.brand-identity-tabs button:focus-visible { outline: 2px solid #f6ec64; outline-offset: 3px; }

.brand-identity-board {
  height: 650px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(225, 236, 255, .14);
  border-radius: 34px;
  background: #0a0d13;
}
.brand-identity-board::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; pointer-events: none; background: linear-gradient(transparent, rgba(7, 11, 20, .72)); }
.brand-identity-board img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0; display: block; animation: brand-board-in .42s cubic-bezier(.2,.8,.2,1); }
.brand-identity-board span { position: absolute; z-index: 1; right: 18px; bottom: 16px; color: #f2f6ff; letter-spacing: .12em; font: 9px DM Mono, monospace; }

.brand-identity-card[data-active-project="paige"] .brand-identity-board { background: #164bf2; }
.brand-identity-card[data-active-project="flaget"] .brand-identity-board { background: #ffe970; }
.brand-identity-card[data-active-project="heXiangjian"] .brand-identity-board { background: #05070b; }
.brand-identity-card[data-active-project="flagetH5"] .brand-identity-board { background: #0c83f2; }
.brand-identity-card[data-active-project="koiK1"] .brand-identity-board { background: #08090c; }

/* Keep Flaget flush with the board: no artificial inset or pale frame. */
.brand-identity-card[data-active-project="flaget"] .brand-identity-board img {
  width: 100%;
  margin-left: 0;
  object-position: center;
  transform: none;
}
@keyframes brand-board-in { from { opacity: .15; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

html[lang="zh-CN"] .brand-identity-title,
html[lang="zh-CN"] .brand-identity-copy,
html[lang="zh-CN"] .brand-identity-tabs button { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }

@media (max-width: 700px) {
  .brand-identity-head { grid-template-columns: 40px 1fr; }
  .brand-identity-head .brand-identity-kicker { grid-column: 2; font-size: 8px; }
  .brand-identity-view-all { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .brand-identity-intro { display: block; margin: 30px 0 22px; }
  .brand-identity-title { font-size: clamp(36px, 11vw, 54px); }
  .brand-identity-type { margin: 11px 0 20px; font-size: 8px; }
  .brand-identity-copy { font-size: 13px; }
  .brand-identity-tabs { gap: 6px; margin-bottom: 12px; }
  .brand-identity-tabs button { padding: 9px 12px; font-size: 9px; }
  .brand-identity-board { height: 440px; border-radius: 22px; }
  .brand-identity-card[data-active-project="flaget"] .brand-identity-board img { width: 100%; margin-left: 0; transform: none; }
  .brand-identity-board span { right: 12px; bottom: 11px; font-size: 8px; }
}

/* Strict three-mode responsive contract
   Phone: 0–767px · iPad: 768–1024px · Desktop: 1025px+
   The phone hero uses explicit anchors, so its vertical rhythm no longer
   drifts with viewport height or passes through intermediate layouts. */
@media (max-width: 767px) {
  .creator-home .creator-hero {
    height: 870px;
    min-height: 870px;
  }

  .creator-home .hero-stage {
    display: contents;
    padding: 0;
  }

  .creator-home .hero-stage > img {
    width: 492px;
    max-width: calc(100vw - 24px);
    height: auto;
    aspect-ratio: 1090 / 1208;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    transition: none;
  }

  .creator-home .hero-stage > img:hover {
    transform: translateX(-50%);
  }

  .creator-home .hero-stage h1,
  html[lang="zh-CN"] .creator-home .hero-stage h1,
  html:not([lang="zh-CN"]) .creator-home .hero-stage h1 {
    position: absolute;
    top: 480px;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: clamp(64px, 18vw, 112px);
    line-height: .98;
    letter-spacing: -.075em;
    white-space: nowrap;
    text-align: center;
    transform: none;
    z-index: 1;
  }

  .creator-home .hero-value-line {
    top: 630px;
    bottom: auto;
    left: 50%;
    width: calc(100% - 20px);
    transform: translateX(-50%);
    font-size: clamp(20px, 3.7vw, 24px);
    line-height: 1.05;
  }

  .creator-home .hero-bottom {
    position: absolute;
    top: 740px;
    bottom: auto;
    left: 50%;
    width: calc(100% - 40px);
    gap: 10px;
    transform: translateX(-50%);
  }

  .creator-home .hero-bottom p {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.4;
  }

  .creator-home .hero-bottom .contact-button {
    min-width: 132px;
    min-height: 44px;
  }

  /* Mobile project-card information system. KOI is the baseline: the number
     and metadata share one clear header row; title and description then use
     the full card width in a vertical reading order. */
  .creator-home .stack-head,
  .creator-home .brand-identity-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-auto-rows: auto;
    column-gap: 16px;
    row-gap: 5px;
    align-items: start;
    min-height: 54px;
  }

  .creator-home .stack-head > b {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 42px;
    line-height: .86;
  }

  .creator-home .stack-head > span:not(.live),
  .creator-home .stack-head .brand-identity-label,
  .creator-home .stack-head .brand-identity-kicker {
    grid-column: 2;
    width: 100%;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .08em;
    overflow-wrap: normal;
  }

  .creator-home .stack-head .live,
  .creator-home .brand-identity-view-all {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: end;
    white-space: nowrap;
    font-size: 9px;
  }

  .creator-home .project-card-copy,
  .creator-home .qlwalls-card-copy,
  .creator-home .koi-card-copy,
  .creator-home .pdf-card-copy,
  .creator-home .brand-identity-intro {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin: 24px 0 20px;
  }

  .creator-home .project-card-copy > *,
  .creator-home .pdf-card-copy > *,
  .creator-home .brand-identity-intro > * {
    width: 100%;
    max-width: none;
  }

  .creator-home .project-card-copy p,
  .creator-home .qlwalls-card-copy p,
  .creator-home .koi-card-copy p,
  .creator-home .pdf-card-copy p,
  .creator-home .brand-identity-copy {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .creator-home .qlwalls-title-logo,
  .creator-home .koi-title-logo {
    width: min(68vw, 360px);
    max-height: 76px;
    object-fit: contain;
    object-position: left center;
  }

  /* QLwalls uses a taller source lockup than KOI. Give it a dedicated
     100px title slot so its perceived logo weight matches the KOI card. */
  .creator-home .qlwalls-title-logo {
    width: min(80vw, 360px);
    height: 100px;
    max-height: none;
  }

  .creator-home .pdf-card-copy h3,
  .creator-home .brand-identity-title {
    margin: 0;
    font-size: clamp(42px, 9vw, 58px);
    line-height: .9;
  }

  .creator-home .koi-split-preview {
    grid-template-columns: 1fr;
    height: 260px;
  }

  .creator-home .koi-split-preview > :not(:first-child) {
    display: none;
  }

  .creator-home .stack-card {
    min-height: 570px;
  }

  .creator-home .stack-images,
  #projects .qlwalls-card .stack-images {
    height: 260px;
    margin-top: 0;
  }

  .creator-home .pdf-card-cover {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  .creator-home .pdf-card-copy h3 {
    font-size: 50px;
    line-height: .88;
  }

  .creator-home .brand-identity-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .creator-home .brand-identity-tabs::-webkit-scrollbar { display: none; }

  .creator-home .brand-identity-board {
    height: 220px;
  }
}

/* V1.83 mobile verification fixes
   - Keep the hero wordmark centred behind the portrait (the portrait remains
     the foreground layer), with a phone-safe size that cannot be clipped.
   - Make the project-03 PDF viewer a true viewport canvas on phones instead
     of relying on the browser's iframe default dimensions.
   Desktop rules above remain unchanged. */
@media (max-width: 767px) {
  /* Mobile vertical rhythm: every hand-off between complete modules uses
     a single 64px token. Desktop rules remain untouched. */
  .creator-home .creator-hero {
    height: 690px;
    min-height: 690px;
  }

  .creator-home .creator-marquee {
    /* The hero already supplies its 32px mobile exit gap. */
    padding-top: 0;
    padding-bottom: 0;
  }

  .creator-home .creator-about {
    padding-top: 64px;
    padding-bottom: 0;
  }

  .creator-home .creator-services,
  .creator-home .creator-projects {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .creator-home .creator-footer {
    padding-top: 64px;
  }

  .creator-home .portfolio-language-toggle {
    top: 50% !important;
    right: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .creator-home .stack-card {
    position: relative;
    top: auto;
    margin-bottom: 64px;
  }

  .creator-home .stack-card:last-child {
    margin-bottom: 0;
  }

  .creator-home .creator-hero {
    /* The button starts at 630px on phones. Keep the hero tall enough to
       contain the complete copy-and-button group instead of clipping it. */
    height: 728px;
    min-height: 728px;
  }

  .creator-home .hero-stage h1,
  html[lang="zh-CN"] .creator-home .hero-stage h1,
  html:not([lang="zh-CN"]) .creator-home .hero-stage h1 {
    /* Anchor the wordmark by its centre, not its top edge, so it stays
       behind the portrait's neck/torso rather than dropping below it. */
    top: 38%;
    left: 50%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: clamp(3.35rem, 15vw, 5rem);
    line-height: .94;
    letter-spacing: -.065em;
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 1;
    overflow: visible;
  }

  .creator-home .hero-stage > img {
    z-index: 2;
  }

  .creator-home .hero-stage > img.hero-portrait {
    width: 78vw;
    height: 48vh;
    top: 110px;
    /* Match desktop: portrait sits in front of both display text layers. */
    z-index: 3;
  }

  .creator-home .hero-value-line {
    z-index: 1;
  }

  .creator-home .hero-bottom {
    /* This group is positioned below the portrait and remains actionable. */
    z-index: 4;
  }

  .creator-home .hero-value-line {
    /* Keep the copy directly below the visible portrait; no intermediary
       phone-only dead zone. */
    top: 515px;
  }

  .creator-home .hero-bottom {
    top: 606px;
  }

  .original-preview.pdf-project-preview {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .original-preview.pdf-project-preview > iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100svh;
    border: 0;
    background: #2b2b2b;
  }

  .pdf-project-preview .project-return {
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    z-index: 10;
  }

  .pdf-project-preview .project-return-button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: clamp(10px, 2.8vw, 12px);
  }

  /* The QLwalls SVG uses a 768 × 350 artboard while its visible lockup
     occupies only the upper part. Crop that empty lower canvas on phones so
     its perceived size follows the KOI logo rather than its file bounds. */
  .creator-home .qlwalls-logo-crop {
    width: min(86vw, 360px);
    height: 84px;
    overflow: hidden;
  }

  .creator-home .qlwalls-logo-crop .qlwalls-title-logo {
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    transform: scale(1.38);
    transform-origin: left top;
  }

  /* The fourth card inherits desktop sticky stacking. On touch screens that
     can pin the active tab too close to the viewport edge. Keep it in normal
     flow and show the complete selected board rather than cropping its top. */
  .creator-home .brand-identity-card {
    position: relative;
    top: auto;
    overflow: visible;
  }

  .creator-home .brand-identity-tabs {
    padding-top: 8px;
    overflow-x: auto;
    overflow-y: visible;
  }

  .creator-home .brand-identity-board {
    height: min(68vw, 270px);
  }

  .creator-home .brand-identity-board img {
    object-fit: contain;
    object-position: center top;
  }

  /* One mobile-only module rhythm. This is deliberately applied to every
     home-page hand-off: carousel, about, services, projects, card stack and
     footer. It does not alter the desktop composition. */
  .creator-home .creator-about,
  .creator-home .creator-services,
  .creator-home .creator-projects,
  .creator-home .creator-footer {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .creator-home .creator-projects {
    margin-top: 0;
  }

  /* Every homepage module boundary uses the same 64px mobile token. */
  .creator-home .creator-hero,
  .creator-home .creator-marquee,
  .creator-home .creator-about,
  .creator-home .creator-services,
  .creator-home .creator-projects {
    margin-bottom: 0;
  }

  .creator-home .creator-footer {
    margin-bottom: 0;
  }

  /* Keep one 64px token at each boundary; remove duplicate padding/margins
     that previously expanded the visual gap to 128–200px. */
  .creator-home .creator-marquee {
    /* Hero already ends 32px after its CTA; do not add a second gap. */
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Keep exactly one 64px separator between lower modules. */
  .creator-home .creator-marquee,
  .creator-home .creator-services,
  .creator-home .creator-projects {
    margin-bottom: 0;
  }

  /* About keeps the Services section's 64px top padding as the sole
     separator; removing its second outer margin prevents a 128px gap. */
  .creator-home .creator-about {
    margin-bottom: 64px;
    overflow: visible;
  }

  /* Hero CTA → carousel is already calibrated by the carousel's top padding. */
  .creator-home .creator-hero {
    margin-bottom: 0;
  }

  .creator-home .creator-about,
  .creator-home .creator-services,
  .creator-home .creator-projects {
    padding-bottom: 0;
  }

  /* The final Contact Me action gets its own 100px breathing room. */
  .creator-home .creator-footer {
    padding-top: 64px;
    padding-bottom: 100px;
  }

  /* Services mobile rhythm from the approved reference: 44px between the
     section title and first item, 44px between items, and 16px at the end. */
  .creator-home .creator-services {
    padding-top: 44px;
  }

  .creator-home .creator-services > h2 {
    margin-bottom: 24px;
  }

  .creator-home .creator-services .service-list article {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .creator-home .creator-services .service-list article:last-child {
    padding-bottom: 16px;
  }

  /* Project-card descriptions are intentionally omitted on phones to keep
     the card readable at one glance; desktop keeps the full copy. */
  .creator-home .creator-projects .project-card-copy > p,
  .creator-home .creator-projects .qlwalls-card-copy > p,
  .creator-home .creator-projects .pdf-card-copy > p {
    display: none;
  }

  /* Keep the fourth brand card compact on phones by hiding its long
     descriptive paragraph; desktop retains the full copy. */
  .creator-home .creator-projects .brand-identity-copy {
    display: none;
  }

  .creator-home .creator-projects .brand-identity-intro {
    display: none;
  }

  .creator-home .project-stack,
  .creator-home .creator-projects .stack {
    display: block;
  }

  .creator-home .creator-projects .stack-card,
  .creator-home .creator-projects .stack-card:last-child {
    position: sticky;
    top: 75px;
    margin-bottom: 24px;
    min-height: 0;
  }

  /* QLwalls previously carried a desktop-specific 28px trailing buffer.
     Remove it on phones so the flex-stack's 64px gap is the only spacing. */
  #projects .qlwalls-card {
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
}
