/* Each project preview is repeated and blurred behind its sharp foreground. */
.work { scroll-margin-top: 90px; }
.portfolio-toolbar { margin-block: 36px 32px; }
.portfolio-toolbar .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.portfolio-toolbar .filter { display: inline-flex; align-items: center; gap: 14px; }
.portfolio-hint { font-size: 13px; color: var(--muted); }
.work-grid.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 32px; align-items: start; }
.portfolio-project { min-width: 0; }
.portfolio-link { display: block; border-radius: 8px; }
.portfolio-stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; aspect-ratio: 1.43; border-radius: 8px; background: #252628; }
.portfolio-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: blur(20px) brightness(1.35) saturate(1.12); transform: scale(1.2); transition: transform .8s cubic-bezier(.2,.7,.3,1); z-index: -2; }
.portfolio-stage::after, .bot-project-link::after { content: ''; position: absolute; inset: 0; background: #1011120d; pointer-events: none; z-index: -1; }
.portfolio-screen { width: 76%; aspect-ratio: 1.5; overflow: hidden; border: 1px solid #ffffff30; border-radius: 4px; box-shadow: 0 22px 44px #0006, 0 3px 12px #0003; transition: transform .6s cubic-bezier(.2,.7,.3,1), box-shadow .6s; }
.portfolio-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.portfolio-link:is(:hover, :focus-visible) .portfolio-screen { transform: translateY(-4px); box-shadow: 0 28px 48px #0007, 0 3px 12px #0003; }
.portfolio-link:is(:hover, :focus-visible) .portfolio-backdrop, .bot-project-link:is(:hover, :focus-visible) .portfolio-backdrop { transform: scale(1.25); }
.portfolio-visit { position: absolute; right: 14px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; background: #101112b8; color: #fff; border: 1px solid #ffffff38; border-radius: 6px; transition: background .2s,color .2s; }
.portfolio-visit .icon-arrow { width: 17px; height: 17px; }
.portfolio-link:is(:hover, :focus-visible) .portfolio-visit { background: #cfcecb; color: #101112; }
.bot-open > .icon-arrow { flex: none; width: 16px; height: 16px; }
.portfolio-caption { margin-top: 19px; }
.portfolio-caption h3 { font: 500 clamp(23px, 2vw, 29px)/1.2 var(--display); letter-spacing: -.04em; }
.portfolio-caption p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 48ch; margin-top: 8px; }
.portfolio-kind { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
.portfolio-mobelform .portfolio-backdrop { filter: blur(20px) brightness(.95); }
.portfolio-bot { grid-column: 1 / -1; }
.bot-project-link { position: relative; isolation: isolate; display: flex; justify-content: center; overflow: hidden; padding: 60px 8%; border-radius: 8px; background: #18252f; }
.bot-backdrop { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 15% 90%, #47748b99, transparent 60%), radial-gradient(ellipse at 90% 0%, #588caa80, transparent 65%); }
.bot-backdrop::after { content: ''; position: absolute; width: 80%; height: 160%; left: -15%; top: -50%; border: 1px solid #b4d4e51c; border-radius: 50%; transform: rotate(-25deg); box-shadow: 0 0 0 45px #b4d4e508, 0 0 0 90px #b4d4e505; }
.bot-panel { display: grid; grid-template-columns: 140px minmax(0,1fr); align-items: center; gap: 40px; width: 100%; max-width: 1000px; padding: 40px; border: 1px solid #9ec7df26; border-radius: 16px; background: #17222c; box-shadow: 0 24px 50px #07131b60; }
.bot-avatar { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; color: #f3f9fc; background: linear-gradient(145deg,#70b6d8,#2787b5); box-shadow: inset 0 1px 0 #ffffff45, 0 12px 32px #061d2e50; }
.bot-avatar svg { width: 76px; height: 76px; margin-left: 9px; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.bot-project-link:is(:hover,:focus-visible) .bot-avatar svg { transform: translate(3px,-4px) rotate(-5deg); }
.bot-project-body { min-width: 0; }
.bot-project-body .portfolio-kind { color: #9ab5c6; font-size: 12px; margin-bottom: 9px; }
.bot-project-body h3 { font: 500 clamp(26px,3vw,40px)/1.15 var(--display); letter-spacing: -.035em; color: #eef6fa; }
.bot-handle { display: block; margin-top: 10px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: #c6e7f7; overflow-wrap: anywhere; }
.bot-project-body > p { max-width: 45ch; margin-top: 20px; font-size: 14px; line-height: 1.65; color: #b2c2cc; }
.bot-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #a0c3d51c; }
.bot-audience { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 100%; }
.bot-audience strong { font: 500 30px/1 var(--display); letter-spacing: -.045em; color: #d2e6f1; white-space: nowrap; }
.bot-audience > span { min-width: 0; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; color: #c1d1dc; }
.bot-open { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 16px; border-radius: 7px; background: #9cd1eb; color: #10232e; font-size: 12px; font-weight: 600; transition: background .2s; }
.bot-open > span { font-size: 18px; line-height: 1; }
.bot-project-link:is(:hover,:focus-visible) .bot-open { background: #b7e3f7; }
@media (max-width: 1100px) {
 .work-grid.portfolio-grid { gap: 36px 24px; }
 .bot-project-link { padding: 44px 6%; }
 .bot-panel { grid-template-columns: 110px minmax(0,1fr); gap: 28px; padding: 30px; }
 .bot-avatar { width: 110px; height: 110px; }
 .bot-avatar svg { width: 60px; height: 60px; }
}
@media (max-width: 767px) {
 .portfolio-toolbar { margin-block: 26px; gap: 18px; }
 .portfolio-toolbar .filter { gap: 10px; padding: 10px 12px; font-size: 13px; }
 .work-grid.portfolio-grid { grid-template-columns: 1fr; gap: 32px; }
 .portfolio-project { grid-column: 1; }
 .portfolio-screen { width: 78%; }
 .portfolio-caption { margin-top: 15px; }
 .portfolio-caption h3 { font-size: 25px; }
 .portfolio-caption p { font-size: 13px; margin-top: 6px; }
 .portfolio-visit { width: 26px; height: 26px; right: 9px; bottom: 8px; font-size: 18px; }
 .bot-project-link { padding: 28px 6%; }
 .bot-panel { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; border-radius: 12px; }
 .bot-avatar { width: 76px; height: 76px; }
 .bot-avatar svg { width: 42px; height: 42px; margin-left: 5px; }
 .bot-project-body h3 { font-size: 26px; }
 .bot-footer { margin-top: 24px; padding-top: 20px; gap: 24px; }
 .bot-audience strong { font-size: 30px; }
 .bot-audience > span { font-size: 12px; }
 .bot-handle { font-size: 14px; }
 .bot-open { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
 .portfolio-project *, .portfolio-project *::after { transition: none !important; animation: none !important; }
 .portfolio-link:is(:hover, :focus-visible) .portfolio-screen, .bot-project-link:is(:hover,:focus-visible) .bot-avatar svg { transform: none; }
 .portfolio-link:is(:hover, :focus-visible) .portfolio-backdrop, .bot-project-link:is(:hover, :focus-visible) .portfolio-backdrop { transform: scale(1.2); }
}

@media (max-width: 360px) { .bot-audience { flex-direction: column; align-items: flex-start; gap: 8px; } }
