.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:23px 0 25px;scroll-margin-top:8px}
.category-card{display:flex;flex-direction:column;position:relative;text-align:left;min-width:0;overflow:hidden;isolation:isolate;padding:0;border:1px solid #344a61;border-radius:16px;background:radial-gradient(ellipse at 50% 32%,#2c3d4f,#141e2e 84%);box-shadow:inset 0 1px 0 #d8ebff12;color:var(--ink);transition:border-color .23s,background-color .23s,box-shadow .23s}
.category-art{display:grid;place-items:center;position:relative;width:100%;aspect-ratio:1.18/1;overflow:hidden}
.category-art img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;mask-image:radial-gradient(ellipse at 50% 52%,#000 48%,#000d 70%,#0002 98%);filter:drop-shadow(0 8px 8px #070e1690);transition:transform .28s ease-out,filter .28s ease-out}
.category-count{position:absolute;z-index:1;top:8px;right:8px;padding:3px 7px;border-radius:99px;background:#0e1828e8;color:#e8edf3;font-size:11px;line-height:1.4;white-space:nowrap}
.category-copy{display:flex;flex-direction:column;gap:5px;width:100%;padding:0 11px 12px;line-height:1.24}
.category-copy strong{font-size:15px;overflow-wrap:anywhere}.category-caption{font-size:12px;color:#b9c9da}
.category-card[aria-pressed="true"]{border-color:#eeb38e;box-shadow:inset 0 0 0 1px #eeb38e77,0 5px 15px #0003}
.category-card[aria-pressed="true"] .category-count{background:#f0bc9c;color:#25170f}
.category-card[aria-pressed="true"] .category-copy strong{color:#ffd6bc}
@media(max-width:540px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-card{border-radius:13px}.category-copy{padding:0 8px 9px}.category-copy strong{font-size:13px}.category-caption{font-size:11px}.category-count{font-size:10px}}

/* Category lightbox: leave the page and its scroll position behind it. */
html:has(#category-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
#category-dialog{width:min(1000px,calc(100vw - 56px));max-width:none;max-height:min(82dvh,920px);padding:0;overflow:hidden;color:var(--ink);background:#101a2a;border:1px solid #55718c;border-radius:23px;box-shadow:0 30px 100px #040912b8}
#category-dialog[open]{display:flex;flex-direction:column;animation:category-pop .24s cubic-bezier(.2,.75,.3,1) both}
#category-dialog::backdrop{background:#050b13a3;backdrop-filter:blur(4px);animation:category-shade .24s ease-out both}
.category-dialog-head{display:flex;align-items:center;gap:16px;padding:12px 18px;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 0 0,#293d53,#131e2d 75%);flex-shrink:0}
.category-dialog-head img{width:90px;height:74px;object-fit:contain;flex:none;mask-image:radial-gradient(ellipse,#000 48%,transparent 76%)}
.category-dialog-copy{min-width:0;flex:1}
#video-section-title{font-size:clamp(23px,3vw,39px);line-height:1.13;overflow-wrap:anywhere;letter-spacing:-.03em;margin:4px 0}
.category-dialog-head .results{margin:0;color:#b9c9da}
.category-dialog-head form{align-self:flex-start;margin-top:3px;flex:none}
.category-close{width:44px;height:44px;padding:0;font-size:27px;font-weight:500;line-height:1}
.category-dialog-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:19px;scrollbar-gutter:stable}
.category-dialog-body .gallery{gap:12px}
.category-dialog-body .more{margin-top:17px}
@keyframes category-pop{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}
@keyframes category-shade{from{opacity:0}to{opacity:1}}
@media(max-width:540px){
 #category-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 28px);border-radius:17px}
 .category-dialog-head{gap:8px;padding:10px}
 .category-dialog-head img{width:52px;height:53px}
 .category-dialog-head .eyebrow{font-size:9px;letter-spacing:.1em}
 .category-dialog-head .results{font-size:11px}
 .category-dialog-body{padding:10px;scrollbar-gutter:auto}
 .category-dialog-body .gallery{gap:8px}
}
@media(prefers-reduced-motion:reduce){
 #category-dialog[open],#category-dialog::backdrop{animation:none}
}

.category-card, #category-dialog {
 --shop-light: #9bcdf4;
 --shop-glow: #60a8e55c;
 --shop-ambient: radial-gradient(ellipse at 50% 48%, var(--shop-glow), transparent 65%);
}
:is(.category-card, #category-dialog)[data-filter="brand"] {
 --shop-light: #a6d6ff;
 --shop-glow: #68aeed70;
 --shop-ambient: radial-gradient(ellipse at 63% 46%, var(--shop-glow), transparent 57%);
}
:is(.category-card, #category-dialog)[data-filter="food"] {
 --shop-light: #ffc080;
 --shop-glow: #ffaa516b;
 --shop-ambient: radial-gradient(ellipse at 50% 74%, var(--shop-glow), transparent 63%);
 --shop-image: brightness(1.14) saturate(1.18);
}
:is(.category-card, #category-dialog)[data-filter="lifestyle"] {
 --shop-light: #7ee8e2;
 --shop-glow: #40d4dd58;
 --shop-ambient: radial-gradient(ellipse at 50% 80%, var(--shop-glow), transparent 60%);
 --shop-image: brightness(1.14) saturate(1.32);
}
:is(.category-card, #category-dialog)[data-filter="stories"] {
 --shop-light: #ffc798;
 --shop-glow: #f9ad7470;
 --shop-ambient: conic-gradient(from 155deg at 51% 18%, transparent 3deg, var(--shop-glow) 27deg, transparent 50deg);
}
:is(.category-card, #category-dialog)[data-filter="production"] {
 --shop-light: #d6aaff;
 --shop-glow: #b572ff64;
 --shop-ambient: radial-gradient(ellipse at 27% 46%, var(--shop-glow), transparent 56%),
                 radial-gradient(ellipse at 75% 52%, #56c9ff55, transparent 55%);
 --shop-image: brightness(1.15) saturate(1.47);
}
.category-art::before {
 content: "";
 position: absolute;
 inset: 0;
 pointer-events: none;
 background: var(--shop-ambient);
 opacity: 0;
 transition: opacity .28s ease-out;
}
.category-card:is(:focus-visible, :active) { border-color: var(--shop-light); }
.category-card:is(:focus-visible, :active) .category-art::before { opacity: 1; }
.category-card:is(:focus-visible, :active) .category-art img {
 transform: var(--shop-shift, translateY(-3px) scale(1.045));
 filter: var(--shop-image, brightness(1.12)) drop-shadow(0 8px 12px #070e1670);
}
@media (hover: hover) {
 .category-card:hover { border-color: var(--shop-light); }
 .category-card:hover .category-art::before { opacity: 1; }
 .category-card:hover .category-art img {
  transform: var(--shop-shift, translateY(-3px) scale(1.045));
  filter: var(--shop-image, brightness(1.12)) drop-shadow(0 8px 12px #070e1670);
 }
}
#category-dialog .category-dialog-head {
 background: radial-gradient(ellipse at top left, var(--shop-glow), transparent 68%), #131e2d;
}
@media (prefers-reduced-motion: reduce) {
 .category-card, .category-art::before, .category-art img { transition: none; }
 .category-card { --shop-shift: none; }
}
