/* Portfolio: the source screenshots remain unchanged inside an editorial presentation. */
.projects{position:relative;height:max(calc(100svh - var(--header-height)),600px);background:#fff;color:#10151e}
.projects-inner{width:calc(100% - var(--edge) - var(--edge));max-width:1600px;height:100%;margin:0 auto;display:grid;grid-template-rows:24% minmax(0,1fr) 16%}
.projects-intro{display:flex;align-items:center;justify-content:space-between;gap:48px}
.projects-intro .eyebrow{margin-bottom:14px}
.projects-intro h2{font-size:clamp(44px,5vw,76px);font-weight:400;line-height:1.15;letter-spacing:-.035em}
.projects-intro-aside{min-width:290px;padding-top:20px;color:#626b77;font-size:14px;line-height:1.6}
.projects-all{display:inline-block;margin-top:18px;padding:0 0 7px;border-bottom:1px solid #1554e7;color:#113d9a;font-size:15px;white-space:nowrap}
.projects-all span{display:inline-block;margin-left:10px;transition:transform .3s ease}
.projects-all:hover span,.projects-all:focus-visible span{transform:translate(3px,-3px)}
.project-grid{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:clamp(16px,1.6vw,28px);min-height:0}
.project-card{min-width:0}
.project-link{display:block;color:inherit}
.case-scene{position:relative;display:block;aspect-ratio:1.65;max-height:min(42vh,440px);overflow:hidden;transform-origin:center center}
.case-scene::before,.case-scene::after{position:absolute;content:'';pointer-events:none}
.case-scene::before{inset:0}
.case-scene::after{right:0;bottom:0;left:0;height:14%;background:rgba(38,29,22,.08)}
.case-scene--timy{background:#ead9c7}
.case-scene--timy::before{background:linear-gradient(118deg,rgba(255,250,242,.55),transparent 54%)}
.case-scene--miyo{background:#243b34}
.case-scene--miyo::before{background:linear-gradient(125deg,rgba(255,255,255,.09),transparent 48%,rgba(0,0,0,.1))}
.case-scene--miyo::after{background:rgba(0,0,0,.16)}
.case-scene-number{position:absolute;z-index:2;left:20px;top:18px;color:rgba(42,32,28,.66);font-size:10px;letter-spacing:.09em}
.case-scene--miyo .case-scene-number{color:rgba(255,255,255,.7)}
.case-device{position:absolute;z-index:1;bottom:10%;left:50%;display:block;width:min(84%,60vh);transform:translateX(-50%);filter:drop-shadow(0 18px 15px rgba(0,0,0,.23))}
.case-screen{display:block;aspect-ratio:2.12;overflow:hidden;border:clamp(4px,.48vw,7px) solid #202226;border-radius:8px 8px 3px 3px;background:#111}
.case-scene--timy .case-screen{aspect-ratio:2560/1305}
.case-screen img{width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .7s cubic-bezier(.22,1,.36,1)}
.case-device-base{position:relative;display:block;width:106%;height:9px;margin:-1px -3% 0;border-radius:0 0 45% 45%;background:linear-gradient(#d8d8d8 0%,#8b8c8d 45%,#e5e5e5 70%,#7a7b7c 100%)}
.case-device-base::after{position:absolute;top:0;left:43%;width:14%;height:3px;border-radius:0 0 8px 8px;background:rgba(53,53,53,.32);content:''}
.project-meta{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:16px}
.project-meta strong{display:block;font-size:clamp(20px,2vw,30px);font-weight:400;line-height:1.3;letter-spacing:-.02em}
.project-meta small{display:block;margin-top:6px;color:#6c7684;font-size:14px;line-height:1.45}
.project-arrow{display:grid;place-items:center;width:41px;height:41px;border:1px solid #d2d7df;border-radius:50%;font-size:20px;transition:background .3s ease,color .3s ease,border-color .3s ease}
.project-link:hover .case-screen img,.project-link:focus-visible .case-screen img{transform:scale(1.025)}
.project-link:hover .project-arrow,.project-link:focus-visible .project-arrow{border-color:#1554e7;background:#1554e7;color:#fff}
.project-brands{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:24px;border-top:1px solid #e0e3e8}
.project-brands>p{color:#697382;font-size:13px;white-space:nowrap}
.brand-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;gap:clamp(14px,1.4vw,24px);margin:0;padding:0;list-style:none}
.project-brand{display:flex;align-items:center;justify-content:center;min-width:0;height:50px;filter:grayscale(1);opacity:.7;transition:filter .35s ease,opacity .35s ease}
.project-brand:hover{filter:grayscale(0);opacity:1}
.project-brand>img,.project-brand>svg{display:block;max-width:100%;max-height:38px;object-fit:contain}
.zhongqing-brand svg{width:100%;height:auto;max-height:41px}
.panyou-brand,.junlian-brand{gap:6px;color:#26313c;font-size:12px;white-space:nowrap}
.panyou-brand .panyou-icon{width:27px;height:31px;flex:none}
.junlian-brand img{width:29px;height:29px;flex:none}
@media(max-height:850px) and (min-width:881px){.projects-intro .eyebrow{margin-bottom:8px}.projects-intro h2{font-size:clamp(40px,4.2vw,62px)}.projects-intro-aside{padding-top:10px}.projects-all{margin-top:8px}.case-scene{max-height:min(34vh,330px)}.case-device{width:min(84%,55vh)}.project-meta{padding-top:10px}.project-meta strong{font-size:clamp(19px,1.8vw,26px)}.project-meta small{margin-top:3px;font-size:13px}}
@media(max-width:1100px){.project-brands{grid-template-columns:115px minmax(0,1fr);gap:14px}.brand-list{gap:10px}.project-brands>p,.panyou-brand{font-size:11px}.junlian-brand{gap:3px;font-size:10px}.project-brand>img,.project-brand>svg{max-height:32px}.junlian-brand img{width:21px;height:21px}.panyou-brand .panyou-icon{width:23px;height:27px}}
@media(max-width:880px){.projects{height:auto;min-height:calc(100svh - var(--header-height))}.projects-inner{display:block;height:auto;padding-bottom:42px}.projects-intro{min-height:220px;padding:54px 0;align-items:flex-end}.projects-intro h2{font-size:clamp(37px,6vw,54px)}.projects-intro-aside{min-width:0;text-align:right;font-size:12px}.projects-all{margin-top:10px;font-size:13px}.project-grid{align-content:start;gap:20px;padding-bottom:42px}.case-scene{max-height:none}.case-device{width:80%}.project-meta strong{font-size:clamp(19px,2.7vw,25px)}.project-meta small{font-size:12px}.project-brands{display:block;padding-top:24px}.project-brands>p{font-size:13px}.brand-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 25px;margin-top:16px}.project-brand{height:42px}}
@media(max-width:600px){.projects-intro{min-height:0;display:block;padding:50px 0 38px}.projects-intro h2{font-size:clamp(34px,8vw,45px)}.projects-intro-aside{padding-top:19px;text-align:left}.project-grid{grid-template-columns:1fr;gap:30px}.case-scene{aspect-ratio:1.72}.case-scene-number{top:14px;left:14px;font-size:9px}.project-meta{padding-top:13px}.project-meta strong{font-size:22px}.project-arrow{width:36px;height:36px;font-size:18px}.brand-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}}
@media(prefers-reduced-motion:reduce){.projects-all span,.case-screen img,.project-arrow,.project-brand{transition:none}}
html[data-motion='paused'] .projects-all span,html[data-motion='paused'] .case-screen img,html[data-motion='paused'] .project-arrow,html[data-motion='paused'] .project-brand{transition:none}

/* The two identical groups make one continuous, single-row logo loop. */
.brand-marquee{--brand-gap:clamp(16px,1.6vw,26px);min-width:0;overflow:hidden}
.brand-marquee-track{display:flex;width:max-content;min-width:200%;animation:brand-marquee-run 30s linear infinite}
.brand-marquee-track>.brand-list{display:grid;flex:0 0 50%;grid-template-columns:repeat(6,minmax(120px,1fr));align-items:center;gap:var(--brand-gap);margin:0;padding:0 var(--brand-gap) 0 0}
.brand-marquee:focus-visible{outline:2px solid #1557e9;outline-offset:3px}
@keyframes brand-marquee-run{to{transform:translateX(-50%)}}
@media(hover:hover){.brand-marquee:hover .brand-marquee-track{animation-play-state:paused}}
@media(max-width:880px){.brand-marquee{margin-top:16px}}
.brand-marquee:focus-within,html[data-motion='paused'] .brand-marquee{overflow-x:auto;overscroll-behavior-x:contain}
.brand-marquee:focus-within .brand-marquee-track,html[data-motion='paused'] .brand-marquee-track{min-width:100%;animation:none;transform:none}
.brand-marquee:focus-within .brand-marquee-track>.brand-list,html[data-motion='paused'] .brand-marquee-track>.brand-list{flex:1 0 auto}
.brand-marquee:focus-within .brand-list-copy,html[data-motion='paused'] .brand-list-copy{display:none}
@media(prefers-reduced-motion:reduce){
  .brand-marquee{overflow-x:auto;overscroll-behavior-x:contain}
  .brand-marquee-track{min-width:100%;animation:none;transform:none}
  .brand-marquee-track>.brand-list{flex:1 0 auto}
  .brand-marquee-track>.brand-list-copy{display:none}
}

/* Scroll-led handoff: one pinned viewport, with additional scroll distance for the shot. */
.project-journey{position:relative}
.project-transition{display:none}
@media(min-width:881px) and (min-height:687px){
  html[data-motion='running'] .project-journey{height:calc(185svh - var(--header-height));min-height:calc(600px + 85svh)}
  html[data-motion='running'] .projects{position:sticky;top:var(--header-height);overflow:hidden}
  html[data-motion='running'] .project-transition{position:absolute;z-index:4;inset:0;display:block;overflow:hidden;background:#0649d4;color:#fff}
  .transition-shot{position:absolute;left:50%;top:50%;width:min(58%,107svh);aspect-ratio:2560/1305;transform:translate3d(-50%,-50%,0);box-shadow:0 22px 80px rgba(0,24,94,.23)}
  .transition-shot img{width:100%;height:100%;object-fit:cover}
  .transition-top,.transition-bottom{position:absolute;z-index:1;left:var(--edge);right:var(--edge);display:flex;align-items:center;justify-content:space-between;gap:20px}
  .transition-top{top:28px;font-size:13px;letter-spacing:.04em}
  .transition-top span:last-child{font-size:11px;letter-spacing:.1em;opacity:.72}
  .transition-bottom{bottom:28px;font-size:14px}
  .transition-bottom span:first-child{font-size:clamp(18px,1.6vw,24px)}
}
