/* Websites showcase on /portfolio: a browser frame with site tabs */
.pws-stage {
    --pws-bg: #0d1b36;
    --pws-accent: #00AECC;
    background: var(--pws-bg);
    border-radius: 24px;
    padding: 20px 20px 0;
    transition: background .5s ease;
    overflow: hidden;
    position: relative;
}
.pws-stage::before {
    content: "";
    position: absolute;
    inset: auto -10% -45% 30%;
    height: 80%;
    background: radial-gradient(closest-side, var(--pws-accent), transparent);
    opacity: .22;
    transition: background .5s ease;
    pointer-events: none;
}
.pws-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 20px;
    position: relative;
}
.pws-tabs::-webkit-scrollbar { display: none; }
.pws-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 30px;
    background: transparent;
    color: rgba(255,255,255,.8);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}
.pws-tab:hover { border-color: #fff; color: #fff; }
.pws-tab.is-active { background: #fff; border-color: #fff; color: var(--header, #0b1b33); }
.pws-tab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pws-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.pws-body {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    position: relative;
}
.pws-browser {
    background: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 40px rgba(0,0,0,.35);
}
.pws-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #eef1f5;
}
.pws-lights { display: flex; gap: 6px; }
.pws-lights i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5de; }
.pws-url {
    flex: 1;
    max-width: 360px;
    padding: 5px 14px;
    border-radius: 30px;
    background: #fff;
    color: #5b6678;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pws-screen {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #dfe5ee;
}
.pws-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity .45s ease;
}
.pws-shot.is-active { opacity: 1; }

.pws-info { padding-bottom: 20px; color: #fff; }
.pws-type { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--pws-accent); transition: color .5s; }
.pws-info h3 { margin: 0 0 14px; color: #fff; font-size: 30px; line-height: 1.2; }
.pws-desc { margin: 0 0 26px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.6; }
.pws-visit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 30px;
    background: var(--pws-accent);
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    transition: background .5s, transform .25s;
}
.pws-visit:hover { transform: translateY(-2px); color: #111; }
.pws-info.is-swapping > * { opacity: 0; transform: translateY(6px); }
.pws-info > * { transition: opacity .2s, transform .2s; }

@media (max-width: 991px) {
    .pws-stage { padding: 16px 16px 0; border-radius: 18px; }
    .pws-body { grid-template-columns: 1fr; gap: 24px; }
    .pws-info { order: -1; padding-bottom: 0; }
    .pws-info h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .pws-stage, .pws-shot, .pws-info > *, .pws-visit { transition: none; }
}
