/* Lucent — work showcase: browser + phone stages, homepage hover list.
   Stage sizes use container units (cqw) so one component works at any size. */

/* ---------- Stage (shared neutral studio backdrop) ---------- */
.stage{container-type:inline-size;position:relative;overflow:hidden;aspect-ratio:16/11.5;border-radius:12px;
  background:#f3f4f6;border:1px solid rgba(10,10,10,.08)}
.bframe{position:absolute;left:6cqw;top:8cqw;width:72cqw;height:56cqw;border-radius:1.8cqw;background:#fff;overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 2.5cqw 6cqw -2cqw rgba(10,10,10,.22),0 0 0 .18cqw rgba(10,10,10,.08)}
.bbar{flex:none;height:4.2cqw;background:#f1f2f4;display:flex;align-items:center;gap:.9cqw;padding:0 2cqw;border-bottom:.16cqw solid rgba(10,10,10,.07)}
.bbar i{width:1.2cqw;height:1.2cqw;border-radius:50%;background:#d1d4da}
.bbar b{flex:1;max-width:34cqw;margin:0 auto;transform:translateX(-2cqw);height:2.6cqw;border-radius:99px;background:#fff;color:#6d6d73;font:500 1.45cqw/2.6cqw Inter,sans-serif;text-align:center;overflow:hidden;white-space:nowrap}
.bview,.pview{position:relative;overflow:hidden;background:#f4f3f0}
.bview{flex:1}
.bview img,.pview img{width:100%;height:auto;will-change:transform}
.pframe{position:absolute;width:23.5cqw;height:49cqw;border-radius:2.2cqw;background:#fff;padding:0;overflow:hidden;
  box-shadow:0 2.4cqw 5.5cqw -1.6cqw rgba(10,10,10,.22),0 0 0 .16cqw rgba(10,10,10,.09)}
.pview{width:100%;height:100%;border-radius:inherit}

/* layouts */
.l-both .pframe{right:4cqw;bottom:-7cqw}
.l-phones .pframe:nth-child(1){left:22cqw;top:8cqw;width:27cqw;height:56cqw;transform:rotate(-4deg)}
.l-phones .pframe:nth-child(2){left:52cqw;top:18cqw;width:27cqw;height:56cqw;transform:rotate(4deg)}
.l-phone .pframe{left:50%;top:7cqw;width:29cqw;height:60cqw;transform:translateX(-50%)}
.l-phone::before{content:"";position:absolute;left:50%;top:50%;width:62cqw;height:62cqw;border-radius:50%;transform:translate(-50%,-50%);
  border:.3cqw solid rgba(255,255,255,.22);box-shadow:0 0 0 7cqw rgba(255,255,255,.05),0 0 0 14cqw rgba(255,255,255,.03)}

/* ---------- Work page: cases (uniform single-screen crop + muted tonal calm) ---------- */
.cases{display:grid;grid-template-columns:repeat(2,1fr);gap:52px 28px}
.cases .stage{aspect-ratio:16/10.8;background:#f4f5f7}
.cases .bframe{left:6.5cqw;right:6.5cqw;top:7.5cqw;bottom:0;width:87cqw;height:auto;border-radius:1.8cqw 1.8cqw 0 0;
  box-shadow:0 2cqw 5cqw -2cqw rgba(10,10,10,.16),0 0 0 .16cqw rgba(10,10,10,.07)}
.cases .pframe{display:none}
.cases:not(.filtered) .case:first-child{grid-column:1 / -1}
.cases:not(.filtered) .case:first-child .stage{aspect-ratio:16/8.6}
.cases:not(.filtered) .case:first-child .bframe{left:10cqw;right:10cqw;width:80cqw;top:6cqw;bottom:0;height:auto}
@media (hover:hover){
  .cases .bview{filter:saturate(.32) contrast(.97);transition:filter .45s cubic-bezier(.2,.7,.2,1)}
  .case:hover .bview,.case:focus-visible .bview{filter:saturate(1) contrast(1)}
}
@media (hover:none){
  .cases .bview{filter:saturate(.82)}
}
.case{display:block}.case[hidden]{display:none}
.case .stage{border-radius:12px;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.case:hover .stage,.case:focus-visible .stage{transform:translateY(-3px)}
.case .go{position:absolute;right:18px;top:18px;width:40px;height:40px;border-radius:50%;background:#fff;color:#0a0a0a;border:1px solid rgba(10,10,10,.08);display:grid;place-items:center;opacity:0;transform:scale(.85);transition:.25s;z-index:3}
.case:hover .go,.case:focus-visible .go{opacity:1;transform:none}
.case .go .lucide-icon{width:18px;height:18px;vertical-align:0}
.case-meta{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-top:14px;padding:0 4px}
.case-meta h3{font-size:24px;letter-spacing:-.03em;font-weight:600;line-height:1.15;color:var(--ink)}
.case-meta .cat{display:block;margin-top:4px;font-size:13.5px;color:var(--muted)}
.result{text-align:right;flex:none}
.result b{display:block;font-size:14px;letter-spacing:-.01em;font-weight:600;line-height:1.2;color:var(--ink)}
.result small{display:block;margin-top:4px;font-size:13px;color:var(--muted);max-width:26ch;margin-left:auto}

/* ---------- Homepage: hover list ---------- */
.wl{border-top:1px solid var(--line-dark)}
.wl-row{display:grid;grid-template-columns:108px 1.4fr 1fr 1.25fr 40px;gap:24px;align-items:center;padding:28px 0;border-bottom:1px solid var(--line-dark);transition:opacity .3s,padding .3s}
.wl-thumb{width:108px;height:74px;border-radius:12px;overflow:hidden;border:1px solid var(--line-dark);background:#121215;flex:none}
.wl-thumb img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.wl:hover .wl-row:not(:hover){opacity:.45}
.wl-row:hover,.wl-row:focus-visible{padding-left:14px}
.wl-row h3{font-size:clamp(28px,4.2vw,60px);letter-spacing:-.04em;font-weight:500;line-height:1}
.wl-row .cat{font-size:14px;color:var(--muted)}
.wl-row .res{font-size:14px;color:var(--muted)}
.wl-row .res b{display:block;color:var(--ink);font-weight:600;font-size:16px;letter-spacing:-.02em;margin-bottom:2px}
.wl-row .go{width:40px;height:40px;border-radius:50%;border:1px solid var(--line-dark);display:grid;place-items:center;transition:.3s}
.wl-row:hover .go,.wl-row:focus-visible .go{background:var(--accent);border-color:var(--accent);color:#fff}
.wl-row .go .lucide-icon{width:18px;height:18px;vertical-align:0}
.wl-row .stage{display:none}

.peek{position:fixed;left:0;top:0;width:min(400px,30vw);aspect-ratio:16/11.5;pointer-events:none;z-index:30;opacity:0;transition:opacity .25s;will-change:transform}
.peek.show{opacity:1}
.peek-layer{position:absolute;inset:0;opacity:0;transform:scale(.94);transition:opacity .25s,transform .35s cubic-bezier(.2,.7,.2,1)}
.peek-layer.on{opacity:1;transform:none}
.peek-layer .stage{width:100%;height:100%;box-shadow:0 30px 70px -24px rgba(0,0,0,.5)}

@media (max-width:1000px),(hover:none){
  .peek{display:none}
  .cases{grid-template-columns:1fr;gap:40px}
  .cases:not(.filtered) .case:first-child{grid-column:auto}
  .cases:not(.filtered) .case:first-child .stage{aspect-ratio:16/10.8}
  .cases:not(.filtered) .case:first-child .bframe{left:6.5cqw;right:6.5cqw;top:7.5cqw;bottom:0;width:87cqw;height:auto}
  .wl-row{grid-template-columns:1fr 40px;grid-template-areas:"name go" "cat go" "res res" "stage stage";gap:8px 16px;padding:28px 0}
  .wl-thumb{display:none}
  .wl:hover .wl-row:not(:hover){opacity:1}
  .wl-row:hover{padding-left:0}
  .wl-row h3{grid-area:name}.wl-row .cat{grid-area:cat}.wl-row .res{grid-area:res;margin-top:6px}.wl-row .go{grid-area:go;align-self:start}
  .wl-row .stage{display:block;grid-area:stage;margin-top:16px;width:100%}
}
@media (max-width:560px){.case-meta{flex-direction:column;align-items:flex-start}.result{text-align:left}.result small{margin-left:0}}
@media (hover:none){.case .go{display:none}}
@media (prefers-reduced-motion:reduce){.peek-layer,.peek,.case .stage{transition:none}}


/* TUNU: keep the browser preview near its source width so fine type stays crisp. */


/* TUNU phone artwork already includes its own device shell.
   Keep the same showcase position as the shared l-both layout. */
.tunu-stage .pframe{background:transparent;padding:0;box-shadow:none}
.tunu-stage .pframe::before,.tunu-stage .pframe::after{display:none}
.tunu-stage .pview{border-radius:0;background:transparent;overflow:visible}
.tunu-stage .pview img{width:100%;height:100%;object-fit:contain;display:block}
 
/* Multi-part full-page screenshots scroll as one seamless surface. */
.scroll-stack{width:100%;display:block;line-height:0;will-change:transform}
.scroll-stack img{display:block;width:100%;height:auto;margin:0}


/* Photo-led mockups (Takimu, Kibaba): full-bleed framed showcase with subtle zoom */
.l-photo{background:#121215;padding:0}
.l-photo>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
}
.case:hover .l-photo>img{transform:scale(1.03)}

/* Filter count badge */
.filters button{display:inline-flex;align-items:center;gap:8px}
.filters .fc{font:500 11px 'JetBrains Mono',monospace;opacity:.55}
.filters button[aria-pressed=true] .fc{opacity:.8}

/* Case card hover pill */
.case-badge{position:absolute;left:18px;bottom:18px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:99px;background:rgba(13,13,15,.78);backdrop-filter:blur(8px);color:#fff;font:500 11px 'JetBrains Mono',monospace;letter-spacing:.06em;text-transform:uppercase;opacity:0;transform:translateY(6px);transition:opacity .28s,transform .28s}
.case:hover .case-badge,.case:focus-visible .case-badge{opacity:1;transform:none}
.case-badge.live::before{content:"";width:6px;height:6px;border-radius:50%;background:#3fcf6b;box-shadow:0 0 0 3px rgba(63,207,107,.25)}

/* ---------- Dedicated Case Study Pages ---------- */
.cs-meta-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:40px;padding-top:28px;border-top:1px solid var(--line-dark)}
.cs-meta-item span{display:block;font-size:12px;font-weight:500;color:var(--muted);margin-bottom:6px}
.cs-meta-item b,.cs-meta-item a{font-size:15px;font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:6px}
.cs-meta-item a:hover{text-decoration:underline;text-underline-offset:3px}

.cs-hero-stage{padding:48px 64px 0;max-width:1408px;margin:0 auto}
.cs-hero-stage .stage{aspect-ratio:16/9}
.cs-hero-stage .bframe{left:8cqw;top:5.5cqw;width:62cqw;height:45cqw}
.cs-hero-stage .pframe{right:8cqw;bottom:-5cqw;width:20cqw;height:42cqw}

.cs-story{display:grid;grid-template-columns:.85fr 1.15fr;gap:56px;padding:64px 0;border-top:1px solid var(--line-dark);align-items:start}
.cs-story:first-child{border-top:0;padding-top:0}
.cs-story-label span{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-bottom:10px}
.cs-story-label h2{font-size:clamp(28px,3.2vw,42px);letter-spacing:-.04em;line-height:1.08}
.cs-story-body p{font-size:16.5px;line-height:1.65;color:var(--ink-2);max-width:60ch;margin-bottom:16px}
.cs-story-body p:last-child{margin-bottom:0}
.cs-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin-top:24px}
.cs-chips li{font-size:13px;font-weight:500;padding:8px 14px;border-radius:99px;border:1px solid var(--line-dark);background:var(--surface)}

.cs-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:24px}
.cs-shot{margin:0;display:flex;flex-direction:column;gap:12px}
.cs-shot.full{grid-column:1 / -1}
.cs-shot-frame{position:relative;border-radius:12px;overflow:hidden;background:#f3f4f6;border:1px solid rgba(10,10,10,.08);aspect-ratio:16/11;display:grid;place-items:center}
.cs-shot.full .cs-shot-frame{aspect-ratio:16/9}
.cs-shot-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center}
.cs-shot-frame.contain img{object-fit:contain;padding:24px}
.cs-shot figcaption{font-size:13.5px;color:var(--muted)}

.cs-next{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:48px 0;border-top:1px solid var(--line-dark);border-bottom:1px solid var(--line-dark);transition:padding .25s}
.cs-next:hover{padding-left:14px}
.cs-next>div>span{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}
.cs-next strong{font-size:clamp(28px,4vw,56px);letter-spacing:-.04em;font-weight:600;line-height:1}
.cs-next-arrow{width:52px;height:52px;border-radius:50%;border:1px solid var(--ink);color:var(--ink);display:grid;place-items:center;flex:none;transition:.25s}
.cs-next-arrow svg{width:20px;height:20px;vertical-align:0}
.cs-next:hover .cs-next-arrow{background:var(--ink);color:#fff}

@media (max-width:1199px){
  .cs-hero-stage{padding:36px 32px 0}
}
@media (max-width:900px){
  .cs-meta-bar{grid-template-columns:1fr 1fr;gap:20px}
  .cs-story,.cs-gallery{grid-template-columns:1fr;gap:28px}
  .cs-shot.full{grid-column:auto}
  .cs-hero-stage{padding:28px 22px 0}
  .cs-hero-stage .stage{aspect-ratio:16/11.5}
  .cs-hero-stage .bframe{left:6cqw;top:8cqw;width:72cqw;height:56cqw}
  .cs-hero-stage .pframe{right:4cqw;bottom:-7cqw;width:24cqw;height:50cqw}
}
@media (prefers-reduced-motion:reduce){
  .case-badge,.l-photo>img,.cs-next{transition:none}
}
