/* Resources page; portfolio and inquiry styles remain shared. */
.resources-main{padding-top:65px;padding-bottom:64px}
.resources-intro{max-width:850px;padding-bottom:42px}
.resources-intro h1{font-size:clamp(52px,7.5vw,108px);line-height:1.02;letter-spacing:-.055em;margin:22px 0 28px}
.resources-intro>p:last-child{max-width:600px;color:#aaa;font-size:18px;line-height:1.65}
.resource-categories{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.resource-categories a{border:1px solid #333;border-radius:30px;padding:12px 18px;font-size:14px;text-decoration:none}
.resource-categories a:hover{background:#fff;color:#000}
.resource-section{padding:48px 0;border-bottom:1px solid #292929;scroll-margin-top:120px}
.resource-heading h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.035em;margin:0 0 12px}
.resource-heading p{color:#999;line-height:1.6;margin:0 0 26px}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.resource-empty{grid-column:1/-1;padding:28px;border:1px solid #292929;border-radius:6px;color:#999;background:#0a0a0a;margin:0}
.resource-card{display:flex;flex-direction:column;padding:24px;background:#0a0a0a;border:1px solid #292929;border-radius:6px}
.resource-preview{width:100%;aspect-ratio:16/9;object-fit:contain;background:#111;margin-bottom:20px;border-radius:3px}
.resource-card h3{font-size:22px;line-height:1.25;margin:0 0 12px}
.resource-description{color:#aaa;line-height:1.6;margin:0 0 18px}
.resource-meta{color:#888;font-size:13px;line-height:1.8;margin:0 0 22px}
.resource-card .button{margin-top:auto;width:100%;text-align:center;justify-content:center}
.resource-license{color:#888;font-size:12px;line-height:1.5;margin:14px 0 0}
#main-nav a[aria-current="page"]{color:#fff;text-decoration:underline;text-underline-offset:6px}
@media(min-width:701px) and (max-width:1100px){.site-header{flex-wrap:wrap;gap:16px}#main-nav{gap:16px}.header-actions{margin-left:auto}}
@media(max-width:800px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.resources-main{padding-top:36px}.resources-intro{padding-bottom:24px}.resources-intro>p:last-child{font-size:16px}.resource-grid{grid-template-columns:1fr}.resource-section{padding:36px 0}.resource-categories{gap:8px}.resource-categories a{font-size:12px;padding:10px 13px}}

/* Download pack and preview hover motion. */
.resource-title-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:12px}
.resource-title-row h2{margin:0}
.download-all{white-space:nowrap;flex-shrink:0}
.resource-preview{transition:transform .24s ease;transform-origin:center}
@media(hover:hover) and (pointer:fine){.resource-preview:hover{transform:scale(1.045)}}
.resource-card:focus-within .resource-preview{transform:scale(1.045)}
@media(prefers-reduced-motion:reduce){.resource-preview{transition:none}.resource-preview:hover,.resource-card:focus-within .resource-preview{transform:none}}

/* Space between category headings and downloads after removing descriptions. */
.resource-heading{margin-bottom:26px}

/* Compact expandable resource sections. */
.resource-section{padding:0;scroll-margin-top:120px}
.resource-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0;cursor:pointer;list-style:none}
.resource-disclosure>summary::-webkit-details-marker{display:none}
.resource-disclosure>summary h2{font-size:clamp(24px,3vw,36px);letter-spacing:-.035em;line-height:1.2;margin:0}
.resource-chevron{width:12px;height:12px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease;flex-shrink:0;margin-right:6px}
.resource-disclosure[open]>summary .resource-chevron{transform:rotate(225deg)}
.resource-disclosure>summary:hover{color:#ccc}
.resource-disclosure>summary:focus-visible{outline:2px solid #fff;outline-offset:5px;border-radius:3px}
.resource-content{padding:0 0 30px}
.resource-pack{display:flex;justify-content:flex-end;margin-bottom:24px}
@media(max-width:700px){.resource-section{padding:0}.resource-disclosure>summary{padding:22px 0}.resource-content{padding-bottom:24px}}
@media(prefers-reduced-motion:reduce){.resource-chevron{transition:none}}

/* Linked website previews, with a readable fallback if screenshots are unavailable. */
.software-preview{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#141414;border:1px solid #292929;border-radius:3px;margin-bottom:20px;text-decoration:none}
.software-preview-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;color:#aaa;font-size:14px;overflow-wrap:anywhere;text-align:center}
.software-screenshot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;opacity:0;transition:opacity .2s ease,transform .24s ease}
.software-preview.is-loaded .software-screenshot{opacity:1}
.software-preview.is-loaded .software-preview-fallback{visibility:hidden}
.software-preview:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(hover:hover) and (pointer:fine){.software-preview:hover .software-screenshot{transform:scale(1.045)}}
@media(prefers-reduced-motion:reduce){.software-screenshot{transition:none}.software-preview:hover .software-screenshot{transform:none}}

/* Native click-to-play previews; media bytes are not preloaded. */
.resource-video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#111;border-radius:3px;margin-bottom:20px}
.resource-audio{display:block;width:100%;margin-bottom:20px}
.resource-media-error{font-size:13px;line-height:1.6;color:#aaa;margin:0 0 18px}

.resource-video-thumbnail{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#141414;border:1px solid #333;border-radius:4px;padding:0;margin:0 0 20px;color:#fff}
.resource-video-poster{width:100%;height:100%;object-fit:contain}
.resource-video-placeholder{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:22px 16px;font-size:18px;font-weight:700;background:linear-gradient(135deg,#222,#080808)}
.has-thumbnail .resource-video-placeholder{display:none}
.resource-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:56px;padding-left:4px;background:#000b;border:1px solid #fff9;border-radius:50%;font-size:22px}
.resource-video-label{position:absolute;bottom:0;left:0;right:0;padding:24px 10px 10px;background:linear-gradient(transparent,#000c);font-size:12px;text-align:center}
.resource-video-thumbnail:hover .resource-video-play{background:#fff;color:#000}
body.resource-video-open{overflow:hidden}
.resource-video-dialog{width:min(1100px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:20px;margin:auto;border:1px solid #333;border-radius:8px;background:#080808;color:#fff;overflow:auto}
.resource-video-dialog::backdrop{background:#000d;backdrop-filter:blur(5px)}
.resource-video-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.resource-video-header h2{font-size:22px;line-height:1.3;margin:0}
.resource-video-close{width:44px;height:44px;border-radius:50%;background:#222;color:#fff;font-size:30px;flex-shrink:0}
.resource-large-video{display:block;width:100%;max-height:65dvh;aspect-ratio:16/9;object-fit:contain;background:#000}
.resource-video-dialog .resource-media-error:empty{display:none}
.resource-video-dialog>.button{margin-top:16px}
@media(max-width:700px){.resource-video-dialog{padding:12px}.resource-video-header h2{font-size:18px}.resource-video-play{width:48px;height:48px}.resource-video-dialog>.button{width:100%}}

/* Explicit image sizing overrides shared image height rules on mobile. */
.resource-card>img.resource-preview{display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:16/9;object-fit:contain;flex:0 0 auto;align-self:stretch}
