.work-gallery { padding-top: 59px; container-type: inline-size; }
.work-gallery .section-title { margin-bottom: 28px; gap: 24px; align-items: flex-end; }
.work-gallery .wl-heading > .eyebrow { font-size: 11px; letter-spacing: .7px; }
.work-gallery .section-title h2 { font-size: clamp(38px, 4.4cqw, 52px); line-height: 1.04; letter-spacing: -.055em; margin: 12px 0 0; }
.work-gallery .wl-status { display: flex; align-items: center; gap: 7px; flex-shrink: 0; padding-bottom: 4px; color: var(--muted); font: 11px/1.5 var(--mono); }
.work-gallery .wl-status .icon { width: 14px; height: 14px; }
.work-gallery[data-access="unlocked"] .wl-status { color: #4b6c19; }
.work-gallery .wl-gate { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 106px; padding: 20px 24px; margin-bottom: 24px; border: 1px solid transparent; border-radius: 10px; background: var(--lime); color: var(--ink); }
.work-gallery .wl-gate-copy { min-width: 0; }
.work-gallery .wl-gate-eyebrow { display: block; margin-bottom: 6px; font: 11px/1.3 var(--mono); letter-spacing: .3px; }
.work-gallery .wl-gate-title { display: block; margin: 0; font-size: 23px; font-weight: 600; line-height: 1.15; letter-spacing: -.8px; }
.work-gallery .wl-gate-note { display: block; margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #4f6131; }
.work-gallery .wl-unlock { display: inline-flex; align-items: center; justify-content: center; gap: 18px; flex-shrink: 0; min-width: 170px; min-height: 46px; padding: 12px 15px 12px 18px; border: 1px solid transparent; border-radius: 7px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.work-gallery .wl-unlock .icon { width: 16px; height: 16px; }
.work-gallery .wl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-gallery .work-lab-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 34px; grid-template-rows: auto 1fr; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.work-gallery .wl-index { display: none; }
.work-gallery .wl-cover { position: relative; display: block; grid-column: 1 / -1; grid-row: 1; width: 100%; aspect-ratio: .88; min-width: 0; overflow: hidden; border-radius: 10px; }
.work-gallery[data-access="locked"] .wl-cover > .wl-art { filter: blur(6px); opacity: .8; user-select: none; }
.work-gallery .wl-caption { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr) 34px; align-content: start; gap: 6px 0; padding-top: 16px; min-width: 0; font-family: var(--sans); }
.work-gallery .wl-name { display: block; grid-column: 1; font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.work-gallery .wl-role { display: block; grid-column: 1 / -1; font: 400 14px/1.45 var(--sans); letter-spacing: 0; color: var(--muted); }
.work-gallery .wl-desc { display: block; grid-column: 1 / -1; margin-top: 2px; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: #5d6357; }
.work-gallery .wl-card-arrow { display: grid; grid-column: 2; grid-row: 2; place-items: center; align-self: start; width: 34px; height: 34px; margin-top: 13px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.work-gallery .wl-card-arrow .icon { width: 15px; height: 15px; }
.work-gallery[data-access="locked"] .wl-card-arrow { background: #f5f6f1; color: #737a68; }
.work-gallery .wl-glass { display: none; }
.work-gallery .work-lab-card:focus-visible { outline-offset: 7px; border-radius: 10px; }
.work-gallery .wl-unlock:focus-visible { outline-offset: 4px; }

#concept-dialog:has(.wl-project-facts) { width: min(660px, calc(100% - 32px)); padding: 36px; container-type: inline-size; }
#concept-dialog .wl-dialog-eyebrow { display: block; max-width: calc(100% - 35px); font: 10px/1.6 var(--mono); color: #62685d; letter-spacing: .35px; }
#concept-dialog:has(.wl-project-facts) h2 { margin: 19px 0 12px; font-size: 43px; line-height: 1.04; letter-spacing: -2px; font-weight: 650; }
#concept-dialog:has(.wl-project-facts) h2 > span { color: #89b629; }
#concept-dialog:has(.wl-project-facts) h2:focus { outline: none; }
#concept-dialog:has(.wl-project-facts) p { color: #666d60; font-size: 14px; line-height: 1.7; margin: 0 0 23px; }
#concept-dialog .wl-detail-art { height: 235px; overflow: hidden; border-radius: 10px; margin: 24px 0; }
#concept-dialog .wl-project-facts { margin: 0 0 28px; }
#concept-dialog .wl-project-facts > div { display: grid; grid-template-columns: 115px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
#concept-dialog .wl-project-facts dt { font-size: 12px; color: #636b5d; }
#concept-dialog .wl-project-facts dd { margin: 0; font-size: 13px; line-height: 1.6; }
#concept-dialog .wl-detail-label { display: block; margin-bottom: 10px; font: 10px var(--mono); letter-spacing: .5px; color: var(--muted); }
#concept-dialog .wl-screen { height: 265px; padding: 24px; border-radius: 10px; overflow: hidden; }
#concept-dialog .wl-screen + .wl-dialog-primary { margin-top: 24px; }
#concept-dialog .wl-screen-nav { display: flex; align-items: center; justify-content: space-between; font-size: 24px; font-weight: 750; letter-spacing: -1px; }
#concept-dialog .wl-screen-nav > span { font-size: 10px; font-weight: 400; letter-spacing: 0; }
#concept-dialog .wl-screen-label { display: block; font: 9px var(--mono); letter-spacing: .5px; }
#concept-dialog .wl-screen-orbit { background: #20201f; color: #fff; }
#concept-dialog .wl-screen-orbit > .wl-screen-label { margin-top: 21px; color: #b4b6ac; }
#concept-dialog .wl-screen-orbit > strong { display: block; font-size: 39px; line-height: 1.4; font-weight: 500; letter-spacing: -1px; }
#concept-dialog .wl-screen-orbit > strong > span { color: #979c8e; }
#concept-dialog .wl-screen-chart { display: flex; justify-content: flex-end; align-items: flex-end; gap: 7px; height: 43px; margin-top: -36px; }
#concept-dialog .wl-screen-chart i { width: 14px; height: 22px; background: var(--lime); border-radius: 3px 3px 0 0; }
#concept-dialog .wl-screen-chart i:nth-child(2n) { height: 32px; }
#concept-dialog .wl-screen-chart i:nth-child(3n) { height: 43px; }
#concept-dialog .wl-screen-bottom { display: flex; gap: 55px; margin-top: 30px; font-size: 11px; color: #bcc0b5; line-height: 1.8; }
#concept-dialog .wl-screen-bottom b { color: #fff; font-size: 18px; font-weight: 500; }
#concept-dialog .wl-screen-form { background: #edeedd; color: #2639cb; }
#concept-dialog .wl-product { display: flex; align-items: center; gap: 30px; margin-top: 22px; }
#concept-dialog .wl-product-vase { width: 128px; height: 155px; flex-shrink: 0; background: linear-gradient(115deg, #6675ff, #2d42e3 60%, #0f219c); border-radius: 30% 30% 18% 18%; clip-path: polygon(30% 0, 70% 0, 70% 15%, 87% 38%, 100% 85%, 92% 100%, 8% 100%, 0 85%, 13% 38%, 30% 15%); box-shadow: inset 12px 0 20px #ffffff55; }
#concept-dialog .wl-product strong { display: block; margin: 12px 0; font: 30px/.98 Georgia, serif; letter-spacing: -1px; }
#concept-dialog .wl-product-link { font-size: 10px; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
#concept-dialog .wl-screen-oddly { background: #ed70e0; color: #261331; }
#concept-dialog .wl-screen-oddly > strong { display: block; font-size: 32px; line-height: 1; letter-spacing: -1.6px; margin-top: 20px; }
#concept-dialog .wl-track { display: flex; align-items: center; gap: 13px; margin-top: 23px; background: #ffffff55; padding: 10px; border-radius: 9px; font-size: 12px; }
#concept-dialog .wl-track small { display: block; font-size: 10px; margin-top: 5px; }
#concept-dialog .wl-track-disc { width: 43px; height: 43px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle, #261331 0 3px, #d6fa70 4px 12px, #261331 13px); }
#concept-dialog .wl-track-play { margin-left: auto; width: 29px; height: 29px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #261331; color: #d6fa70; font-size: 10px; }
#concept-dialog .wl-dialog-primary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; padding: 12px 18px; background: var(--ink); color: white; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 550; }
#concept-dialog .wl-dialog-primary .icon { width: 18px; height: 18px; }

body[data-theme="dark"] .work-gallery[data-access="unlocked"] .wl-status { color: var(--lime); }
body[data-theme="dark"] .work-gallery .wl-desc { color: #a5b098; }
body[data-theme="dark"] .work-gallery .wl-card-arrow { color: #f2f8e9; }
body[data-theme="dark"] .work-gallery[data-access="locked"] .wl-card-arrow { background: #1a2016; color: #a5b098; }
body[data-theme="dark"] #concept-dialog .wl-dialog-eyebrow,
body[data-theme="dark"] #concept-dialog .wl-project-facts dt,
body[data-theme="dark"] #concept-dialog:has(.wl-project-facts) p { color: #a5b098; }
body[data-theme="dark"] #concept-dialog .wl-dialog-primary { background: var(--lime); color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .work-gallery .wl-unlock, #concept-dialog .wl-dialog-primary { transition: transform 150ms ease-out, background-color 150ms ease-out; }
  .work-gallery .wl-unlock:enabled:active, #concept-dialog .wl-dialog-primary:enabled:active { transform: scale(.96); }
  .work-gallery .wl-card-arrow { transition: background-color 150ms ease-out, color 150ms ease-out; }
}
@media (hover: hover) and (pointer: fine) {
  .work-gallery .wl-unlock:hover, #concept-dialog .wl-dialog-primary:hover { background: #30352c; }
  .work-gallery .work-lab-card:hover .wl-card-arrow { background: var(--lime); color: var(--ink); }
  body[data-theme="dark"] #concept-dialog .wl-dialog-primary:hover { background: #c8f25c; }
}
@media (max-width: 760px) {
  .work-gallery { padding-top: 45px; }
}
@media (max-width: 540px) {
  .work-gallery { padding-top: 37px; }
  #concept-dialog:has(.wl-project-facts) { padding: 30px 22px 24px; }
}
@container (max-width: 800px) {
  .work-gallery .wl-grid { gap: 18px; }
  .work-gallery .wl-gate { padding-inline: 20px; gap: 18px; }
  .work-gallery .wl-gate-title { font-size: 21px; }
  .work-gallery .wl-gate-note { font-size: 13px; }
  .work-gallery .wl-name { font-size: 20px; }
}
@container (max-width: 600px) {
  .work-gallery .section-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: start; margin-bottom: 23px; }
  .work-gallery .wl-heading { display: contents; }
  .work-gallery .wl-heading > .eyebrow { grid-column: 1; grid-row: 1; font-size: 10px; }
  .work-gallery .section-title h2 { grid-column: 1 / -1; grid-row: 2; font-size: 37px; margin-top: 10px; }
  .work-gallery .wl-status { grid-column: 2; grid-row: 1; max-width: 105px; min-height: 30px; padding-top: 0; padding-bottom: 0; font-size: 10px; }
  .work-gallery .wl-status .icon { width: 13px; height: 13px; }
  .work-gallery .wl-gate { height: 168px; flex-direction: column; justify-content: space-between; align-items: start; gap: 14px; padding: 20px; margin-bottom: 24px; }
  .work-gallery .wl-gate-title { font-size: 21px; letter-spacing: -.6px; }
  .work-gallery .wl-gate-eyebrow { display: none; }
  .work-gallery .wl-gate-note { margin-top: 5px; font-size: 13px; line-height: 1.4; }
  .work-gallery .wl-unlock { min-height: 42px; min-width: 0; padding: 10px 15px; gap: 16px; font-size: 12px; }
  .work-gallery .wl-grid { grid-template-columns: 1fr; gap: 28px; }
  .work-gallery .wl-cover { aspect-ratio: 1; }
  .work-gallery .wl-caption { padding-top: 14px; gap: 5px 0; }
  .work-gallery .wl-card-arrow { margin-top: 11px; }
}
@container (max-width: 500px) {
  #concept-dialog:has(.wl-project-facts) h2 { font-size: 35px; }
  #concept-dialog .wl-project-facts > div { grid-template-columns: 1fr; gap: 7px; }
  #concept-dialog .wl-detail-art { height: 215px; }
  #concept-dialog .wl-screen { padding: 20px; }
  #concept-dialog .wl-product { gap: 20px; }
  #concept-dialog .wl-product-vase { width: 95px; }
  #concept-dialog .wl-product strong { font-size: 26px; }
  #concept-dialog .wl-screen-orbit > strong { font-size: 32px; }
  #concept-dialog .wl-screen-chart { gap: 4px; margin-top: 8px; height: 32px; justify-content: flex-start; }
  #concept-dialog .wl-screen-chart i { width: 8px; }
  #concept-dialog .wl-screen-bottom { margin-top: 16px; }
}
