#trabajos {
  color-scheme:dark;
  background:#0c0c0c;
  color:#f7f5ef;
  --ink:#f7f5ef;
  --muted:#bcb8ad;
  --line:#f7f5ef26;
  --work-filter-top:100px;
  min-height:calc(100svh - 88px);
}
body[data-view="trabajos"] #trabajos { padding-top:clamp(23px,3vw,43px); }
#trabajos > .wrap { width:100%; }
#trabajos .work-head {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end;
  gap:10px 28px;
  padding-block:clamp(12px,2vw,34px) clamp(16px,2.25vw,36px);
  margin-block-end:clamp(14px,1.8vw,26px);
  border-bottom:1px solid transparent;
  border-image:linear-gradient(90deg,#ebaf9166,#f7f5ef26 42%,#f7f5ef0d) 1;
}
#trabajos .work-head h2 {
  font:700 clamp(58px,9vw,154px)/.86 "Helvetica Neue",Helvetica,Arial,sans-serif;
  letter-spacing:-.075em; text-transform:uppercase;
  overflow-wrap:anywhere; margin:0 !important;
}
.work-filter-bar {
  position:sticky; top:var(--work-filter-top); z-index:3;
  width:max-content; max-width:100%; margin-inline:auto;
  margin-block-end:clamp(16px,1.6vw,26px);
  border:1px solid #ffffff22; border-radius:999px;
  background:linear-gradient(150deg,#272522eb,#131211e0 66%);
  backdrop-filter:blur(18px) saturate(1.15);
  box-shadow:0 10px 34px #0006, inset 0 1px 0 #ffffff12;
}
#trabajos .discipline-filters {
  flex-wrap:nowrap; align-items:center; gap:3px;
  margin:0; padding:5px 6px; border:0; border-radius:inherit;
  overflow-x:auto; scrollbar-width:none;
}
#trabajos .discipline-filters button {
  flex:none; min-height:44px; margin:0; padding:0 clamp(10px,1.25vw,19px);
  border:1px solid transparent; border-radius:999px; color:#ded8d0; background:transparent;
  font-size:clamp(12px,1vw,14px); font-weight:600; letter-spacing:0;
  white-space:nowrap;
  transition:color .2s ease, background-color .2s ease, border-color .2s ease;
}
#trabajos .discipline-filters button:hover { color:#fff; background-color:#ffffff12; }
#trabajos .discipline-filters button[aria-pressed="true"] {
  color:#171513; border-color:#f9f5ef;
  background:#f4efe7; box-shadow:0 0 16px #eee4d52e;
}
#trabajos .discipline-filters button:focus-visible { outline-color:#f4c3ad; outline-offset:-3px; }
#trabajos #discipline-count {
  margin:0; padding-block-end:.25em; color:#ddd5ca;
  font-size:clamp(12px,1.2vw,17px); font-variant-numeric:tabular-nums;
  line-height:1.2; text-align:right;
}

.work-list { display:grid; gap:clamp(10px,1vw,16px); list-style:none; margin:0; padding:0; }
.work-project {
  position:relative; isolation:isolate; display:grid; align-items:end;
  width:100%; aspect-ratio:12 / 5; min-height:200px;
  color:var(--ink); text-align:left;
}
.work-project-copy {
  display:grid; gap:10px; padding:clamp(16px,2.4vw,42px);
}
.work-project-title {
  max-width:24ch; font-size:clamp(25px,3.4vw,58px); font-weight:700; line-height:1;
  letter-spacing:-.055em; overflow-wrap:anywhere;
  text-shadow:0 2px 12px #0008;
}
.work-project-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; }
.work-project-kind {
  padding:4px 8px; border:1px solid #f7f5ef68; border-radius:20px; background:#0c0a0966;
  font-size:11px; line-height:1.25;
}
.work-project-credit { color:#e7e0da; font-size:12px; line-height:1.4; }
.work-project-credit:empty { display:none; }
.work-project-frame {
  position:absolute; z-index:-1; inset:0; overflow:hidden; background:#1e1b19;
}
.work-project-frame::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg,#000f 0%,#000a 22%,transparent 68%),
    linear-gradient(90deg,#0005,transparent 68%);
}
.work-project-frame img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .5s cubic-bezier(.22,.7,.2,1);
}
.work-crop-top img { object-position:center 25%; }
.work-crop-bottom img { object-position:center 70%; }
.work-project:is(:hover,:focus-visible) .work-project-frame img { transform:scale(1.04); }
.work-project:is(:hover,:focus-visible) .work-project-title { color:#f1b49b; }
.work-project:focus-visible { outline-color:#f1b49b; outline-offset:2px; }

@media(prefers-reduced-motion:no-preference) {
  body[data-view="trabajos"] #trabajos .work-head h2 { animation:work-heading-enter .45s cubic-bezier(.22,.7,.2,1) both; }
  .work-project-entered { animation:work-project-enter .48s cubic-bezier(.22,.7,.2,1); }
}
@keyframes work-heading-enter {
  from { opacity:.35; transform:translateY(10px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes work-project-enter {
  from { opacity:.48; transform:translateY(14px); }
  to { opacity:1; transform:translateY(0); }
}
@media(max-width:800px) {
  #trabajos { --work-filter-top:75px; }
}
@media(max-width:620px) {
  #trabajos .work-head { grid-template-columns:minmax(0,1fr); }
  #trabajos .work-head h2 { font-size:clamp(44px,12vw,72px); line-height:.92; }
  #trabajos #discipline-count { text-align:left; }
  .work-project { aspect-ratio:4 / 3; min-height:0; }
  .work-project-kind, .work-project-credit { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .work-project-frame img,
  #trabajos .discipline-filters button { transition:none; }
  .work-project:is(:hover,:focus-visible) .work-project-frame img { transform:none; }
}
