/* Página de cada proyecto (work/<id>/). Misma estética que la portada: negro, Switzer, mono en etiquetas. */
.work-main {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(7.5rem, 13vw, 10rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.work-crumb { margin: 0 0 2.25rem; }
.work-crumb a,
.work-tag,
.work-facts dt,
.work-more h2,
.more-tag,
.work-badge {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8f93;
}
.work-crumb a { text-decoration: none; transition: color 200ms ease; }
.work-crumb a:hover { color: #e9ebec; }

.work-title {
  margin: 0;
  padding-bottom: 0.08em;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: transparent;
  background: linear-gradient(100deg, #fff 0%, #f1f2f3 30%, #a9adb0 70%, #5d6164 100%);
  -webkit-background-clip: text;
  background-clip: text;
  width: fit-content;
}
.work-tag { margin: 1rem 0 2.25rem; }

.work-video {
  overflow: hidden;
  border-radius: 1.25rem;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.work-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0a0a0a; }

.work-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  margin-top: 2.75rem;
}
.work-about { margin: 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.55; letter-spacing: -0.01em; color: #b9bec2; }
.work-facts { margin: 0; }
.work-facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.09);
}
.work-facts div:first-child { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(255, 255, 255, 0.09); }
.work-facts dd { margin: 0; text-align: right; font-size: 0.9375rem; letter-spacing: -0.01em; color: #e9ebec; }
.work-facts a { color: inherit; text-decoration: none; transition: color 200ms ease; }
.work-facts a:hover { color: #ade5ff; }
.work-badge { margin-left: 0.375rem; padding: 0.125rem 0.375rem; border-radius: 0.375rem; color: #f26522; box-shadow: inset 0 0 0 1px rgba(242, 101, 34, 0.4); }

.work-cta { margin: 3rem 0 0; }

.work-more { margin-top: clamp(4.5rem, 9vw, 7rem); }
.work-more h2 { margin: 0 0 1.25rem; font-weight: 400; }
.work-more ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.work-more a {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: #0c0c0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  color: #e9ebec;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 280ms ease;
}
.more-media { display: block; aspect-ratio: 16 / 9; background: #0a0a0a; }
.more-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.more-meta { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.75rem 0.875rem 0.875rem; font-size: 0.9375rem; letter-spacing: -0.01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09); }
.more-tag { font-size: 0.625rem; }
@media (hover: hover) and (pointer: fine) {
  .work-more a:hover { transform: scale(1.02); box-shadow: inset 0 0 0 1px rgba(173, 229, 255, 0.6), 0 0 2.5rem -0.75rem rgba(173, 229, 255, 0.35); }
}
.work-more a:active { transform: scale(0.98); }

@media (max-width: 760px) {
  .work-body { grid-template-columns: 1fr; }
  .work-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-video { border-radius: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .work-more a, .work-more a:hover, .work-more a:active { transform: none; }
}
