/* Public works library; shares the site's colors, type and spacing. */
.works-home { padding: 24px 0 64px; }
.works-home .row { margin-top: 0; }
.works-home .row-head { align-items: center; flex-wrap: wrap; }
.works-home .row-head h2 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }
.works-home .works-all { margin-left: auto; white-space: nowrap; }
.works-home .row-nav { margin-left: 8px; }
.works-home .works-card { width: clamp(260px, 26vw, 420px); }
.works-card { display: block; min-width: 0; }
.works-card-image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); border-radius: 6px; }
.works-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease-out); }
.works-card-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.15); opacity: 0; transition: opacity .2s; }
.works-card-play svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(7,11,11,.8); fill: var(--ink); }
.works-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font-size: 17px; font-weight: 600; line-height: 1.45; }
.works-card-date { display: block; color: var(--ink-3); font-size: 12px; margin-top: 5px; font-family: var(--f-mono); }
@media (hover:hover) { .works-card:hover .works-card-image img { transform: scale(1.04); } .works-card:hover .works-card-play { opacity: 1; } }
.works-card:focus-visible .works-card-play { opacity: 1; }
.works-section-link { margin-top: 18px; }
.works-page .header { background: rgba(7,11,11,.95); }
.works-main { max-width: var(--max); margin: auto; min-height: 70vh; padding: calc(var(--header-h) + clamp(40px,7vh,80px)) var(--gutter) 96px; }
.works-heading { font-family: var(--f-display); font-size: clamp(72px,12vw,164px); font-weight: 900; line-height: .9; letter-spacing: -.025em; }
.works-intro { margin-top: 22px; color: var(--ink-2); }
.works-intro strong { margin-right: 12px; }
.works-filters { display: grid; gap: 14px; margin-top: 36px; padding: 24px 0; border-block: 1px solid var(--line); }
.works-filter-row { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.works-filter-label { min-width: 70px; color: var(--ink-3); font-size: 13px; }
.works-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.works-filter { min-height: 40px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.works-filter:hover { color: var(--ink); border-color: var(--ink-3); }
.works-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.works-results { margin: 24px 0; color: var(--ink-3); font-size: 14px; }
.works-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 18px; }
.works-more { display: block; margin: 40px auto 0; min-height: 48px; padding: 10px 28px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; }
.works-more:hover { background: var(--bg-3); }
.works-status { padding: 44px 0; color: var(--ink-2); }
.works-status p { margin-bottom: 14px; }
.works-status button { min-height: 44px; }
.works-detail { padding-top: 0; }
.works-back { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--ink-2); margin-bottom: 24px; }
.works-back::before { content: '←'; }
.works-detail h1 { max-width: 1100px; font-size: clamp(26px,3.4vw,46px); line-height: 1.3; font-weight: 750; letter-spacing: -.035em; }
.works-detail-meta { color: var(--ink-3); margin-top: 14px; font-size: 14px; }
.works-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-top: 28px; border-radius: 6px; }
.works-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.works-start { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.works-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .75; }
.works-start span { position: relative; display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; padding: 12px 24px; background: var(--ink); color: var(--bg); font-weight: 700; }
.works-start svg { width: 20px; height: 20px; fill: currentColor; }
.works-detail-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin: 22px 0 30px; }
.works-adjacent { display: flex; gap: 10px; }
.works-adjacent button { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 18px; min-height: 44px; font-size: 14px; }
.works-adjacent button:disabled { opacity: .3; cursor: default; }
.works-description { white-space: pre-wrap; color: var(--ink-2); max-width: 960px; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; word-break: normal; }
.works-detail [tabindex="-1"]:focus { outline: none; }
@media(min-width:1500px) { .works-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:850px) { .works-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 14px; } }
@media(max-width:540px) {
  .works-main { padding-bottom: 64px; }
  .works-grid { grid-template-columns: minmax(0,1fr); }
  .works-filter-row { display: block; }
  .works-filter-label { display: block; margin-bottom: 8px; }
  .works-filters { gap: 20px; }
  .works-home .row-head { gap: 10px; }
  .works-home .row-nav { display: none; }
  .works-detail-actions { align-items: flex-start; flex-direction: column; }
  .works-detail h1 { font-size: 26px; }
}
@media(prefers-reduced-motion:reduce) { .works-card img, .works-card-play, .works-filter { transition: none; } }
