/* Website designs catalogue (sub/website_designs.php) + full-screen preview (sub/website_design_preview.php).
   Builds on studio.css (idea-page-* hero, studio-button). Brand: docs/NVSS-BRAND-IDENTITY.md. */

/* Catalogue */
.wd-catalogue { padding-block: 56px 96px; }
.wd-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.wd-filter { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid #c8ced2; border-radius: 2px; color: #130b41; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.wd-filter input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wd-filter:hover { border-color: #130b41; }
.wd-filter:has(input:checked) { border-color: #130b41; background: #130b41; color: #fff; }
.wd-filter:has(input:focus-visible) { outline: 2px solid #6da1ee; outline-offset: 2px; }

/* Rows always full: two-up; with an odd count the first shown card is a wide feature (clip left, text right). */
.wd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.wd-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 48px; align-items: center; }
.wd-card--feature .wd-card-body { padding-top: 0; }
@media (max-width: 899px) {
	.wd-grid { grid-template-columns: 1fr; }
	.wd-card--feature { display: block; }
	.wd-card--feature .wd-card-body { padding-top: 22px; }
}
.wd-card[hidden] { display: none; }
.wd-card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #dfe4e2; background: #f4f6f5; }
.wd-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.wd-card:hover .wd-card-image img { transform: scale(1.02); }
.wd-card-body { padding-top: 22px; }
.wd-card-type { margin: 0 0 8px; color: #515a60; font-size: 13px; }
body .Sub .wd-card h3 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.25; }
.wd-card h3 a:hover { text-decoration: underline; text-decoration-color: #6da1ee; text-underline-offset: 6px; }
.wd-card-body > p:not(.wd-card-type) { max-width: 60ch; margin: 10px 0 0; color: #45534b; font-size: 16px; line-height: 1.6; }
.wd-card-actions { margin-top: 22px; }
.wd-card-actions .studio-button { white-space: nowrap; }
.wd-legal { max-width: 80ch; margin: 56px 0 0; color: #6b7379; font-size: 13px; line-height: 1.6; }

.wd-card-clip { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #f4f6f5; }

/* Design view: scroll-through recording, then full-page screenshots */
.wd-tour { margin: 0 0 56px; }
.wd-tour video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid #dfe4e2; background: #0e1214; }
.wd-tour figcaption { margin-top: 12px; color: #515a60; font-size: 14px; }

/* Design view: full-page screenshots in a laptop + phone frame (sub/website_design_view.php) */
.wd-view { padding-block: 40px 96px; }
.wd-view-back { display: inline-flex; gap: 10px; margin-bottom: 28px; color: #130b41; font-size: 14px; }
.wd-view-back:hover { text-decoration: underline; text-decoration-color: #6da1ee; text-underline-offset: 6px; }
.wd-view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 44px; }
body .Sub .wd-view h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.08; }
.wd-view-summary { max-width: 60ch; margin: 14px 0 0; color: #45534b; font-size: 18px; line-height: 1.6; }
.wd-devices { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: end; gap: 48px; }
.wd-devices figure { margin: 0; }
.wd-screen { position: relative; overflow: hidden; background: #f4f6f5; container-type: size; }
.wd-screen img { display: block; width: 100%; height: auto; transform: translateY(0); transition: transform 14s linear; }
.wd-screen:focus-visible { outline: 3px solid #6da1ee; outline-offset: 3px; }
@media (hover: hover) {
	.wd-screen:hover img, .wd-screen:focus img { transform: translateY(calc(-100% + 100cqh)); }
	.wd-hint-touch { display: none; }
}
@media (hover: none) {
	.wd-screen { overflow-y: auto; -webkit-overflow-scrolling: touch; }
	.wd-hint-hover { display: none; }
}
.wd-laptop .wd-screen { aspect-ratio: 16 / 10; border: 14px solid #1d2125; border-bottom-width: 18px; border-radius: 14px 14px 4px 4px; }
.wd-laptop-base { height: 14px; margin: 0 -4%; border-radius: 0 0 14px 14px; background: linear-gradient(#c9ced2, #9aa1a7); }
.wd-phone .wd-screen { aspect-ratio: 9 / 19.5; border: 10px solid #1d2125; border-radius: 34px; }
.wd-view-hint { margin: 22px 0 0; color: #515a60; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .wd-screen img { transition: none; } }
@media (max-width: 900px) {
	.wd-devices { grid-template-columns: 1fr; }
	.wd-phone { width: min(270px, 80%); margin-inline: auto; }
}

/* Recent builds: case studies in /work/<slug>/ */
.wd-builds { padding-block: 72px 96px; border-top: 1px solid #dfe4e2; background: #f4f6f5; }
body .Sub .wd-builds h2 { margin: 0 0 28px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.wd-builds-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.wd-build { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px; border: 1px solid #dfe4e2; border-radius: 2px; background: #fff; color: #130b41; transition: border-color .2s; }
.wd-build:hover { border-color: #130b41; }
.wd-build:focus-visible { outline: 2px solid #6da1ee; outline-offset: 2px; }
.wd-build img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.wd-build-text { display: grid; gap: 4px; }
.wd-build-text strong { font-size: 19px; font-weight: 600; line-height: 1.3; }
.wd-build-text span { color: #515a60; font-size: 14px; }
.wd-build-go { padding-right: 8px; font-size: 18px; transition: transform .2s; }
.wd-build:hover .wd-build-go { transform: translateX(3px); }
@media (max-width: 767px) {
	.wd-builds { padding-block: 48px 64px; }
	.wd-build { grid-template-columns: 1fr; gap: 14px; }
	.wd-build-go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wd-build-go { transition: none; }
	.wd-card-image img { transition: none; }
	.wd-card:hover .wd-card-image img { transform: none; }
}
@media (max-width: 767px) {
	.wd-catalogue { padding-block: 36px 64px; }
	.wd-grid { gap: 44px; }
	body .Sub .wd-card h3 { font-size: 22px; }
}

/* Full-screen preview */
.wd-preview-body { display: flex; flex-direction: column; height: 100dvh; margin: 0; background: #e9ecea; color: #130b41; font-family: Arial, "SUIT", sans-serif; }
.wd-preview-bar { display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 20px; border-bottom: 1px solid #dfe4e2; background: #fff; box-sizing: border-box; flex: 0 0 auto; }
.wd-preview-bar a { color: inherit; text-decoration: none; }
.wd-preview-back { font-size: 14px; white-space: nowrap; }
.wd-preview-back:hover { text-decoration: underline; text-decoration-color: #6da1ee; text-underline-offset: 6px; }
.wd-preview-title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wd-preview-title span { margin-right: 10px; color: #515a60; font-weight: 400; }
.wd-preview-tools { display: flex; align-items: center; gap: 16px; }
.wd-preview-devices { display: flex; border: 1px solid #c8ced2; border-radius: 2px; }
.wd-preview-devices label { position: relative; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.wd-preview-devices label + label { border-left: 1px solid #c8ced2; }
.wd-preview-devices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wd-preview-devices label:has(input:checked) { background: #130b41; color: #fff; }
.wd-preview-devices label:has(input:focus-visible) { outline: 2px solid #6da1ee; outline-offset: -2px; }
.wd-preview-choose { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 2px; background: #130b41; color: #fff !important; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.wd-preview-choose:hover { background: #6da1ee; color: #130b41 !important; }
.wd-preview-choose:focus-visible, .wd-preview-back:focus-visible { outline: 2px solid #6da1ee; outline-offset: 2px; }
.wd-preview-stage { flex: 1 1 auto; display: flex; justify-content: center; min-height: 0; }
.wd-preview-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; transition: width .3s cubic-bezier(.16, 1, .3, 1); }
.wd-preview-frame.is-mobile { width: 390px; max-width: 100%; border-inline: 1px solid #c8ced2; }
@media (prefers-reduced-motion: reduce) { .wd-preview-frame { transition: none; } }
@media (max-width: 767px) {
	.wd-preview-bar { gap: 12px; padding: 0 12px; }
	.wd-preview-title, .wd-preview-devices { display: none; }
	.wd-preview-tools { margin-left: auto; }
}
