/* Shared service previews and accessible project dialogs. */
.service-showcase { padding: 88px 0; background: #f6f7fc; scroll-margin-top: 100px; }
.service-showcase-shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.service-showcase-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.service-showcase-eyebrow { display: block; font-size: .875rem; line-height: 1.5; font-weight: 700; color: #6440ce; margin-bottom: 12px; }
.service-showcase-heading h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.035em; color: #19142e; margin: 0 0 16px; }
.service-showcase-heading p { max-width: 680px; margin: 0; color: #5e6072; font-size: 1rem; line-height: 1.75; }
.service-showcase-link { display: inline-flex; align-items: center; gap: 16px; color: #5a35bf; font-weight: 700; font-size: 1rem; line-height: 1.5; text-decoration: none; }
.service-showcase-heading > a { flex-shrink: 0; }
.service-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-showcase-grid--eight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-showcase-card { display: block; overflow: hidden; border: 1px solid #e6e4f0; border-radius: 20px; background: white; text-decoration: none; box-shadow: 0 12px 30px #29204a06; transition: transform .2s, box-shadow .2s; }
.service-showcase-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px #29204a14; }
.service-showcase-image { position: relative; background: #efedf7; }
.service-showcase-image > img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.service-showcase-image > span { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 20px; background: #fff; color: #30264d; border-radius: 24px; padding: 8px 14px; font-size: .875rem; font-weight: 600; box-shadow: 0 2px 12px #0001; }
.service-showcase-body { padding: 28px; }
.service-showcase-body h3 { color: #19142e; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 12px; }
.service-showcase-body p { color: #5e6072; font-size: 1rem; line-height: 1.7; margin: 0 0 24px; }
.service-showcase-grid--featured { grid-template-columns: 1fr; }
.service-showcase-grid--featured .service-showcase-card { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.service-showcase-grid--featured .service-showcase-body { padding: 32px; }
.service-showcase-thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 24px; }
.service-showcase-thumbnails img { width: 100%; height: auto; border: 1px solid #e6e4f0; border-radius: 8px; }
.service-showcase-note { margin: 20px 0 0; color: #666477; font-size: .875rem; line-height: 1.6; }
.showcase-popup { box-sizing: border-box; position: fixed; inset: 0; width: min(1100px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: #19142e; box-shadow: 0 30px 100px #17102f40; overflow: auto; overscroll-behavior: contain; }
.showcase-popup::backdrop { background: #17102f99; backdrop-filter: blur(5px); }
.showcase-popup-toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px 12px 40px; background: #fffffff5; border-bottom: 1px solid #eeecf5; }
.showcase-popup-toolbar > span { font-size: .875rem; color: #666477; font-weight: 600; }
.showcase-popup-toolbar button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dedbe9; border-radius: 50%; background: white; color: #19142e; font: 28px/1 sans-serif; cursor: pointer; }
.showcase-popup-content { padding: 32px 40px 40px; }
.showcase-popup-intro { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 36px; }
.showcase-popup-intro > img { width: 100%; height: auto; border-radius: 14px; }
.showcase-popup h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 16px; color: #19142e; }
.showcase-popup h3 { font-size: 1.125rem; line-height: 1.4; margin: 0 0 12px; font-weight: 700; color: #19142e; }
.showcase-popup p, .showcase-popup li { font-size: 1rem; line-height: 1.75; color: #5e6072; }
.showcase-popup p { margin: 0 0 20px; }
.showcase-popup .showcase-popup-summary { font-size: 1.0625rem; margin-bottom: 28px; }
.showcase-popup-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid #e9e6f1; margin-top: 32px; padding-top: 32px; }
.showcase-popup ul { padding-left: 20px; margin: 0; list-style: disc; }
.showcase-popup li { margin-bottom: 8px; }
.showcase-popup li::marker { color: #7246cf; }
.showcase-popup-gallery { margin-top: 32px; }
.showcase-popup-gallery-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.showcase-popup-gallery-heading > span { font-size: .875rem; color: #666477; }
.showcase-popup-screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 24px; }
.showcase-popup-screen { padding: 0; border: 2px solid #eeecf5; border-radius: 12px; overflow: hidden; background: #fff; color: #19142e; cursor: pointer; text-align: left; }
.showcase-popup-screen[aria-pressed="true"] { border-color: #7246cf; background: #f5f1fd; }
.showcase-popup-screen img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; background: #f5f2fa; display: block; }
.showcase-popup-screen > span { display: flex; gap: 10px; padding: 12px; font-size: .875rem; line-height: 1.45; font-weight: 600; }
.showcase-popup-screen small { color: #7246cf; font-size: .875rem; }
.showcase-popup figure { margin: 0; border: 1px solid #e9e6f1; border-radius: 14px; overflow: hidden; }
.showcase-popup figure[hidden] { display: none; }
.showcase-popup figure img { display: block; width: 100%; height: auto; }
.showcase-popup figcaption { padding: 24px; background: #f8f7fc; }
.showcase-popup h4 { font-size: 1.125rem; color: #19142e; margin: 0 0 8px; }
.showcase-popup figcaption p { margin-bottom: 8px; }
.showcase-popup figcaption > span { font-size: .875rem; color: #666477; }
.showcase-popup-context { margin-top: 32px; }
.showcase-popup-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; border-top: 1px solid #e9e6f1; padding-top: 24px; margin-top: 24px; }
.showcase-popup-primary { display: inline-flex; align-items: center; gap: 24px; border-radius: 100px; background: #6136c7; padding: 14px 24px; color: white; text-decoration: none; font-size: 1rem; font-weight: 600; }
.showcase-popup-primary:hover { background: #49269e; color: white; }
.service-showcase a:focus-visible, .showcase-popup :is(a, button):focus-visible { outline: 3px solid #8858dc; outline-offset: 4px; }
@media (max-width: 900px) { .service-showcase-heading { align-items: start; flex-direction: column; gap: 20px; } .service-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-showcase-grid--featured { grid-template-columns: 1fr; } .service-showcase-grid--featured .service-showcase-body { padding: 24px; } }
@media (max-width: 640px) {
 .service-showcase { padding: 56px 0; } .service-showcase-shell { width: calc(100% - 32px); }
 .service-showcase-grid, .service-showcase-grid--featured .service-showcase-card { grid-template-columns: 1fr; }
 .service-showcase-body { padding: 24px; }
 .showcase-popup { width: calc(100% - 16px); max-height: calc(100dvh - 24px); border-radius: 18px; }
 .showcase-popup-toolbar { padding: 10px 16px; } .showcase-popup-content { padding: 24px 20px; }
 .showcase-popup-intro, .showcase-popup-columns { grid-template-columns: 1fr; gap: 24px; }
 .showcase-popup-screen-grid { gap: 8px; } .showcase-popup-screen > span { padding: 8px 5px; font-size: .8125rem; display: block; } .showcase-popup-screen small { display: block; margin-bottom: 4px; }
 .showcase-popup figcaption { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .service-showcase-card { transition: none; } }

.showcase-sample-video { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #171324; }
.showcase-video-transcript { padding: 16px 24px; font-size: .9375rem; line-height: 1.7; background: #f6f4fb; color: #4e4a61; }
.service-showcase-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.showcase-popup-intro > img { max-height: 340px; object-fit: contain; background: #f5f2fa; }
@media (max-width: 640px) { .service-showcase-grid--pair { grid-template-columns: 1fr; } }
