.work-head h2 { margin-bottom:0; }
.project-grid-open.glass-surface {
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:16px;
  width:clamp(154px,16vw,230px);max-width:100%;height:52px;margin-top:28px;padding:10px 18px;
  border:1px solid #ffffff50;border-radius:999px;background-color:#10101230;
  box-shadow:inset 0 1px 2px #ffffff45,0 5px 20px #0003;
  font-size:11px;font-weight:700;letter-spacing:2px;white-space:nowrap;
  transition:border-color 150ms ease-out,background-color 150ms ease-out;
}
.project-grid-open:hover { border-color:#ffffffa0;background-color:#43161d50; }
.project-grid-open svg { flex:none;width:23px;height:23px; }
.project-grid-open .grid-accent { fill:var(--red); }
#project-grid {
  width:min(1460px,calc(100vw - 40px));max-width:calc(100vw - 40px);height:min(940px,92dvh);max-height:92dvh;
  padding:0;border:1px solid #ffffff35;border-radius:24px;overflow:hidden;
  color:var(--paper);background:linear-gradient(145deg,#191b1cf5,#090b0cfb 70%);box-shadow:0 25px 100px #0009;
}
#project-grid[open] { display:flex;flex-direction:column;animation:project-grid-in 420ms cubic-bezier(.22,1,.36,1) both; }
#project-grid.is-closing { animation:project-grid-out 180ms ease-in both;pointer-events:none; }
#project-grid::backdrop { background:#030405b3;backdrop-filter:blur(6px); }
.project-grid-header { display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px 23px;flex:none;border-bottom:1px solid #ffffff16; }
.project-grid-header .eyebrow { font-size:10px;letter-spacing:2.4px;color:#c4bbba;margin:0 0 9px; }
.project-grid-header h2 { font-size:clamp(28px,3.2vw,48px);line-height:1;margin:0;letter-spacing:-.02em; }
.project-grid-count { margin:10px 0 0;color:#aaa3a0;font-size:13px;letter-spacing:1px; }
.project-grid-close { display:flex;align-items:center;gap:10px;flex:none;min-height:44px;padding:9px 16px;border:1px solid #ffffff40;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:1px; }
.project-grid-close svg { width:18px;height:18px; }
.project-grid-close:hover { background:#ffffff0a;border-color:#ffffff90; }
.project-grid-scroll { flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:26px 28px 30px;scrollbar-width:thin;scrollbar-color:#686065 transparent;scrollbar-gutter:stable; }
.project-grid-list { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px; }
.project-grid-card { display:flex;flex-direction:column;min-width:0;padding:8px;border:1px solid #ffffff20;border-radius:20px;background:linear-gradient(155deg,#ffffff08,#ffffff02);text-align:left;overflow:hidden;transition:border-color 150ms ease-out,background-color 150ms ease-out; }
.project-grid-card:hover,.project-grid-card.is-current { border-color:#e7243280;background-color:#ffffff04; }
.project-grid-card:focus-visible { outline:2px solid #ff6876;outline-offset:3px; }
.project-grid-art { display:block;position:relative;aspect-ratio:16/10;border-radius:13px;overflow:hidden;background:#111414; }
.project-grid-art img { display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%; }
.project-grid-number { position:absolute;left:10px;top:10px;padding:4px 7px;border:1px solid #ffffff30;border-radius:7px;background:#07090bb3;color:#f1ebe6;font-size:10px;letter-spacing:1px; }
.project-grid-info { display:flex;flex:1;flex-direction:column;min-width:0;padding:13px 7px 3px; }
.project-grid-category { display:block;color:#d0777e;font-size:8px;line-height:1.45;letter-spacing:1px;min-height:24px; }
.project-grid-name { display:block;margin:3px 0 12px;font-size:22px;line-height:1.05;font-weight:700;overflow-wrap:anywhere; }
.project-grid-bottom { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;color:#c1bab6; }
.project-grid-materials { font-size:11px;letter-spacing:.5px; }
.project-grid-arrow { color:var(--red);font-size:20px;line-height:1; }
@keyframes project-grid-in { from { opacity:0;transform:translateY(10px); } to { opacity:1;transform:none; } }
@keyframes project-grid-out { from { opacity:1;transform:none; } to { opacity:0;transform:translateY(6px); } }
@media(max-width:1150px) { .project-grid-list { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(min-width:761px) and (max-width:1000px) { .project-grid-open.glass-surface { width:160px;height:44px;gap:10px;padding:8px 12px;letter-spacing:1px;font-size:10px; } }
@media(max-width:760px) {
  .project-grid-open.glass-surface { width:172px;height:40px;margin-top:16px;gap:11px;padding:8px 12px;font-size:9px;letter-spacing:1.3px; }
  .project-grid-open svg { width:19px;height:19px; }
  .work .project-card { top:var(--grid-card-top,34%); }
  #project-grid { width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:94dvh;max-height:94dvh;border-radius:20px; }
  .project-grid-header { padding:20px 16px 17px;gap:12px; }
  .project-grid-header .eyebrow { font-size:8px;letter-spacing:1.8px;margin-bottom:9px; }
  .project-grid-header h2 { font-size:clamp(23px,5.7vw,36px); }
  .project-grid-count { font-size:11px;margin-top:8px; }
  .project-grid-close { padding:10px;min-width:40px;justify-content:center; }
  .project-grid-close span { display:none; }
  .project-grid-scroll { padding:17px 12px 20px; }
  .project-grid-list { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
  .project-grid-card { padding:5px;border-radius:15px; }
  .project-grid-art { border-radius:10px; }
  .project-grid-info { padding:10px 4px 3px; }
  .project-grid-category { font-size:7px;letter-spacing:.4px;min-height:23px; }
  .project-grid-name { font-size:17px;line-height:1.1;margin-bottom:9px; }
  .project-grid-number { left:6px;top:6px;font-size:9px;padding:3px 5px; }
  .project-grid-materials { font-size:9px;letter-spacing:0; }
}
@media(max-width:760px) and (max-height:680px) and (min-height:501px) {
  .work-head h2 { font-size:11.8vw; }
  .work-head .eyebrow { margin-bottom:10px; }
  .project-grid-open.glass-surface { margin-top:12px;height:36px; }
}
@media(max-height:500px) and (min-width:600px) {
  .work .project-card { top:0; }
  .project-grid-open.glass-surface { margin-top:18px;width:160px;height:38px;font-size:9px;gap:10px; }
  #project-grid { height:94dvh;max-height:94dvh; }
  .project-grid-header { padding:13px 20px; }
  .project-grid-header h2 { font-size:26px; }
  .project-grid-header .eyebrow { display:none; }
}
@media(prefers-reduced-motion:reduce) { #project-grid[open],#project-grid.is-closing { animation:none; }.project-grid-open,.project-grid-card { transition:none; } }
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) { #project-grid { background:#111315; } }
@media(forced-colors:active) { #project-grid,.project-grid-card { background:Canvas;color:CanvasText;border:1px solid CanvasText; }.project-grid-card.is-current { outline:1px solid Highlight; } }
