.ps-case-page { --ps-nav-space:calc(114px + env(safe-area-inset-top,0px)); }
body.kwd-navigation.ps-case-page:not(.mobile-nav-open) #topbar#topbar { position:absolute!important; }
body.kwd-navigation.elite-detail-page.ps-case-page #tresc { padding-top:var(--ps-nav-space); background:linear-gradient(115deg,#0b1823,#070e15 75%) top / 100% var(--ps-nav-space) no-repeat; }
.ps-case-page .hw-case { --hw-ink:#302318; --hw-muted:#6a5a4b; --hw-accent:#916f3c; --hw-line:#80684c36; color:var(--hw-ink); background:#ebe3d4; }
.ps-wrap { width:min(1480px,calc(100% - 8vw)); margin-inline:auto; }
.ps-opening { padding-block:12px clamp(36px,5vw,74px); background:#ebe3d4; color-scheme:light; }
.ps-trail { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:12px; color:#74634f; font-size:12px; }
.ps-trail a { display:inline-flex; align-items:center; gap:10px; min-height:32px; }
.ps-opening__head { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); align-items:center; gap:20px 5vw; margin-bottom:22px; }
.ps-opening .hw-case__label { color:#8a6236; }
.ps-case-page .ps-opening h1 { max-width:none; margin-top:10px; color:#302318; font-size:clamp(32px,3.4vw,52px); font-weight:400; line-height:1.1; letter-spacing:-.045em; }
.ps-opening__scope > p { max-width:40ch; color:#6b5743; font-size:14px; line-height:1.55; }
.ps-opening__scope dl { display:flex; flex-wrap:wrap; gap:8px 18px; margin:12px 0 0; font-size:10px; line-height:1.4; }
.ps-opening__scope dl > div { display:flex; gap:6px; }
.ps-opening__scope dt { color:#7a6855; }
.ps-opening__scope dd { margin:0; }
.hw-case figure.ps-hero-scene { width:min(100%,calc((100svh - 280px)*1.7768)); margin-inline:auto; overflow:hidden; border:1px solid #70563b42; border-radius:5px; background:#463024; }
.ps-opening__links { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px 30px; max-width:1150px; margin:22px auto 0; color:#77634c; font-size:12px; }
.ps-opening__links a { display:inline-flex; align-items:center; gap:18px; min-height:36px; border-bottom:1px solid #8a623657; color:#76512a; }
.ps-section { padding-block:clamp(62px,8vw,120px); scroll-margin-top:30px; }
.ps-section--light { --hw-ink:#302318; --hw-muted:#6a5a4b; --hw-accent:#916f3c; --hw-line:#80684c36; color:var(--hw-ink); background:#f7f2e8; color-scheme:light; }
.ps-section--cream { --hw-ink:#302318; --hw-muted:#6a5a4b; --hw-accent:#916f3c; --hw-line:#80684c36; color:var(--hw-ink); background:#e9dfcc; color-scheme:light; }
.ps-section--dark { --hw-ink:#f3e9d7; --hw-muted:#c7b69d; --hw-accent:#d6b46d; --hw-line:#e0c29230; color:var(--hw-ink); background:#21170f; color-scheme:dark; }
.ps-section--wine { --hw-ink:#f4e8d7; --hw-muted:#d0bba8; --hw-accent:#dfbd78; --hw-line:#dfbd7830; color:var(--hw-ink); background:#33201d; color-scheme:dark; }
.ps-section--contact { --hw-ink:#f3e9d7; --hw-muted:#c7b69d; --hw-accent:#d6b46d; --hw-line:#e0c29230; color:var(--hw-ink); background:#281c13; color-scheme:dark; }
.ps-section-head { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,1fr); align-items:end; gap:28px 7vw; margin-bottom:clamp(36px,4.5vw,68px); }
.ps-case-page .ps-heading { margin-top:16px; font-size:clamp(32px,4.2vw,64px); font-weight:400; line-height:1.11; letter-spacing:-.04em; text-wrap:balance; }
.ps-section-head > p { max-width:54ch; color:var(--hw-muted); font-size:clamp(15px,1.3vw,18px); line-height:1.78; }
.ps-hero-scene :is(a,img), .ps-screen :is(a,img), .ps-framed-screen :is(a,img), .ps-workspace-scene :is(a,img), .ps-language-screen :is(a,img), .ps-mobile-screen :is(a,img) { display:block; width:100%; height:auto; }
.ps-browser { overflow:hidden; border:1px solid #87694442; border-radius:6px; background:#fff; box-shadow:0 28px 65px #47301c16; }
.ps-browser__bar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:37px; padding-inline:18px; border-bottom:1px solid #89724f38; background:#e8ddc8; color:#69533b; font-size:11px; }
.ps-browser__bar > span:first-child { width:5px; height:5px; border-radius:50%; background:#a89373; box-shadow:9px 0 #a89373,18px 0 #a89373; }
.ps-browser__bar > span:last-child { justify-self:end; }
.ps-site-link { display:inline-flex; align-items:center; justify-content:space-between; gap:25px; min-height:48px; margin-top:28px; padding-bottom:4px; border-bottom:1px solid var(--hw-accent); color:var(--hw-ink); font-size:14px; }
.ps-framed-screen { overflow:hidden; padding:clamp(18px,2.8vw,42px); border:1px solid var(--hw-line); background:#ffffff09; }
.ps-section--cream .ps-framed-screen { background:#f5eddf; }
.ps-framed-screen figcaption { margin-top:18px; max-width:65ch; color:var(--hw-muted); font-size:12px; line-height:1.7; }
.ps-detail-head { display:flex; justify-content:space-between; align-items:start; gap:20px 40px; margin-top:clamp(46px,6vw,88px); padding-top:26px; padding-bottom:28px; border-top:1px solid var(--hw-line); }
.ps-detail-head > p:last-child { max-width:38ch; color:var(--hw-muted); font-size:14px; line-height:1.7; }
.ps-story-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 5vw; margin-top:clamp(38px,5vw,70px); }
.ps-story-notes > div { padding-top:22px; border-top:1px solid var(--hw-line); }
.ps-story-notes span { color:#866033; font-size:11px; letter-spacing:.08em; }
.ps-story-notes h3 { margin:18px 0 12px; font-size:22px; font-weight:400; line-height:1.3; }
.ps-story-notes p { max-width:35ch; color:var(--hw-muted); font-size:14px; line-height:1.75; }
.ps-workspace-scene { margin-bottom:clamp(36px,5vw,72px)!important; overflow:hidden; border:1px solid var(--hw-line); border-radius:5px; background:#473224; }
.ps-language-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,3vw,44px); }
.ps-language-label { margin-bottom:16px!important; color:#80633e; font-size:12px; letter-spacing:.12em; }
.ps-language-screen { overflow:hidden; padding:clamp(14px,1.5vw,24px); border:1px solid var(--hw-line); background:#f4ebdc; }
.ps-mobile-detail { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr); align-items:center; gap:clamp(36px,8vw,110px); margin-top:clamp(54px,8vw,114px); padding-top:clamp(44px,6vw,86px); border-top:1px solid var(--hw-line); }
.ps-mobile-detail h3 { margin:22px 0 28px; max-width:16ch; font-size:clamp(32px,4.5vw,64px); font-weight:400; line-height:1.1; letter-spacing:-.04em; }
.ps-mobile-detail p:not(.hw-case__label) { max-width:45ch; color:var(--hw-muted); font-size:16px; line-height:1.75; }
.hw-case figure.ps-mobile-screen { width:min(100%,310px); justify-self:center; overflow:hidden; border:10px solid #4b392a; border-radius:32px; background:#21170f; box-shadow:0 26px 70px #0003; }
.ps-end { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:28px 40px; margin-top:clamp(54px,7vw,104px); padding-top:36px; border-top:1px solid var(--hw-line); }
.ps-end > p { font-size:clamp(30px,3.5vw,52px); line-height:1.12; letter-spacing:-.04em; }
.ps-end__actions { display:grid; justify-items:start; gap:16px; }
.ps-end__actions > a:not(.ps-end__site) { display:inline-flex; align-items:center; gap:24px; min-height:54px; padding:14px 20px; border-radius:4px; background:#dec184; color:#302318; font-size:14px; }
.ps-end__site { display:inline-flex; align-items:center; gap:24px; min-height:44px; border-bottom:1px solid #dec18475; color:#e7ceb1; font-size:13px; }
.ps-end__back { display:inline-flex; align-items:center; gap:9px; grid-column:1 / -1; min-height:40px; color:#c7b69d; font-size:12px; }
.ps-case-page :is(a,button):focus-visible { outline:2px solid currentColor; outline-offset:5px; }
body.ps-case-page:has(#topbar:not(.is-condensed)) .dock { visibility:hidden!important; }
body.ps-case-page:has(.hw-gallery[open]) { overflow:hidden; }
body.ps-case-page .hw-gallery { --hw-ink:#f3e9d7; --hw-muted:#c7b69d; --hw-line:#e0c29230; }
body.ps-case-page .hw-gallery[open], body.ps-case-page .hw-gallery[open] * { cursor:auto!important; }
body.ps-case-page .hw-gallery[open] button, body.ps-case-page .hw-gallery[open] button * { cursor:pointer!important; }
body.ps-case-page:has(.hw-gallery[open]) .kwd-cursor { visibility:hidden; }
@media(max-width:870px) { .ps-case-page { --ps-nav-space:calc(84px + env(safe-area-inset-top,0px)); } }
@media(max-width:760px) {
 .ps-opening__head,.ps-section-head,.ps-story-notes,.ps-language-grid,.ps-mobile-detail,.ps-end { grid-template-columns:1fr; }
 .hw-case figure.ps-hero-scene { width:100%; }
 .ps-opening__head { gap:18px; }
 .ps-opening__links { font-size:11px; }
 .ps-detail-head { flex-direction:column; }
 .ps-end__actions > a { gap:16px; }
 .ps-section--contact { padding-bottom:110px; }
}
@media(min-width:761px) and (max-height:650px) { .hw-case figure.ps-hero-scene { width:100%; } }
