/* About-style ending, scoped to project recommendations and the shared footer. */
.lab-related,.lab-footer{--gutter:clamp(24px,5vw,88px);--ending-inset:calc(max(0px, (100% - 1600px) / 2) + var(--gutter));--ink:#6B5959;--muted:#73736d;--line:#d5d5ce;box-sizing:border-box;font-family:Urbanist,sans-serif;font-weight:400;color:var(--ink)}
.lab-related{position:relative;isolation:isolate;width:100%;margin:100px auto 0;padding:0 var(--ending-inset) 140px;background:#fff}
.lab-related::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('assets/cb1e3.svg') center / calc(100% + 1000px) 2258px no-repeat;opacity:.5}
.lab-related .section-rule{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:20px;font-size:10px;letter-spacing:1.8px;color:var(--muted);line-height:1.5}
.lab-related .section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:58px 0 66px}
.lab-related .section-heading h2{margin:0;font-family:Urbanist,sans-serif;font-size:24px;font-weight:400;line-height:1.2;letter-spacing:.1em;color:var(--ink)}
.lab-related .gallery-viewport{overflow-x:auto;overflow-y:hidden;width:calc(100% + var(--gutter));scrollbar-width:none;overscroll-behavior-x:contain;cursor:grab;touch-action:pan-x pan-y;outline-offset:6px}
.lab-related .gallery-viewport::-webkit-scrollbar{display:none}
.lab-related .gallery-viewport.dragging{cursor:grabbing}
.lab-related .gallery-track{display:flex;width:max-content;gap:40px;padding:0 var(--gutter) 24px 0}
.lab-related .gallery-progress{position:relative;width:100%;height:1px;margin-top:24px;background:rgba(23,23,21,.09)}
.lab-related .gallery-progress span{position:absolute;left:0;top:0;width:20%;height:1px;background:#a2b2bc;opacity:.45}
.lab-related .about-project-card{color:inherit;text-decoration:none;transition:box-shadow .4s ease}
.lab-related .about-project-card:hover{box-shadow:0 14px 38px rgba(86,42,58,.065)}
.lab-related a:focus-visible,.lab-related [tabindex]:focus-visible,.lab-footer a:focus-visible{outline:2px solid #78aed0;outline-offset:7px}
.lab-footer{width:100%;margin:0 auto;padding:150px var(--ending-inset) 30px;background:#fff}
.lab-footer a{color:inherit;text-decoration:none}
.lab-footer .footer-top{display:flex;justify-content:space-between;gap:24px;font-size:10px;letter-spacing:2px;color:var(--muted)}
.lab-footer .email-link{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:clamp(28px,5.4vw,86px);font-weight:300;letter-spacing:-1.5px;border-bottom:1px solid var(--line);padding:30px 0 40px;transition:color .3s}
.lab-footer .email-link:hover{color:#5c7a8c}
.lab-footer .email-link>span{font-weight:200;font-size:.8em}
.lab-footer .footer-bottom{display:flex;justify-content:space-between;gap:20px;font-size:11px;letter-spacing:.6px;color:var(--muted);margin-top:28px}
@media(max-width:760px){
 .lab-related,.lab-footer{--gutter:24px}
 .lab-related{margin-top:80px;padding-bottom:90px}
 .lab-related .section-rule{font-size:8px;letter-spacing:1.1px;padding-top:16px}
 .lab-related .section-heading{margin:38px 0;gap:14px}
 .lab-related .section-heading h2{font-size:18px}
 .lab-related .gallery-track{gap:24px}
 .lab-related .gallery-progress{margin-top:20px}
 .lab-footer{padding-top:100px;padding-bottom:28px}
 .lab-footer .footer-top{font-size:8px;letter-spacing:1.5px}
 .lab-footer .email-link{font-size:clamp(23px,6vw,42px);letter-spacing:-.7px;padding:28px 0}
 .lab-footer .footer-bottom{font-size:8px;letter-spacing:.3px;flex-wrap:wrap}
 .lab-footer .footer-bottom>span:first-child{width:100%}
}
@media(prefers-reduced-motion:reduce){.lab-related .about-project-card,.lab-footer .email-link{transition:none}}
/* Fade the recommendation backdrop into the surrounding page. */
.lab-related::before{mask-image:linear-gradient(to bottom,transparent,#000 180px,#000 calc(100% - 180px),transparent);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 180px,#000 calc(100% - 180px),transparent)}
/* Blend the existing case-study canvas through the empty space above recommendations. */
.lab-related::after{content:'';position:absolute;inset:-100px 0 0;z-index:-2;pointer-events:none;background:linear-gradient(to bottom,transparent,#fff 100px)}
@media(max-width:760px){.lab-related::after{top:-80px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 80px)}}

/* Lay out the full card before scaling it, including on iOS. */
.lab-related,
.lab-related .about-project-card,
.lab-related .about-project-card * {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
@media (max-width: 760px) {
  .lab-related .related-card-frame {
    flex: none;
    overflow: hidden;
    overflow: clip;
  }
  .lab-related .related-card-frame > .about-project-card {
    transform: scale(var(--related-card-scale));
  }
}

/* Figma card / 88:4481. Surface SVG retains its original pink noise and blur. */
.work-list{gap:80px}
.work-card{background:transparent}
.new-card,.new-card *{box-sizing:border-box}
.new-card{position:relative;isolation:isolate;line-height:normal;color:var(--ink);font-family:Urbanist,sans-serif;font-weight:400}
.source-card.new-card{display:block!important;width:1200px;height:320px}
.new-card-surface{position:absolute;inset:0;z-index:-1;border-radius:20px;background:url('assets/figma-card/backing.svg') center / calc(100% + 8px) calc(100% + 8px) no-repeat;pointer-events:none}
.new-card-content{display:flex;align-items:center;gap:140px;width:1160px;margin:10px 20px}
.new-card-media{flex:0 0 440px;width:440px;padding:10px}
.new-card-picture{position:relative;width:420px;height:280px;overflow:hidden;border-radius:16px}
.new-card-picture>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;pointer-events:none}
.new-card-kivro .new-card-picture>img{inset:auto;left:-15.15%;top:.16%;width:134.6%;height:100%}
.new-card-daixian .new-card-picture{border-radius:0}
.new-card-yuntuo .new-card-picture{border-radius:5px}
.new-card-yuntuo .new-card-picture>img{inset:auto;left:-48.05%;top:-12.46%;width:148%;height:124.84%}
.new-card-copy{display:flex;flex:0 0 var(--copy-width);width:var(--copy-width);flex-direction:column;gap:20px;align-items:flex-start}
.new-card-title,.new-card-copy>p,.new-card-tags p{margin:0}
.new-card-title{font-family:Urbanist,sans-serif;font-weight:200;font-size:48px;line-height:1;letter-spacing:2.4px;color:var(--ink)}
.new-card-infinity .new-card-title{font-family:'Vujahday Script',cursive;font-weight:400;font-size:40px;line-height:40px;letter-spacing:6.4px;color:#6b5959}
.new-card-yuntuo .new-card-title{font-weight:700;font-size:40px;line-height:1.4;letter-spacing:4px;background:linear-gradient(111.008572136deg,#366bee 10.037%,#1f3d88 141.08%);background-clip:text;-webkit-background-clip:text;color:transparent}
.new-title-logo{display:block;width:124px;height:50.6091px;position:relative}
.new-title-logo img{display:block;max-width:none}
.new-card-copy .new-card-date{font-size:16px;line-height:1.6;letter-spacing:.8px;color:rgba(53,29,22,.6);white-space:nowrap}
.new-card-copy .new-card-description{width:500px;font-size:16px;line-height:1.6;letter-spacing:.8px;color:var(--ink)}
.new-card-tags{display:flex;gap:25px;align-items:center;white-space:nowrap}
.new-card-tags>span{display:flex;align-items:center;justify-content:center;padding:4px 12px;border-radius:200px;box-shadow:inset 0 0 0 1px #bfb4b4}
.new-card-tags p{font-size:16px;line-height:1.6;letter-spacing:.8px;color:var(--ink);white-space:pre}
.new-card-tags>span:last-child p{letter-spacing:1.6px;color:var(--ink)}
.new-card-infinity .new-card-tags>span:last-child p{letter-spacing:.8px;color:var(--ink)}
.new-card-compact,.lab-about .about-project-card.new-card{display:flex;flex-direction:column;flex:none;width:353px;height:440px;padding:20px;border:0;border-radius:20px;background:transparent;transform-origin:top left}
.new-card-compact .new-card-content{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:16px;margin:0;width:100%;min-height:0}
.new-card-compact .new-card-media{flex:none;width:313px;padding:0}
.new-card-compact .new-card-picture{width:313px;height:206px}
.new-card-compact .new-card-copy{display:grid;grid-template-rows:44px 19.2px minmax(57.6px,1fr) 22px;gap:8px;align-items:start;flex:1;width:100%;min-height:0}
.new-card-compact .new-card-title{align-self:center;font-size:36px;line-height:44px;letter-spacing:1.8px}
.new-card-compact.new-card-infinity .new-card-title{font-size:32px;line-height:40px;letter-spacing:5.12px}
.new-card-compact.new-card-yuntuo .new-card-title{font-size:32px;line-height:44px;letter-spacing:3.2px}
.new-card-compact .new-title-logo{width:93px;height:37.956825px}
.new-card-compact .new-title-logo img{transform:scale(.75);transform-origin:top left}
.new-card-compact .new-card-copy .new-card-date,.new-card-compact .new-card-copy .new-card-description{width:100%;font-size:12px;line-height:1.6;letter-spacing:.6px}
.new-card-compact .new-card-tags{align-self:end;gap:8px}
.new-card-compact .new-card-tags>span{padding:3px 9px}
.new-card-compact .new-card-tags p,.new-card-compact .new-card-tags>span:last-child p{font-size:10px;line-height:16px;letter-spacing:0}
@media(max-width:760px){.work-list{gap:38px}}


/* Keep the original KIVRO wordmark shape while matching the shared text ink. */
.new-title-logo{background:var(--ink);mask:url("assets/figma-card/9570b.svg") center / 100% 100% no-repeat;-webkit-mask:url("assets/figma-card/9570b.svg") center / 100% 100% no-repeat}
.new-title-logo img{opacity:0}

