/*
 * Persiss — Websites overview (page-websites.php, /websites/).
 * One flagship band (dark, device scene) then every site as a browser + phone pair showing
 * the real screens; each opens its own case page. Shared frames come from works.css.
 */
.w-crumbs { padding-top: 22px; }
.w-head { padding-block: clamp(48px, 9svh, 96px) clamp(32px, 6svh, 56px); display: grid; gap: 14px; }
.w-head h1 { font-family: var(--f-ja); font-size: clamp(34px, 8.4vw, 72px); line-height: 1.25; }
.w-head p { color: var(--ink-soft); max-width: 34em; font-size: clamp(14.5px, 3.8vw, 16.5px); }

/* devices drawn in CSS around the real screenshots */
.browser { position: relative; border-radius: 12px; overflow: hidden; background: var(--screen); box-shadow: 0 1px 0 rgba(var(--ink-rgb), .06), 0 18px 40px -18px rgba(var(--ink-rgb), .35); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #2A2622; direction: ltr; }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #5A5248; }
.browser__bar span { margin-left: 8px; flex: 1; min-width: 0; height: 15px; border-radius: 999px; background: #3A342D; color: #B3A99A; font: 500 9.5px/15px var(--f-ui); letter-spacing: .04em; padding-inline: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: size; background: var(--screen); }
.browser__screen > img { width: 100%; }
.browser__screen.scrolls > img { animation: pageScroll var(--dur, 24s) linear infinite alternate; animation-play-state: paused; }
.browser__screen.scrolls.play > img { animation-play-state: running; }
.wpair:hover .browser__screen.scrolls > img { animation-play-state: paused; }
.phone { position: absolute; right: 4%; bottom: -8%; width: 22%; min-width: 74px; border: 5px solid #23201C; border-radius: 18px; overflow: hidden; background: var(--screen); box-shadow: 0 18px 30px -14px rgba(var(--ink-rgb), .55); transform: translateY(calc((1 - var(--e, 1)) * 40px)); }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.phone .browser__screen { aspect-ratio: 390 / 844; }
.phone .browser__screen > img { aspect-ratio: auto; object-fit: initial; }
.wpair { position: relative; display: block; padding-bottom: 8%; }

/* flagship */
.flag { background: var(--panel); color: var(--on-panel); border-radius: 28px; margin-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px)); overflow: hidden; }
.flag__in { display: grid; gap: clamp(28px, 5vw, 56px); padding-block: clamp(40px, 7vw, 80px); align-items: center; }
@media (min-width: 960px) { .flag__in { grid-template-columns: 5fr 7fr; } }
.flag .eyebrow { color: var(--on-panel-accent); }
.flag h2 { font-family: var(--f-ja); font-size: clamp(28px, 6.4vw, 50px); line-height: 1.4; margin-top: 10px; }
.flag p { color: var(--on-panel-soft); margin-top: 14px; max-width: 30em; font-size: 15px; }
.flag__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.flag__chips span { font-size: 12px; padding: 3px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(var(--on-panel-rgb), .22); color: var(--on-panel); }
.flag__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill--ghost { box-shadow: inset 0 0 0 1.5px rgba(var(--on-panel-rgb), .35); color: var(--on-panel); }
.pill--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-panel); }
.flag__media { position: relative; min-width: 0; }
.flag__scene { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: var(--ar, 1586 / 992); }
.flag__scene img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--e, 1) * .12)); }
.flag__phone { position: absolute; right: -2%; bottom: -14%; width: 30%; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7); transform: translateY(calc((1 - var(--e, 1)) * 70px)); }
.flag__phone img { width: 100%; }
.flag__right { min-width: 0; }
.flag__note { font-size: 11.5px; color: var(--on-panel-soft); margin-top: 18px; max-width: 64%; }

/* grid of sites */
.wlist { padding-block: clamp(72px, 12svh, 130px) 0; }
.wlist__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: clamp(28px, 5svh, 48px); }
.wlist__head h2 { font-family: var(--f-ja); font-size: clamp(22px, 5.4vw, 34px); }
.wlist__head > span { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.wsites { display: grid; gap: clamp(56px, 9svh, 88px) 40px; }
@media (min-width: 860px) { .wsites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wsite { display: grid; gap: 22px; min-width: 0; align-content: start; }
.wsite__meta { display: grid; gap: 6px; }
.wsite__meta h3 { font-family: var(--f-ja); font-size: clamp(19px, 4.8vw, 24px); }
.wsite__meta p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.wsite__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.wsite__lang { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); }
.ext { font-size: 13px; color: var(--muted); direction: ltr; }
a.ext:hover { color: var(--accent); }
.warchive { margin-top: clamp(72px, 12svh, 120px); }
.warchive__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
@media (min-width: 860px) { .warchive__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.warchive__grid figure { display: grid; gap: 8px; }
.warchive__grid .frame { aspect-ratio: 4 / 3; border-radius: 999px 999px 14px 14px; }
.warchive__grid figcaption { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.warchive__grid a:hover figcaption { color: var(--accent); }

.cta { text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: clamp(90px, 15svh, 150px); }
.cta h2 { font-family: var(--f-ja); font-size: clamp(22px, 5.6vw, 40px); line-height: 1.55; }
.cta p { color: var(--ink-soft); max-width: 30em; }
.w-foot { font-size: 12px; color: var(--muted); padding-bottom: clamp(32px, 6svh, 56px); }

html[lang="fa"] :is(.wsite__meta h3, .wsite__meta p, .w-foot, .flag__note) { direction: rtl; }

@media (prefers-reduced-motion: reduce) {
	.browser__screen.scrolls > img { animation: none; }
	.browser__screen.scrolls { overflow-y: auto; }
	.phone, .flag__phone, .flag__scene img { transform: none; }
}
