/* "Product" — full work listing, styled as a bento gallery (loveandmoney.com/work reference). */
.section-shell{padding-left:var(--space);padding-right:var(--space)}
.product-hero{padding-top:132px;padding-bottom:0}
.product-hero h1{margin:0;font-size:calc(4.97vw * var(--title-scale));font-weight:500;line-height:1.02;letter-spacing:0;text-transform:uppercase}
.product-feature{margin-bottom:calc(clamp(28px,3vw,44px) - 8px)}
.product-feature-card{display:block;min-width:0}
.product-feature-media{position:relative;display:block;overflow:hidden;background:#111;aspect-ratio:16/7}
.product-media-content{position:absolute;inset:0;display:block;overflow:hidden;transform-origin:center;transition:transform .6s cubic-bezier(.2,.7,.3,1)}
.product-card:hover .product-media-content,.product-feature-card:hover .product-media-content{transform:scale(1.04)}
.product-feature-media img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.3,1)}
.product-feature-card img{transform:none}
/* Quacko Work cover: monitor and rail share one transparent image; statistic card and tooltip remain separate. */
.product-feature-media:has(.quacko-work-art){container-type:size;background:#5f1b7b}
.quacko-work-art{position:absolute;inset:0;display:block;overflow:hidden}
.quacko-work-grid{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.quacko-work-stage{position:absolute;left:50%;top:50%;display:block;width:max(100%,81.22cqh);aspect-ratio:1691/2082;transform:translate(-50%,-50%);container-type:inline-size;font-family:Inter,Arial,sans-serif;color:#0a0a0a}
.product-feature-media .quacko-work-stage img{position:static;width:auto;height:auto;object-fit:contain;transform:none;transition:none}
.product-feature-media .quacko-work-base{display:block!important;width:100%!important;height:100%!important;object-fit:fill!important}
.product-feature-media .quacko-work-stage .quacko-work-metric{position:absolute;width:20%;height:auto;left:74.4%;top:12.3%;max-width:none;pointer-events:none;transform:matrix(1,-.13,.16,1,0,0);transform-origin:center}
.quacko-work-rail{position:absolute;left:3.23%;top:53.53%;width:10.1%;height:21.76%;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;border:1.5px solid #ffffffb8;border-radius:45%/17%;background:linear-gradient(100deg,#f4eff33b 0%,#dbd4df35 37%,#17141f9c 69%,#283041b5 88%,#69607b83 100%);box-shadow:inset 1px 1px 1px #fff9,inset -1.1cqw 0 1.6cqw #09020e85,0 .35cqw .8cqw #150a2545;backdrop-filter:blur(9px) saturate(1.4);-webkit-backdrop-filter:blur(9px) saturate(1.4);transform:rotate(-9deg) skewX(-6deg)}
.quacko-work-rail>span{display:grid;place-items:center;width:53.6%;aspect-ratio:1;border-radius:50%;background:#fff1f1}
.quacko-work-rail>span:nth-child(2){background:#e3f5ff}
.quacko-work-rail>span:nth-child(3){background:#fff4e0}
.product-feature-media .quacko-work-rail img{width:44%;height:44%}
.case-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));column-gap:clamp(10px,1.4vw,20px);row-gap:clamp(18px,2vw,30px);padding-top:clamp(12px,2vw,28px);padding-bottom:clamp(28px,3vw,44px)}
.case-feature-grid>.product-card{grid-column:1;grid-row:auto;min-height:0}
.case-feature-grid>.product-card .product-card-media{flex:1;aspect-ratio:auto;min-height:0}
.case-feature-grid>.product-card--design-system .product-card-media{background:#f66f83}
.case-feature-grid>.product-card--design-system .product-card-media img{object-fit:cover}
.case-feature-grid>.product-card--placeholder .product-card-media{display:grid;place-items:center;background:#e9e9e7;color:#777}
.case-feature-grid>.product-card--placeholder .product-card-media>span{font-size:clamp(24px,3vw,48px);font-weight:500;letter-spacing:-.04em}
.case-feature-grid>.product-feature{grid-column:2;grid-row:1 / 3;min-width:0;min-height:0;margin:0;padding:0}
.case-feature-grid .product-feature-card{display:flex;height:100%;flex-direction:column}
.case-feature-grid .product-feature-media{flex:1;min-height:0;aspect-ratio:auto}
@media(max-width:850px){.case-feature-grid{grid-template-rows:auto;row-gap:24px}.case-feature-grid>.product-feature{grid-column:1 / -1;grid-row:1}.case-feature-grid .product-feature-media{aspect-ratio:16/9}.case-feature-grid>.product-card{grid-row:2}.case-feature-grid>.product-card--design-system{grid-column:2}.case-feature-grid>.product-card .product-card-media{aspect-ratio:1.6}}
@media(max-width:560px){.case-feature-grid{grid-template-columns:1fr}.case-feature-grid>.product-feature,.case-feature-grid>.product-card,.case-feature-grid>.product-card--design-system{grid-column:1;grid-row:auto}.case-feature-grid>.product-feature{grid-row:1}.case-feature-grid .product-feature-media,.case-feature-grid>.product-card .product-card-media{aspect-ratio:1}.case-feature-grid>.product-card--design-system .product-card-media img{object-fit:cover}}
.qwb{position:absolute;inset:0;display:block;overflow:hidden;background:#5f1b7b}
.qwb-stage{position:absolute;left:0;top:50%;display:block;width:100%;aspect-ratio:1921/864;transform:translateY(-50%)}
.qwb-grid{position:absolute;inset:0;display:block;width:100%;height:100%}
.product-feature-media .qwb img,.product-feature-card:hover .qwb img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;transform:none;transition:none;pointer-events:none}
.qwb.is-pending .qwb-metric{opacity:0}
.qwb.is-playing .qwb-metric{animation:qwb-metric-in .64s cubic-bezier(.16,1,.3,1) .54s both}
@keyframes qwb-metric-in{from{opacity:0;transform:translate(2.7%,2.9%)}to{opacity:1;transform:translate(0,0)}}
@media(max-width:560px){.qwb-stage{left:50%;top:0;width:auto;height:100%;transform:translateX(-50%)}}
.archive-toolbar{padding-top:clamp(24px,3vw,40px);padding-bottom:12px}
.archive-toolbar button{font-size:14px;text-transform:uppercase;letter-spacing:.02em}
.product-grid{container-type:inline-size;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;grid-auto-flow:dense;column-gap:clamp(10px,1.4vw,20px);row-gap:clamp(28px,3vw,44px);padding-top:8px;padding-bottom:clamp(80px,9vw,130px)}
.product-card{display:flex;flex-direction:column;grid-column:span 1;grid-row:span 1;min-width:0}
.product-card-media{position:relative;flex:none;aspect-ratio:1;overflow:hidden;background:#eee}
.product-card-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.3,1)}
.product-card:nth-child(5n+1){grid-column:span 2;grid-row:span 2}
/* The wide card stretches over two rows; its picture takes whatever height the caption leaves. */
.product-card:nth-child(5n+1) .product-card-media{flex:1;aspect-ratio:auto;min-height:0}
@media(max-width:850px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card:nth-child(5n+1){grid-column:span 2;grid-row:span 1}}
@media(max-width:560px){.product-hero{padding-top:105px}.product-hero h1{font-size:calc(5.075vw * var(--title-scale));line-height:1.08}.archive-toolbar{padding-top:20px}.product-feature-media{aspect-ratio:4/5}.product-grid{grid-template-columns:1fr}.product-card:nth-child(5n+1){grid-column:span 1}}

/* Three original collections, mapped to the matching local cases. */
.project-collection:has(.product-feature){padding-top:clamp(12px,2vw,28px)}
.product-card video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.3,1)}
.product-card--seadream .product-card-media{background:#0065f8}
.product-card--seadream .product-card-media video{object-fit:contain;transform:scale(1.42)}
.product-card--seadream:hover .product-card-media video{transform:scale(1.42)}
/* Only non-last collections: their grid's own bottom padding is what creates the gap before the next collection starts, so it's set to match the intra-collection row-gap exactly (the next grid's fixed 8px padding-top makes up the rest). The last collection keeps the larger clamp() from the base .product-grid rule above, as page-end breathing room before the footer. */
.project-collection:not(:last-child) .product-grid{padding-bottom:calc(clamp(28px,3vw,44px) - 8px)}
/* Case studies collection has only 3 cards, not the 4 squares needed to flank a 2-row hero; keep its wide card one row tall, its picture exactly one grid column tall (same as the square cards) via container-query math instead of the flex filler above. */
.project-collection:has(.product-feature) .product-card:nth-child(5n+1){grid-row:span 1}
.project-collection:has(.product-feature) .product-card:nth-child(5n+1) .product-card-media{flex:none;aspect-ratio:auto;height:calc((100cqw - 3*clamp(10px,1.4vw,20px)) / 4)}
@media(max-width:850px){.project-collection:has(.product-feature) .product-card:nth-child(5n+1) .product-card-media{height:calc((100cqw - 1*clamp(10px,1.4vw,20px)) / 2)}}
@media(max-width:560px){.project-collection:has(.product-feature) .product-card:nth-child(5n+1) .product-card-media{height:100cqw}}
@media(max-width:850px){.product-card:nth-child(5n+1) .product-card-media{flex:none;aspect-ratio:2}}
@media(max-width:560px){.archive-toolbar{flex-wrap:wrap;gap:14px}.archive-toolbar>span{width:100%;margin-left:0}.product-card:nth-child(n) .product-card-media{aspect-ratio:1}.product-grid{padding-bottom:45px}}

/* AB Points sits at position 6 of the UX collection (its own 5n+1 hero slot) but, like the case-studies card above, reads better one row tall than spanning two. Position 1 (Engine AI) is untouched. */
.project-collection[data-collection="ux"] .product-card:nth-child(6){grid-row:span 1}
.project-collection[data-collection="ux"] .product-card:nth-child(6) .product-card-media{flex:none;aspect-ratio:auto;height:calc((100cqw - 3*clamp(10px,1.4vw,20px)) / 4)}
@media(max-width:850px){.project-collection[data-collection="ux"] .product-card:nth-child(6) .product-card-media{height:calc((100cqw - 1*clamp(10px,1.4vw,20px)) / 2)}}
@media(max-width:560px){.project-collection[data-collection="ux"] .product-card:nth-child(6) .product-card-media{height:100cqw}}

/* KidsRepublic (position 2) matches Engine AI's flagship hero size (2 cols x 2 rows); dense grid flow then places it immediately to Engine AI's right. */
.project-collection[data-collection="ux"] .product-card:nth-child(2){grid-column:span 2;grid-row:span 2}
/* Explicit height (2 square rows + the gap between them), not flex:1/auto: with the 4 flanking squares gone from this row, nothing else would give the row a definite size, and Engine AI's own flex:1 media would collapse to 0 alongside it. */
.project-collection[data-collection="ux"] .product-card:nth-child(2) .product-card-media{flex:none;aspect-ratio:auto;height:calc(2 * ((100cqw - 3*clamp(10px,1.4vw,20px)) / 4) + clamp(28px,3vw,44px))}
@media(max-width:850px){.project-collection[data-collection="ux"] .product-card:nth-child(2){grid-column:span 2;grid-row:span 1}.project-collection[data-collection="ux"] .product-card:nth-child(2) .product-card-media{height:calc((100cqw - 1*clamp(10px,1.4vw,20px)) / 2)}}
@media(max-width:560px){.project-collection[data-collection="ux"] .product-card:nth-child(2){grid-column:span 1}}

/* Condé Nast Design sits at position 6 of the graphic collection (its own 5n+1 hero slot), and since id 14 was removed it's now the last card, with no row 2 sibling to give the wide-card flex:1 media a height. Same fix as AB Points above: one row tall, explicit height. */
.project-collection[data-collection="graphic"] .product-card:nth-child(6){grid-row:span 1}
.project-collection[data-collection="graphic"] .product-card:nth-child(6) .product-card-media{flex:none;aspect-ratio:auto;height:calc((100cqw - 3*clamp(10px,1.4vw,20px)) / 4)}
@media(max-width:850px){.project-collection[data-collection="graphic"] .product-card:nth-child(6) .product-card-media{height:calc((100cqw - 1*clamp(10px,1.4vw,20px)) / 2)}}
@media(max-width:560px){.project-collection[data-collection="graphic"] .product-card:nth-child(6) .product-card-media{height:100cqw}}

/* AB Points thumbnail: layers rebuilt from the Figma cover (node 3865:1883), reusing the calibrated hand/phone assets from the home page's abpoints-cover so the phone screen stays a looping video instead of a flattened still. */
.abpoints-wide{position:absolute;inset:0;overflow:hidden;background:linear-gradient(180deg,#ff7649 48.071%,#ff2166 104.14%)}
.product-card:hover .abpoints-wide{transform:none}
.abpoints-wide .aw-word{position:absolute;left:50%;top:50%;width:88%;transform:translate(-50%,-50%)}
.abpoints-wide .aw-word img{position:static;display:block;width:100%;height:auto;transform:none}
.abpoints-wide .aw-phone-wrap{position:absolute;left:34.28%;top:6.61%;width:39.35%;height:93.39%}
.abpoints-wide .aw-hand{position:static;display:block;width:100%;height:100%;object-fit:fill;transform:none}
.abpoints-wide .aw-phone{position:absolute;left:8.855%;top:0;width:54.973%;height:91.583%;object-fit:cover;clip-path:inset(3.354% 8.185% 3.506% 7.44% round 7% / 4%);transform:none}
.product-card:hover .abpoints-wide .aw-word img,.product-card:hover .abpoints-wide .aw-hand,.product-card:hover .abpoints-wide .aw-phone{transform:none}
@media(prefers-reduced-motion:reduce){.abpoints-wide{transition:none}.product-card:hover .abpoints-wide{transform:none}}

/* KidsRepublic thumbnail: same idea as the home page's kr-home-cover (a separate wordmark overlay plus an orange frame over the seal loop) instead of the plain thumb-3 clip, which left too much dead space in this taller box. kr-wide-loop is pre-cropped/padded around the seal+ball's full swing to match this box's near-square shape. The ball's bounce still passes near the wordmark corner at points in the loop; accepted as a minor overlap rather than losing the motion. */
.kr-wide-cover{position:absolute;inset:0;background:#f8f8f6;overflow:hidden}
.product-card-media .kr-wide-cover video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:none}
.product-card:hover .kr-wide-cover video{transform:none}
.kr-wide-wordmark{position:absolute;left:5.92%;top:6.56%;width:31.94%;aspect-ratio:180.481/65.2315;z-index:1}
.kr-wide-wordmark img{position:static;display:block;width:100%;height:100%;object-fit:contain;transform:none}
.kr-wide-frame{position:absolute;inset:0;pointer-events:none;z-index:2}
.kr-wide-frame i{position:absolute;display:block;background:#ff8b1c}
.kr-wide-frame i:nth-child(1){top:0;left:0;width:100%;height:2.8125%}
.kr-wide-frame i:nth-child(2){top:0;right:0;width:2.6%;height:100%}
.kr-wide-frame i:nth-child(3){bottom:0;right:0;width:100%;height:2.8125%}
.kr-wide-frame i:nth-child(4){bottom:0;left:0;width:2.6%;height:100%}
/* The CST card displays the same banner component as its case page, cropped to the existing square card. */
.product-card-media .cst-product-banner{position:absolute;inset:0;display:block;overflow:hidden;background:#f29500}
.product-card-media .cst-product-banner .cst-banner-stage{position:absolute;top:0;left:-62%;width:auto;height:140%;aspect-ratio:1921/864;overflow:hidden}
.product-card-media .cst-product-banner img{transition:none;object-fit:fill}
.product-card:hover .product-card-media .cst-product-banner .cst-hero-desktop,.product-card:hover .product-card-media .cst-product-banner .cst-hero-master{transform:none}
.product-card-media .cst-product-banner .cst-hero-phone,.product-card:hover .product-card-media .cst-product-banner .cst-hero-phone{transform:translateY(-70%)}

/* Lead block under the Quacko banner: Engine AI (2 cols x 2 rows, its picture fills whatever height the right-hand rows leave) next to RIFO (wide), with CST and Euka underneath RIFO. Every card keeps its former size. */
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(1){grid-row:span 2}
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(1) .product-card-media{flex:1;aspect-ratio:auto;height:auto;min-height:0}
@media(min-width:561px){.project-collection:has(.product-feature) .product-lead .product-card:nth-child(2){grid-column:span 2}}
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(2) .product-card-media{flex:none;aspect-ratio:auto;height:calc((100cqw - 3*clamp(10px,1.4vw,20px)) / 4)}
@media(max-width:850px){
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(1){grid-row:span 1}
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(1) .product-card-media{flex:none;aspect-ratio:2}
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(2) .product-card-media{height:calc((100cqw - 1*clamp(10px,1.4vw,20px)) / 2)}}
@media(max-width:560px){
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(1){grid-column:span 1}
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(1) .product-card-media{aspect-ratio:1}
.project-collection:has(.product-feature) .product-lead .product-card:nth-child(2) .product-card-media{height:100cqw}}

/* UI/UX collection with Engine AI moved up: its hidden placeholder takes no space, and KidsRepublic stays pinned to the two right-hand columns so LILA and SeaDream flow in to its left. */
.product-card[hidden]{display:none}
@media(min-width:851px){.project-collection[data-collection="ux"] .product-card:nth-child(2){grid-column:3 / span 2}}

/* UI/UX collection once Engine AI has moved up: LILA and SeaDream sit left of KidsRepublic with AB Points directly beneath them; KidsRepublic's picture stretches to end level with AB Points. */
@media(min-width:851px){
.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(6){grid-column:1 / span 2;grid-row:2}
.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(2) .product-card-media,.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(7) .product-card-media{flex:1;aspect-ratio:auto;height:auto;min-height:0}
/* Benkei Hime: same 2 x 2 hero size as KidsRepublic, directly under AB Points. */
.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(7){grid-column:1 / span 2;grid-row:3 / span 2}}

/* YourCondos: the same long strip as AB Points (2 columns, one square row tall). */
.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(5){grid-column:span 2}
.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(5) .product-card-media{flex:none;aspect-ratio:auto;height:calc((100cqw - 3*clamp(10px,1.4vw,20px)) / 4)}
@media(max-width:850px){.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(5) .product-card-media{height:calc((100cqw - 1*clamp(10px,1.4vw,20px)) / 2)}}
@media(max-width:560px){.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(5){grid-column:span 1}.project-collection[data-collection="ux"] .is-lead-moved .product-card:nth-child(5) .product-card-media{height:100cqw}}

/* Mobile work index: a clear page title and a usable single-line filter rail. */
@media(max-width:560px){
  .product-hero h1{font-size:clamp(58px,16vw,88px);line-height:.95}
  .archive-toolbar{flex-wrap:nowrap;overflow-x:auto;gap:22px;padding-top:26px;padding-bottom:14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .archive-toolbar::-webkit-scrollbar{display:none}
  .archive-toolbar button{flex:none;min-height:44px;font-size:12px;white-space:nowrap}
  .archive-toolbar>span{width:auto;flex:none}
}

/* LILA uses the original case's separate video, product outline and wordmark layers. */
.lila-work-cover{position:absolute;inset:0;display:block;overflow:hidden;background:#050507}
.product-card-media .lila-work-cover video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.product-card-media .lila-work-cover .lila-work-outline{position:absolute;top:0;left:50%;width:auto;max-width:none;height:100%;object-fit:contain;transform:translateX(-50%);transition:none}
.product-card-media .lila-work-cover .lila-work-logo{position:absolute;top:50%;left:50%;width:68%;height:auto;object-fit:contain;transform:translate(-50%,-50%);transition:none}
.product-card:hover .lila-work-cover .lila-work-outline{transform:translateX(-50%)}
.product-card:hover .lila-work-cover .lila-work-logo{transform:translate(-50%,-50%)}

/* Phone fixes for thumbnails (≤560px only; desktop untouched).
   Quacko feature: square like every other phone card, banner at 110% width, centred vertically so the side buttons, the whole UI and the 'Creator reached' card all fit, over the full-card grid.
   KidsRepublic: square like every other phone card (the ≤850px half-height strip was leaking through).
   AB Points: the wide composition squeezed the hand/phone horizontally in a square; keep the desktop hand box shape (249×286). */
@media(max-width:560px){
  .product-feature-media{aspect-ratio:1}
  .product-feature-media .qwb-stage{left:49%;top:50%;bottom:auto;width:110%;height:auto;aspect-ratio:1921/864;transform:translate(-50%,-50%)}
  .project-collection[data-collection="ux"] .product-card:nth-child(2) .product-card-media{height:100cqw}
  .abpoints-wide .aw-phone-wrap{left:17.35%;top:6.61%;width:auto;height:93.39%;aspect-ratio:249/286}
  .abpoints-wide .aw-word{top:16%}
}
/* Phones only: the home page's case-card entrance (.feature) for every work card */
@media(max-width:560px){
  .mobile-reveal{opacity:0;transform:translateY(96px) scale(.94);transform-origin:50% 100%;transition:opacity .5s cubic-bezier(.33,1,.68,1),transform .75s cubic-bezier(.16,1,.3,1)}
  .mobile-reveal.is-in{opacity:1;transform:none}
}

/* The three featured cases form one independent grid; general nth-child bento rules do not apply here. */
@media(min-width:851px){
  .case-feature-grid>.product-card:first-child{grid-column:1;grid-row:1}
  .case-feature-grid>.product-card--design-system{grid-column:1;grid-row:2}
  .case-feature-grid>.product-card:first-child .product-card-media,.case-feature-grid>.product-card--design-system .product-card-media{flex:1;aspect-ratio:auto;height:auto;min-height:0}
  .case-feature-grid>.product-feature{grid-column:2;grid-row:1 / 3}
  .case-feature-grid .product-feature-media{flex:1;aspect-ratio:auto}
  .case-feature-grid .product-feature-media .qwb{background:#5f1b7b}
  .case-feature-grid .product-feature-media .qwb-grid{position:absolute;inset:0;width:100%;height:100%}
  .case-feature-grid .product-feature-media .qwb-stage{left:50%;top:50%;width:118%;height:auto;transform:translate(-50%,-50%)}
}
@media(prefers-reduced-motion:reduce){.mobile-reveal{opacity:1;transform:none;transition:none}}

/* Keep featured cards in their assigned columns instead of the archive's nth-child spans. */
@media(min-width:561px) and (max-width:850px){
  .case-feature-grid>.product-card--milo{grid-column:1;grid-row:2}
  .case-feature-grid>.product-card--design-system{grid-column:2;grid-row:2}
  .case-feature-grid>.product-card .product-card-media{flex:none;aspect-ratio:1.6}
  .project-collection .case-feature-grid>.product-card:nth-child(n) .product-card-media{height:auto;flex:none;aspect-ratio:1.6}
}
@media(max-width:850px){
  .case-feature-grid>.product-card--design-system .work-meta-head{align-items:flex-start}
  .case-feature-grid>.product-card--design-system .work-meta-origin{display:block;width:fit-content;margin:8px 0 0}
}
@media(max-width:560px){
  .case-feature-grid>.product-card--milo{grid-column:1;grid-row:2}
  .case-feature-grid>.product-card--design-system{grid-column:1;grid-row:3}
  .project-collections .work-meta-origin{display:block;width:fit-content;margin:8px 0 0}
}

/* Milo Work thumbnail: original SaaS panel and Figma background, with subtle motion. */
.product-card--milo .product-card-media { background:#ff6b4c; }
.milo-work-art { position:absolute; inset:0; display:block; overflow:hidden; container-type:inline-size; }
.product-card--milo .product-card-media .milo-work-background { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:none; }
.milo-work-panel { position:absolute; left:22.86%; top:5.7%; width:50.4%; height:86.7%; overflow:hidden; border-radius:7.5% / 7.7%; box-shadow:0 0 7px #0004; transform-origin:110% 80%; opacity:0; transform:scale(.12); }
.milo-panel-visible .milo-work-panel { animation:milo-panel-enter 820ms cubic-bezier(.22,1,.36,1) both; }
.milo-panel-settled .milo-work-panel { opacity:1; transform:none; }
@keyframes milo-panel-enter { from { opacity:0; transform:scale(.12); } to { opacity:1; transform:scale(1); } }
.product-card--milo .product-card-media .milo-work-panel > img { position:absolute; left:-1%; top:-1.3%; width:102.3%; height:auto; max-width:none; object-fit:initial; transition:none; }
.milo-work-header { position:absolute; z-index:3; inset:0 0 auto; height:21%; overflow:hidden; color:#321023; font-family:Inter,Arial,sans-serif; }
.milo-header-gradient { position:absolute; inset:0; overflow:hidden; background:linear-gradient(to bottom,transparent 22%,rgb(255 255 255 / 48%) 55%,#fff 100%),radial-gradient(ellipse 105% 85% at 105% 0%,rgb(246 177 216 / 72%) 0%,rgb(249 198 221 / 44%) 38%,transparent 76%),radial-gradient(ellipse 110% 90% at -8% 0%,rgb(255 208 162 / 82%) 0%,rgb(255 216 190 / 66%) 44%,transparent 78%),#ffe0d5; }
.milo-header-gradient::before,.milo-header-gradient::after { position:absolute; content:""; inset:-18% -28% -8%; will-change:transform; -webkit-mask-image:linear-gradient(to bottom,#000 5%,#000 28%,transparent 84%); mask-image:linear-gradient(to bottom,#000 5%,#000 28%,transparent 84%); }
.milo-header-gradient::before { background:radial-gradient(ellipse 35% 65% at 72% 18%,rgb(244 125 190 / 78%),transparent 76%); animation:quacko-chat-gradient-drift 4.2s ease-in-out infinite alternate; }
.milo-header-gradient::after { background:radial-gradient(ellipse 35% 65% at 25% 16%,rgb(255 168 106 / 75%),transparent 76%); animation:quacko-chat-gradient-drift-secondary 5s ease-in-out infinite alternate; }
@keyframes quacko-chat-gradient-drift { from { transform:translate3d(-24%,0,0); } to { transform:translate3d(24%,-3%,0); } }
@keyframes quacko-chat-gradient-drift-secondary { from { transform:translate3d(22%,-2%,0); } to { transform:translate3d(-22%,2%,0); } }
.milo-header-brand { position:absolute; top:18%; left:5%; display:flex; align-items:center; gap:.5cqw; height:4.1cqw; font-size:3.3cqw; font-weight:600; letter-spacing:-.05em; line-height:1; }
.milo-header-logo { position:relative; display:block; width:4.2cqw; height:3.7cqw; }
.milo-header-wing { position:absolute; top:0; display:block; width:2.95cqw; height:3.7cqw; }
.milo-header-wing--left { left:0; transform-origin:right center; }
.milo-header-wing--right { left:1.26cqw; transform-origin:left center; }
.milo-header-lobe { position:absolute; top:.38cqw; left:-.35cqw; display:block; width:3.65cqw; height:2.92cqw; background:currentColor; -webkit-mask:url('assets/cases/milo-thumbnail/milo-figma-lobe.svg') center / contain no-repeat; mask:url('assets/cases/milo-thumbnail/milo-figma-lobe.svg') center / contain no-repeat; }
.milo-header-lobe--left { transform:rotate(90deg); }.milo-header-lobe--right { transform:rotate(-90deg); }
.milo-header-wing { animation:milo-header-spread 8s linear infinite; }
@keyframes milo-header-spread { 0% { transform:scaleX(0); animation-timing-function:cubic-bezier(.16,1,.3,1); } 9.75%,94% { transform:scaleX(1); } 100% { transform:scaleX(0); } }
.milo-header-name { display:flex; }.milo-header-name i { display:inline-block; font-style:normal; animation:milo-header-letter 8s linear infinite; }
.milo-header-name i:nth-child(2) { animation-delay:.055s; }.milo-header-name i:nth-child(3) { animation-delay:.11s; }.milo-header-name i:nth-child(4) { animation-delay:.165s; }
@keyframes milo-header-letter { 0%,1.25% { opacity:0; transform:translateY(.75cqw); animation-timing-function:cubic-bezier(.22,1,.36,1); } 9%,94% { opacity:1; transform:translateY(0); } 100% { opacity:0; transform:translateY(.75cqw); } }
.milo-header-close { position:absolute; right:6%; top:35%; width:1.75cqw; height:1.75cqw; }.milo-header-close::before,.milo-header-close::after { position:absolute; top:50%; left:0; width:100%; height:.18cqw; content:""; background:#171717; transform:rotate(45deg); }.milo-header-close::after { transform:rotate(-45deg); }
.milo-work-intro { position:absolute; z-index:1; inset:21% 0 0; display:block; background:#fff; color:#151515; font-family:Inter,Arial,sans-serif; }
.milo-intro-copy { position:absolute; top:4%; left:5%; width:90%; font-size:1.9cqw; line-height:1.35; }
.milo-intro-options { position:absolute; top:25%; left:4.1%; width:91.8%; display:grid; gap:1.05cqw; }
.milo-intro-options > span { display:flex; align-items:center; justify-content:space-between; min-height:4.72cqw; padding:0 1.55cqw; border:1px solid #e5e5e5; border-radius:1.6cqw; background:#fff; font-size:1.57cqw; font-weight:400; line-height:1.7; white-space:nowrap; }
.milo-intro-options > span:first-child { animation:milo-option-select 8s linear infinite; }
.milo-intro-options svg { flex:none; width:2.1cqw; height:2.1cqw; color:#737373; transform:rotate(45deg); }
.milo-work-chat { position:absolute; z-index:2; inset:21% 0 0; display:block; overflow:hidden; background:#fff; opacity:0; pointer-events:none; animation:milo-chat-scene 8s linear infinite; font:1.82cqw/1.43 Inter,Arial,sans-serif; color:#171717; }
.milo-chat-user { position:absolute; top:8%; right:4.1%; width:91.8%; display:flex; align-items:center; gap:1.05cqw; opacity:0; animation:milo-user-message 8s ease-in-out infinite; }
.milo-chat-user>span { flex:1; padding:2.1cqw 2.65cqw; border-radius:1.55cqw; border-top-right-radius:0; background:#171717; color:#fff; }
.product-card--milo .product-card-media .milo-chat-avatar { position:static; flex:none; width:3.8cqw; height:3.8cqw; border-radius:50%; object-fit:cover; max-width:none; transition:none; }
.milo-chat-assistant { position:absolute; top:32%; left:4.1%; right:4.1%; display:flex; align-items:flex-start; gap:1.05cqw; opacity:0; animation:milo-ai-message 8s ease-in-out infinite; }
.milo-chat-logo { flex:none; display:grid; place-items:center; width:3.8cqw; height:3.8cqw; border-radius:50%; background:#000; }
.product-card--milo .product-card-media .milo-chat-logo img { position:static; width:78%; height:78%; max-width:none; object-fit:contain; filter:invert(1); transition:none; }
.milo-chat-loading { position:absolute; left:4.85cqw; top:0; display:flex; align-items:center; justify-content:center; gap:.65cqw; width:7.2cqw; height:5.4cqw; border-radius:1.8cqw; background:#f4f2f1; animation:milo-loading-stage 8s linear infinite; }
.milo-chat-loading i { display:block; width:.8cqw; height:.8cqw; border-radius:50%; background:#666; animation:quacko-chat-typing 1.25s ease-in-out infinite; }
.milo-chat-loading i:nth-child(2) { animation-delay:180ms; }.milo-chat-loading i:nth-child(3) { animation-delay:360ms; }
.milo-chat-reply { display:block; flex:1; padding:2.1cqw 2.65cqw; border-radius:1.55cqw; border-top-left-radius:0; background:#f4f2f1; opacity:0; animation:milo-reply-stage 8s linear infinite; }
@keyframes quacko-chat-typing { 0%,60%,100% { opacity:.35; transform:scale(.72); } 30% { opacity:1; transform:scale(1.18); } }
@keyframes milo-loading-stage { 0%,39%,55%,100% { opacity:0; } 43%,51% { opacity:1; } }
@keyframes milo-reply-stage { 0%,54% { opacity:0; transform:translateY(.5cqw); } 57%,87% { opacity:1; transform:translateY(0); } 92%,100% { opacity:0; } }
.milo-work-mark { position:absolute; z-index:5; left:71.6%; top:68.4%; width:13.44%; aspect-ratio:1; display:grid; place-items:center; overflow:hidden; border-radius:23%; background:#010001; }
.milo-orb-live { position:absolute; top:50%; left:50%; display:block; width:110.808%; height:110.808%; overflow:hidden; border-radius:50%; background:#000; transform:translate(-50%,-50%); }
.milo-orb-rotor { position:absolute; inset:0; display:block; transform:rotate(90deg); }
.milo-orb-lobe { position:absolute; inset:0; display:block; }
.milo-orb-lobe--top { transform:translateY(-.76cqw) scale(.8,-.8); }
.milo-orb-lobe--bottom { transform:translateY(.76cqw) scale(.8); }
.milo-orb-shade { position:absolute; inset:0; background:radial-gradient(circle 4px at 74% 46%,rgba(0,0,0,.55),transparent 100%),radial-gradient(circle 4px at 26% 54%,rgba(0,0,0,.55),transparent 100%); }
@keyframes milo-chat-scene { 0%,30% { opacity:0; } 33%,87% { opacity:1; } 92%,100% { opacity:0; } }
@keyframes milo-option-select { 0%,18%,32%,100% { background:#fff; } 21%,29% { background:#ededed; } }
@keyframes milo-user-message { 0%,32% { opacity:0; transform:translateY(.7cqw); } 38%,87% { opacity:1; transform:translateY(0); } 92%,100% { opacity:0; transform:translateY(0); } }
@keyframes milo-ai-message { 0%,39% { opacity:0; transform:translateY(.7cqw); } 43%,87% { opacity:1; transform:translateY(0); } 92%,100% { opacity:0; transform:translateY(0); } }

@media (prefers-reduced-motion:reduce) { .milo-work-panel { opacity:1; transform:none; } .milo-work-panel,.milo-header-gradient::before,.milo-header-gradient::after,.milo-header-wing,.milo-header-name i,.milo-intro-options > span:first-child,.milo-work-chat,.milo-chat-user,.milo-chat-assistant,.milo-chat-loading,.milo-chat-loading i,.milo-chat-reply { animation:none; } }
@media (max-width:560px) {
  .project-collection:has(.product-feature) .case-feature-grid > .product-card--milo .product-card-media { flex:none; height:auto; aspect-ratio:1; }
  .milo-work-panel { left:7.9%; top:10.8%; width:79.9%; height:77.1%; }
  .milo-work-mark { left:76.6%; top:68.4%; width:21.4%; }
}
